summaryrefslogtreecommitdiff
path: root/libyelp/yelp-storage.h
diff options
context:
space:
mode:
authorShaun McCance <shaunm@gnome.org>2011-02-11 15:44:54 -0500
committerShaun McCance <shaunm@gnome.org>2011-02-11 15:44:54 -0500
commitc6b056db59bf38683543442b2601a20b32bf8301 (patch)
tree206b4cdff2756b4bfeb220b84325247e91ef92db /libyelp/yelp-storage.h
parent4fcf2b3d0139bf78a32574068fd566da8027203d (diff)
downloadyelp-c6b056db59bf38683543442b2601a20b32bf8301.tar.gz
Store and retrieve root title in storage for search results
Diffstat (limited to 'libyelp/yelp-storage.h')
-rw-r--r--libyelp/yelp-storage.h30
1 files changed, 20 insertions, 10 deletions
diff --git a/libyelp/yelp-storage.h b/libyelp/yelp-storage.h
index 57666a02..da575798 100644
--- a/libyelp/yelp-storage.h
+++ b/libyelp/yelp-storage.h
@@ -38,16 +38,21 @@ typedef struct _YelpStorageInterface YelpStorageInterface;
struct _YelpStorageInterface {
GTypeInterface base_iface;
- void (*update) (YelpStorage *storage,
- const gchar *doc_uri,
- const gchar *full_uri,
- const gchar *title,
- const gchar *desc,
- const gchar *icon,
- const gchar *text);
- GVariant * (*search) (YelpStorage *storage,
- const gchar *doc_uri,
- const gchar *text);
+ void (*update) (YelpStorage *storage,
+ const gchar *doc_uri,
+ const gchar *full_uri,
+ const gchar *title,
+ const gchar *desc,
+ const gchar *icon,
+ const gchar *text);
+ GVariant * (*search) (YelpStorage *storage,
+ const gchar *doc_uri,
+ const gchar *text);
+ gchar * (*get_root_title) (YelpStorage *storage,
+ const gchar *doc_uri);
+ void (*set_root_title) (YelpStorage *storage,
+ const gchar *doc_uri,
+ const gchar *title);
};
GType yelp_storage_get_type (void);
@@ -65,6 +70,11 @@ void yelp_storage_update (YelpStorage *storage,
GVariant * yelp_storage_search (YelpStorage *storage,
const gchar *doc_uri,
const gchar *text);
+gchar * yelp_storage_get_root_title (YelpStorage *storage,
+ const gchar *doc_uri);
+void yelp_storage_set_root_title (YelpStorage *storage,
+ const gchar *doc_uri,
+ const gchar *title);
G_END_DECLS