ifndef _EPHOTO_DATABASE_H_ #define _EPHOTO_DATABASE_H_ #include #include #include typedef struct _Albums ALBUMS; typedef struct _Filelist ALBUM_ITEMS; //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 //returns linkedlist below ALBUMS *ephoto_db_read(sqlite3 *); struct _Albums { char name[NAME_MAX]; ALBUMS *next; ALBUM_ITEMS *filelist; }; struct _Filelist { char *Filename; ALBUM_ITEMS *next; }; #endif along with thier commponent thumbs