diff options
author | Richard Hughes <richard@hughsie.com> | 2016-09-12 15:57:18 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2016-09-12 15:57:18 +0100 |
commit | 09919fcf75fd9672b80468d4f0e4e2a58cac26fd (patch) | |
tree | 3cf7eabc5c40754bb9a7156f336bb5772be630a1 | |
parent | ad562c06736122389d8ba56adb3d277693316e46 (diff) | |
download | appstream-glib-09919fcf75fd9672b80468d4f0e4e2a58cac26fd.tar.gz |
Add support for AppImage bundles
-rw-r--r-- | libappstream-glib/as-bundle.c | 4 | ||||
-rw-r--r-- | libappstream-glib/as-bundle.h | 2 |
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; |