[gnome-software: 4/8] gs-plugin-types: Add REQUIRE_STATE refine flag
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 4/8] gs-plugin-types: Add REQUIRE_STATE refine flag
- Date: Wed, 8 Dec 2021 08:06:14 +0000 (UTC)
commit b33761508a1374b3b40be43409f9ea28b5778b65
Author: Philip Withnall <pwithnall endlessos org>
Date: Mon Dec 6 13:43:59 2021 +0000
gs-plugin-types: Add REQUIRE_STATE refine flag
This will be used in upcoming commits as the simplest possible
requirement for a refine.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
Helps: #1472
lib/gs-plugin-types.h | 4 ++--
lib/gs-plugin.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/lib/gs-plugin-types.h b/lib/gs-plugin-types.h
index 415409ce0..92a8d5f45 100644
--- a/lib/gs-plugin-types.h
+++ b/lib/gs-plugin-types.h
@@ -95,7 +95,7 @@ typedef enum {
/**
* GsPluginRefineFlags:
* @GS_PLUGIN_REFINE_FLAGS_DEFAULT: No explicit flags set
- * @GS_PLUGIN_REFINE_FLAGS_USE_HISTORY: Get the historical view (unused)
+ * @GS_PLUGIN_REFINE_FLAGS_REQUIRE_ID: Require the app’s ID; this is the minimum possible
requirement
* @GS_PLUGIN_REFINE_FLAGS_REQUIRE_LICENSE: Require the license
* @GS_PLUGIN_REFINE_FLAGS_REQUIRE_URL: Require the URL
* @GS_PLUGIN_REFINE_FLAGS_REQUIRE_DESCRIPTION: Require the long description
@@ -132,7 +132,7 @@ typedef enum {
**/
typedef enum {
GS_PLUGIN_REFINE_FLAGS_DEFAULT = 0,
- GS_PLUGIN_REFINE_FLAGS_USE_HISTORY = 1 << 0, /* unused, TODO: perhaps ->STATE */
+ GS_PLUGIN_REFINE_FLAGS_REQUIRE_ID = 1 << 0,
GS_PLUGIN_REFINE_FLAGS_REQUIRE_LICENSE = 1 << 1,
GS_PLUGIN_REFINE_FLAGS_REQUIRE_URL = 1 << 2,
GS_PLUGIN_REFINE_FLAGS_REQUIRE_DESCRIPTION = 1 << 3,
diff --git a/lib/gs-plugin.c b/lib/gs-plugin.c
index 352094d64..32284a270 100644
--- a/lib/gs-plugin.c
+++ b/lib/gs-plugin.c
@@ -1916,8 +1916,8 @@ gs_plugin_refine_flags_to_string (GsPluginRefineFlags refine_flags)
g_autoptr(GPtrArray) cstrs = g_ptr_array_new ();
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdiscarded-qualifiers"
- if (refine_flags & GS_PLUGIN_REFINE_FLAGS_USE_HISTORY)
- g_ptr_array_add (cstrs, "use-history");
+ if (refine_flags & GS_PLUGIN_REFINE_FLAGS_REQUIRE_ID)
+ g_ptr_array_add (cstrs, "require-id");
if (refine_flags & GS_PLUGIN_REFINE_FLAGS_REQUIRE_LICENSE)
g_ptr_array_add (cstrs, "require-license");
if (refine_flags & GS_PLUGIN_REFINE_FLAGS_REQUIRE_URL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]