[gnome-software: 1/13] lib: Move GsAppListFilterFlags definition to public header




commit 9f1d96208d217f83e7ef7b869e9bd14bc06b260a
Author: Philip Withnall <pwithnall endlessos org>
Date:   Tue Jan 26 16:34:44 2021 +0000

    lib: Move GsAppListFilterFlags definition to public header
    
    It’s used in the public `GsPluginJob:dedupe-flags` property, so should
    be public already.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>

 lib/gs-app-list-private.h | 27 ---------------------------
 lib/gs-app-list.h         | 29 +++++++++++++++++++++++++++++
 2 files changed, 29 insertions(+), 27 deletions(-)
---
diff --git a/lib/gs-app-list-private.h b/lib/gs-app-list-private.h
index ab357f41..41e138fd 100644
--- a/lib/gs-app-list-private.h
+++ b/lib/gs-app-list-private.h
@@ -34,33 +34,6 @@ typedef enum {
        GS_APP_LIST_FLAG_LAST
 } GsAppListFlags;
 
-/**
- * GsAppListFilterFlags:
- * @GS_APP_LIST_FILTER_FLAG_NONE:              No flags set
- * @GS_APP_LIST_FILTER_FLAG_KEY_ID:            Filter by ID
- * @GS_APP_LIST_FILTER_FLAG_KEY_SOURCE:                Filter by default source
- * @GS_APP_LIST_FILTER_FLAG_KEY_VERSION:       Filter by version
- * @GS_APP_LIST_FILTER_FLAG_PREFER_INSTALLED:  Prefer installed applications
- * @GS_APP_LIST_FILTER_FLAG_KEY_ID_PROVIDES:   Filter using the provides ID
- *
- * Flags to use when filtering. The priority of each #GsApp is used to choose
- * which application object to keep.
- **/
-typedef enum {
-       GS_APP_LIST_FILTER_FLAG_NONE            = 0,
-       GS_APP_LIST_FILTER_FLAG_KEY_ID          = 1 << 0,
-       GS_APP_LIST_FILTER_FLAG_KEY_SOURCE      = 1 << 1,
-       GS_APP_LIST_FILTER_FLAG_KEY_VERSION     = 1 << 2,
-       GS_APP_LIST_FILTER_FLAG_PREFER_INSTALLED= 1 << 3,
-       GS_APP_LIST_FILTER_FLAG_KEY_ID_PROVIDES = 1 << 4,
-       /*< private >*/
-       GS_APP_LIST_FILTER_FLAG_LAST,
-       GS_APP_LIST_FILTER_FLAG_MASK            = G_MAXUINT64
-} GsAppListFilterFlags;
-
-/* All the properties which use #GsAppListFilterFlags are guint64s. */
-G_STATIC_ASSERT (sizeof (GsAppListFilterFlags) == sizeof (guint64));
-
 GsAppList      *gs_app_list_copy               (GsAppList      *list);
 guint           gs_app_list_get_size_peak      (GsAppList      *list);
 void            gs_app_list_filter_duplicates  (GsAppList      *list,
diff --git a/lib/gs-app-list.h b/lib/gs-app-list.h
index abb405b0..e7902a6d 100644
--- a/lib/gs-app-list.h
+++ b/lib/gs-app-list.h
@@ -14,6 +14,35 @@
 
 G_BEGIN_DECLS
 
+/**
+ * GsAppListFilterFlags:
+ * @GS_APP_LIST_FILTER_FLAG_NONE:              No flags set
+ * @GS_APP_LIST_FILTER_FLAG_KEY_ID:            Filter by ID
+ * @GS_APP_LIST_FILTER_FLAG_KEY_SOURCE:                Filter by default source
+ * @GS_APP_LIST_FILTER_FLAG_KEY_VERSION:       Filter by version
+ * @GS_APP_LIST_FILTER_FLAG_PREFER_INSTALLED:  Prefer installed applications
+ * @GS_APP_LIST_FILTER_FLAG_KEY_ID_PROVIDES:   Filter using the provides ID
+ *
+ * Flags to use when filtering. The priority of each #GsApp is used to choose
+ * which application object to keep.
+ *
+ * Since: 40
+ **/
+typedef enum {
+       GS_APP_LIST_FILTER_FLAG_NONE            = 0,
+       GS_APP_LIST_FILTER_FLAG_KEY_ID          = 1 << 0,
+       GS_APP_LIST_FILTER_FLAG_KEY_SOURCE      = 1 << 1,
+       GS_APP_LIST_FILTER_FLAG_KEY_VERSION     = 1 << 2,
+       GS_APP_LIST_FILTER_FLAG_PREFER_INSTALLED= 1 << 3,
+       GS_APP_LIST_FILTER_FLAG_KEY_ID_PROVIDES = 1 << 4,
+       /*< private >*/
+       GS_APP_LIST_FILTER_FLAG_LAST,
+       GS_APP_LIST_FILTER_FLAG_MASK            = G_MAXUINT64
+} GsAppListFilterFlags;
+
+/* All the properties which use #GsAppListFilterFlags are guint64s. */
+G_STATIC_ASSERT (sizeof (GsAppListFilterFlags) == sizeof (guint64));
+
 #define GS_TYPE_APP_LIST (gs_app_list_get_type ())
 
 G_DECLARE_FINAL_TYPE (GsAppList, gs_app_list, GS, APP_LIST, GObject)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]