From 0d4b1caee4135b6e0dcd2aa3bd6ce2387c1c3773 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Sun, 25 Apr 2010 17:28:49 +0200 Subject: Added a tree model to display tags in tree structures. Adding children to tags is not yet implemented. --- db.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'db.h') diff --git a/db.h b/db.h index a2c19b1..969bace 100644 --- a/db.h +++ b/db.h @@ -22,6 +22,7 @@ struct wallpaper_t { struct tag_t { gchar *name; sqlite_uint64 id; + sqlite_uint64 parent; }; int db_open(); @@ -39,6 +40,8 @@ int db_get_wallpapers(sqlite_uint64, GArray**); int db_get_walls_by_tags(GArray*, GArray**); sqlite_uint64 db_add_tag(const char*, sqlite_uint64); int db_get_tags_all(GArray**); +int db_get_top_level_tags(GArray**); +int db_get_tags(GArray**, sqlite_uint64); int db_add_wall_tag(sqlite_uint64, sqlite_uint64); void db_remove_tag(sqlite_uint64); int db_remove_wall_tag(sqlite_uint64, sqlite_uint64); -- cgit v1.2.3