summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-store.h
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2015-07-23 22:19:34 +0100
committerRichard Hughes <richard@hughsie.com>2015-07-27 09:45:00 +0100
commit7fdc8c83f7ab463b1429b410efcb6627df2c91f4 (patch)
treeca302ae88b6963cacaee6863a60542b718602202 /libappstream-glib/as-store.h
parenta228c324d8df884fc56c3464e373878e68139fa3 (diff)
downloadappstream-glib-7fdc8c83f7ab463b1429b410efcb6627df2c91f4.tar.gz
Emit the AsStore::changed signal if files or directories change
Diffstat (limited to 'libappstream-glib/as-store.h')
-rw-r--r--libappstream-glib/as-store.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/libappstream-glib/as-store.h b/libappstream-glib/as-store.h
index cb85fa7..b289c7d 100644
--- a/libappstream-glib/as-store.h
+++ b/libappstream-glib/as-store.h
@@ -102,6 +102,22 @@ typedef enum {
} AsStoreAddFlags;
/**
+ * AsStoreWatchFlags:
+ * @AS_STORE_WATCH_FLAG_NONE: No extra flags to use
+ * @AS_STORE_WATCH_FLAG_ADDED: Add applications if files change or are added
+ * @AS_STORE_WATCH_FLAG_REMOVED: Remove applications if files are changed or deleted
+ *
+ * The flags to use when local files are added or removed from the store.
+ **/
+typedef enum {
+ AS_STORE_WATCH_FLAG_NONE = 0, /* Since: 0.4.2 */
+ AS_STORE_WATCH_FLAG_ADDED = 1, /* Since: 0.4.2 */
+ AS_STORE_WATCH_FLAG_REMOVED = 2, /* Since: 0.4.2 */
+ /*< private >*/
+ AS_STORE_WATCH_FLAG_LAST
+} AsStoreWatchFlags;
+
+/**
* AsStoreError:
* @AS_STORE_ERROR_FAILED: Generic failure
*
@@ -185,6 +201,9 @@ void as_store_set_api_version (AsStore *store,
AsStoreAddFlags as_store_get_add_flags (AsStore *store);
void as_store_set_add_flags (AsStore *store,
AsStoreAddFlags add_flags);
+AsStoreWatchFlags as_store_get_watch_flags (AsStore *store);
+void as_store_set_watch_flags (AsStore *store,
+ AsStoreWatchFlags watch_flags);
GPtrArray *as_store_validate (AsStore *store,
AsAppValidateFlags flags,
GError **error);