summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2016-07-31 21:18:53 +0100
committerRichard Hughes <richard@hughsie.com>2016-08-10 10:46:19 +0100
commitfe2d311e91c2ac7d6b2ea2ac79801f96299cb826 (patch)
treeb26334a3ec7e87ca865fca28d71cc3a673293ecb
parent492b113f5b38d7cc14788c466b80cc8abfccbef2 (diff)
downloadappstream-glib-fe2d311e91c2ac7d6b2ea2ac79801f96299cb826.tar.gz
trivial: Add AS_BUNDLE_KIND_PACKAGE
-rw-r--r--libappstream-glib/as-bundle.c4
-rw-r--r--libappstream-glib/as-bundle.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/libappstream-glib/as-bundle.c b/libappstream-glib/as-bundle.c
index ee9f431..2a4f109 100644
--- a/libappstream-glib/as-bundle.c
+++ b/libappstream-glib/as-bundle.c
@@ -98,6 +98,8 @@ as_bundle_kind_from_string (const gchar *kind)
return AS_BUNDLE_KIND_FLATPAK;
if (g_strcmp0 (kind, "snap") == 0)
return AS_BUNDLE_KIND_SNAP;
+ if (g_strcmp0 (kind, "package") == 0)
+ return AS_BUNDLE_KIND_PACKAGE;
return AS_BUNDLE_KIND_UNKNOWN;
}
@@ -120,6 +122,8 @@ as_bundle_kind_to_string (AsBundleKind kind)
return "flatpak";
if (kind == AS_BUNDLE_KIND_SNAP)
return "snap";
+ if (kind == AS_BUNDLE_KIND_PACKAGE)
+ return "package";
return NULL;
}
diff --git a/libappstream-glib/as-bundle.h b/libappstream-glib/as-bundle.h
index 8dcce3e..a8a8de8 100644
--- a/libappstream-glib/as-bundle.h
+++ b/libappstream-glib/as-bundle.h
@@ -53,6 +53,7 @@ struct _AsBundleClass
* @AS_BUNDLE_KIND_LIMBA: Limba application bundle
* @AS_BUNDLE_KIND_FLATPAK: Flatpak application deployment
* @AS_BUNDLE_KIND_SNAP: Snap application deployment
+ * @AS_BUNDLE_KIND_PACKAGE: Package-based application deployment
*
* The bundle type.
**/
@@ -61,6 +62,7 @@ typedef enum {
AS_BUNDLE_KIND_LIMBA, /* Since: 0.3.5 */
AS_BUNDLE_KIND_FLATPAK, /* Since: 0.5.15 */
AS_BUNDLE_KIND_SNAP, /* Since: 0.6.1 */
+ AS_BUNDLE_KIND_PACKAGE, /* Since: 0.6.1 */
/*< private >*/
AS_BUNDLE_KIND_LAST
} AsBundleKind;