diff --git a/dap_chain_global_db_driver.h b/dap_chain_global_db_driver.h index 458607acd7a245ea8841afdd81c3f523bea49cb7..7af2e04273b7413f2925484592791bb41d8ef9cb 100755 --- a/dap_chain_global_db_driver.h +++ b/dap_chain_global_db_driver.h @@ -22,8 +22,7 @@ along with any DAP based project. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef _GLOBAL_DB_DRIVER_H_ -#define _GLOBAL_DB_DRIVER_H_ +#pragma once #include <stddef.h> #include <stdint.h> @@ -70,7 +69,7 @@ void dap_db_driver_deinit(void); dap_store_obj_t* dap_store_obj_copy(dap_store_obj_t *a_store_obj, size_t a_store_count); void dap_store_obj_free(dap_store_obj_t *a_store_obj, size_t a_store_count); -int dap_db_driver_flush(void) +int dap_db_driver_flush(void); char* dap_chain_global_db_driver_hash(const uint8_t *data, size_t data_size); @@ -85,6 +84,3 @@ dap_store_obj_pkt_t *dap_store_packet_multiple(pdap_store_obj_t a_store_obj, time_t a_timestamp, size_t a_store_obj_count); dap_store_obj_t *dap_store_unpacket_multiple(const dap_store_obj_pkt_t *a_pkt, size_t *a_store_obj_count); - - -#endif //_GLOBAL_DB_DRIVER_H_ diff --git a/dap_chain_global_db_hist.h b/dap_chain_global_db_hist.h index 62e98c5844bf6cc84f79563db42850d416a41761..6f9788d1a534cf297e132d0ccb5a6f36fefa1f81 100755 --- a/dap_chain_global_db_hist.h +++ b/dap_chain_global_db_hist.h @@ -6,7 +6,7 @@ #define GLOBAL_DB_HIST_REC_SEPARATOR "\r;" #define GLOBAL_DB_HIST_KEY_SEPARATOR "\a;" -typedef struct dap_global_db_hist_t { +typedef struct dap_global_db_hist { char type;// 'a' add or 'd' delete const char *group; size_t keys_count;