summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 d6872c8..a793828 100644
--- a/libappstream-glib/as-bundle.c
+++ b/libappstream-glib/as-bundle.c
@@ -102,6 +102,8 @@ as_bundle_kind_from_string (const gchar *kind)
return AS_BUNDLE_KIND_PACKAGE;
if (g_strcmp0 (kind, "cabinet") == 0)
return AS_BUNDLE_KIND_CABINET;
+ if (g_strcmp0 (kind, "appimage") == 0)
+ return AS_BUNDLE_KIND_APPIMAGE;
return AS_BUNDLE_KIND_UNKNOWN;
}
@@ -128,6 +130,8 @@ as_bundle_kind_to_string (AsBundleKind kind)
return "package";
if (kind == AS_BUNDLE_KIND_CABINET)
return "cabinet";
+ if (kind == AS_BUNDLE_KIND_APPIMAGE)
+ return "appimage";
return NULL;
}
diff --git a/libappstream-glib/as-bundle.h b/libappstream-glib/as-bundle.h
index 8e14955..4d6af05 100644
--- a/libappstream-glib/as-bundle.h
+++ b/libappstream-glib/as-bundle.h
@@ -55,6 +55,7 @@ struct _AsBundleClass
* @AS_BUNDLE_KIND_SNAP: Snap application deployment
* @AS_BUNDLE_KIND_PACKAGE: Package-based application deployment
* @AS_BUNDLE_KIND_CABINET: Cabinet firmware deployment
+ * @AS_BUNDLE_KIND_APPIMAGE: AppImage application bundle
*
* The bundle type.
**/
@@ -65,6 +66,7 @@ typedef enum {
AS_BUNDLE_KIND_SNAP, /* Since: 0.6.1 */
AS_BUNDLE_KIND_PACKAGE, /* Since: 0.6.1 */
AS_BUNDLE_KIND_CABINET, /* Since: 0.6.2 */
+ AS_BUNDLE_KIND_APPIMAGE, /* Since: 0.6.4 */
/*< private >*/
AS_BUNDLE_KIND_LAST
} AsBundleKind;