summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2016-07-31 20:00:27 +0100
committerRichard Hughes <richard@hughsie.com>2016-08-10 10:46:12 +0100
commit492b113f5b38d7cc14788c466b80cc8abfccbef2 (patch)
tree9e90bcae6c29c8292ee4b18f17a4fe05293b372b
parent48436e2c180908344286a630bc9a05590d0d55a8 (diff)
downloadappstream-glib-492b113f5b38d7cc14788c466b80cc8abfccbef2.tar.gz
trivial: Add AS_BUNDLE_KIND_SNAP
-rw-r--r--libappstream-glib/as-bundle.c4
-rw-r--r--libappstream-glib/as-bundle.h8
2 files changed, 9 insertions, 3 deletions
diff --git a/libappstream-glib/as-bundle.c b/libappstream-glib/as-bundle.c
index 206844b..ee9f431 100644
--- a/libappstream-glib/as-bundle.c
+++ b/libappstream-glib/as-bundle.c
@@ -96,6 +96,8 @@ as_bundle_kind_from_string (const gchar *kind)
return AS_BUNDLE_KIND_FLATPAK;
if (g_strcmp0 (kind, "flatpak") == 0)
return AS_BUNDLE_KIND_FLATPAK;
+ if (g_strcmp0 (kind, "snap") == 0)
+ return AS_BUNDLE_KIND_SNAP;
return AS_BUNDLE_KIND_UNKNOWN;
}
@@ -116,6 +118,8 @@ as_bundle_kind_to_string (AsBundleKind kind)
return "limba";
if (kind == AS_BUNDLE_KIND_FLATPAK)
return "flatpak";
+ if (kind == AS_BUNDLE_KIND_SNAP)
+ return "snap";
return NULL;
}
diff --git a/libappstream-glib/as-bundle.h b/libappstream-glib/as-bundle.h
index 32fe68c..8dcce3e 100644
--- a/libappstream-glib/as-bundle.h
+++ b/libappstream-glib/as-bundle.h
@@ -52,13 +52,15 @@ struct _AsBundleClass
* @AS_BUNDLE_KIND_UNKNOWN: Type invalid or not known
* @AS_BUNDLE_KIND_LIMBA: Limba application bundle
* @AS_BUNDLE_KIND_FLATPAK: Flatpak application deployment
+ * @AS_BUNDLE_KIND_SNAP: Snap application deployment
*
* The bundle type.
**/
typedef enum {
- AS_BUNDLE_KIND_UNKNOWN,
- AS_BUNDLE_KIND_LIMBA,
- AS_BUNDLE_KIND_FLATPAK,
+ AS_BUNDLE_KIND_UNKNOWN, /* Since: 0.3.5 */
+ AS_BUNDLE_KIND_LIMBA, /* Since: 0.3.5 */
+ AS_BUNDLE_KIND_FLATPAK, /* Since: 0.5.15 */
+ AS_BUNDLE_KIND_SNAP, /* Since: 0.6.1 */
/*< private >*/
AS_BUNDLE_KIND_LAST
} AsBundleKind;