#include #include #include // constructor sqlite3 ephoto_db_init(void); // destructor void ephoto_db_destroy(sqlite3 *); // add a thumb to an album // (db,"/path/to/thumb", "albumanme") // returns 1 on failure int ephoto_db_add(sqlite3 *,char *,char *); // remove a thumb from an album // (db,"/path/to/thumb","albumname") // returns 1 on failure int ephoto_db_remove(sqlite3 *,char *,char *); // get a lits of albums along with thier commponent thumbs // returns linkedlist below ALBUMS ephoto_db_read(sqlite3 *); typedef struct *_Albums { char name[NAME_MAX]; ALBUMS next; ALBUM_ITEMS filelist; }; ALBUMS typedef struct _Filelist { char *Filename; struct _FILELIST; }; ALBUM_ITEMS