1
0
mirror of https://gitlab.cvh-server.de/skrause/flashcards.git synced 2025-12-12 09:01:37 +01:00

more stuff!

This commit is contained in:
2025-04-05 08:55:56 +02:00
parent 9f5f951a9f
commit 48918ba4bf
13 changed files with 275 additions and 97 deletions

View File

@@ -14,8 +14,9 @@ typedef struct card
{
int id;
int category;
char *task;
char *solution;
char *title;
char *answer;
GDateTime *next_time;
} card;
sqlite3 *database_connect (const char *path);
@@ -30,9 +31,12 @@ GArray *database_load_categories (sqlite3 *db);
void database_delete_category (sqlite3 *db, int id);
void database_save_card (sqlite3 *db, card c);
void database_save_card (sqlite3 *db, int category, const char *title,
const char *answer);
GArray *database_load_cards (sqlite3 *db, int category);
void database_schedule_card (sqlite3 *db, int id, GDateTime *next_time);
void database_delete_card (sqlite3 *db, int id);
#endif /* DATABASE_H */