summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-app.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2016-09-02 18:14:41 +0100
committerRichard Hughes <richard@hughsie.com>2016-09-02 18:14:41 +0100
commit66f18b2157d593ee89dbbb7032bf54f1628362bb (patch)
tree15dd0f2cc08831a1e354a13893b8a41b467cee2f /libappstream-glib/as-app.c
parent6d735d324d751c94587cf9f48ebdb9656777a151 (diff)
downloadappstream-glib-66f18b2157d593ee89dbbb7032bf54f1628362bb.tar.gz
Add a component kind of 'driver'
Diffstat (limited to 'libappstream-glib/as-app.c')
-rw-r--r--libappstream-glib/as-app.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libappstream-glib/as-app.c b/libappstream-glib/as-app.c
index 67896bf..4eeacf6 100644
--- a/libappstream-glib/as-app.c
+++ b/libappstream-glib/as-app.c
@@ -180,6 +180,8 @@ as_app_kind_to_string (AsAppKind kind)
return "localization";
if (kind == AS_APP_KIND_CONSOLE)
return "console-application";
+ if (kind == AS_APP_KIND_DRIVER)
+ return "driver";
return "unknown";
}
@@ -226,6 +228,8 @@ as_app_kind_from_string (const gchar *kind)
return AS_APP_KIND_LOCALIZATION;
if (g_strcmp0 (kind, "console-application") == 0)
return AS_APP_KIND_CONSOLE;
+ if (g_strcmp0 (kind, "driver") == 0)
+ return AS_APP_KIND_DRIVER;
/* legacy */
if (g_strcmp0 (kind, "desktop") == 0)