diff options
author | Marius Vollmer <mvollmer@redhat.com> | 2017-09-14 15:52:48 +0300 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2017-10-16 16:51:35 +0100 |
commit | 95089c41c534a777ee8efd8b5436ff85f9a6b61d (patch) | |
tree | 462a61ae70a18fb85b938c6439ff2ab618f71200 /libappstream-glib/as-launchable.c | |
parent | 326ecb0984ee66da3491f5f83942b81740bf5c4e (diff) | |
download | appstream-glib-95089c41c534a777ee8efd8b5436ff85f9a6b61d.tar.gz |
Add new launchable types from the 0.11 series of the spec
Diffstat (limited to 'libappstream-glib/as-launchable.c')
-rw-r--r-- | libappstream-glib/as-launchable.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libappstream-glib/as-launchable.c b/libappstream-glib/as-launchable.c index 98f4840..c235e9b 100644 --- a/libappstream-glib/as-launchable.c +++ b/libappstream-glib/as-launchable.c @@ -90,6 +90,10 @@ as_launchable_kind_from_string (const gchar *kind) { if (g_strcmp0 (kind, "desktop-id") == 0) return AS_LAUNCHABLE_KIND_DESKTOP_ID; + if (g_strcmp0 (kind, "service") == 0) + return AS_LAUNCHABLE_KIND_SERVICE; + if (g_strcmp0 (kind, "cockpit-manifest") == 0) + return AS_LAUNCHABLE_KIND_COCKPIT_MANIFEST; return AS_LAUNCHABLE_KIND_UNKNOWN; } @@ -108,6 +112,10 @@ as_launchable_kind_to_string (AsLaunchableKind kind) { if (kind == AS_LAUNCHABLE_KIND_DESKTOP_ID) return "desktop-id"; + if (kind == AS_LAUNCHABLE_KIND_SERVICE) + return "service"; + if (kind == AS_LAUNCHABLE_KIND_COCKPIT_MANIFEST) + return "cockpit-manifest"; return NULL; } |