This commit is contained in:
lmx
2025-10-29 13:10:02 +08:00
commit 49a07fa419
2284 changed files with 642060 additions and 0 deletions

View File

@ -0,0 +1,34 @@
#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