diff options
author | Matthias Klumpp <matthias@tenstral.net> | 2016-08-11 18:37:12 +0200 |
---|---|---|
committer | Matthias Klumpp <matthias@tenstral.net> | 2016-08-11 18:37:12 +0200 |
commit | 0572fda7d59c474a43662493e3daed6d275610dc (patch) | |
tree | 06189957ea602378eb154f7fdd4be05098c1a796 | |
parent | 2c479053850958575c8de50fbee4433ec05019d3 (diff) | |
download | appstream-glib-0572fda7d59c474a43662493e3daed6d275610dc.tar.gz |
Add console-app component type
See #127
-rw-r--r-- | libappstream-glib/as-app.c | 4 | ||||
-rw-r--r-- | libappstream-glib/as-app.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/libappstream-glib/as-app.c b/libappstream-glib/as-app.c index 2151514..ee32f67 100644 --- a/libappstream-glib/as-app.c +++ b/libappstream-glib/as-app.c @@ -177,6 +177,8 @@ as_app_kind_to_string (AsAppKind kind) return "shell-extension"; if (kind == AS_APP_KIND_LOCALIZATION) return "localization"; + if (kind == AS_APP_KIND_CONSOLE) + return "console-application"; return "unknown"; } @@ -221,6 +223,8 @@ as_app_kind_from_string (const gchar *kind) return AS_APP_KIND_SHELL_EXTENSION; if (g_strcmp0 (kind, "localization") == 0) return AS_APP_KIND_LOCALIZATION; + if (g_strcmp0 (kind, "console-application") == 0) + return AS_APP_KIND_CONSOLE; /* legacy */ if (g_strcmp0 (kind, "desktop") == 0) diff --git a/libappstream-glib/as-app.h b/libappstream-glib/as-app.h index c11ea23..64b4221 100644 --- a/libappstream-glib/as-app.h +++ b/libappstream-glib/as-app.h @@ -310,6 +310,7 @@ typedef enum { AS_APP_KIND_OS_UPGRADE, /* Since: 0.5.10 */ AS_APP_KIND_SHELL_EXTENSION, /* Since: 0.5.10 */ AS_APP_KIND_LOCALIZATION, /* Since: 0.5.11 */ + AS_APP_KIND_CONSOLE, /* Since: 0.6.1 */ /*< private >*/ AS_APP_KIND_LAST } AsAppKind; |