2021-07-08 05:37:18 +00:00
|
|
|
typedef struct UserInfo UserInfo;
|
|
|
|
typedef unsigned int uint;
|
|
|
|
|
2021-07-31 05:20:58 +00:00
|
|
|
typedef struct Blob {
|
|
|
|
char* data;
|
|
|
|
uvlong length;
|
|
|
|
} Blob;
|
|
|
|
|
2021-07-05 05:44:58 +00:00
|
|
|
typedef struct Cart {
|
|
|
|
char name[32];
|
2021-07-31 05:20:58 +00:00
|
|
|
Blob* rom;
|
|
|
|
Blob* txt_data;
|
|
|
|
Blob* sprite_data;
|
|
|
|
Blob* audio_data;
|
2021-07-08 05:37:18 +00:00
|
|
|
} Cart;
|
|
|
|
|
|
|
|
Cart* create_cart(char* name);
|
|
|
|
Cart* find_cart(UserInfo* table, char* name);
|
2021-07-21 06:27:40 +00:00
|
|
|
int get_chunk(UserInfo* table, char* uname, char* chunk);
|
2021-07-08 05:37:18 +00:00
|
|
|
uint count_carts(UserInfo* table, char* name);
|
|
|
|
void destroy_cart(Cart* self);
|