KT24-1110_65E-HA-651B/include_lib/system/database.h

35 lines
494 B
C
Raw Permalink Normal View History

2024-11-10 10:44:17 +00:00
#ifndef DATABASE_H
#define DATABASE_H
#include "typedef.h"
struct db_table {
const char *name;
u8 value_bits;
int value;
};
int db_select_buffer(u8 index, char *buffer, int len);
int db_update_buffer(u8 index, char *buffer, int len);
int db_create(const char *store_dev);
int db_create_table(const struct db_table *table, int num);
u32 db_select(const char *table);
int db_update(const char *table, u32 value);
int db_flush();
int db_reset();
int db_erase();
#endif