diff options
author | Richard Hughes <richard@hughsie.com> | 2016-09-02 18:14:41 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2016-09-02 18:14:41 +0100 |
commit | 66f18b2157d593ee89dbbb7032bf54f1628362bb (patch) | |
tree | 15dd0f2cc08831a1e354a13893b8a41b467cee2f /libappstream-glib/as-app.c | |
parent | 6d735d324d751c94587cf9f48ebdb9656777a151 (diff) | |
download | appstream-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.c | 4 |
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) |