diff options
author | Richard Hughes <richard@hughsie.com> | 2016-03-01 13:02:43 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2016-03-01 13:03:17 +0000 |
commit | 15750a7ac11d1553873606979d88aacca8530804 (patch) | |
tree | 91adf1df93479dcaa9d2e27384db52bf8ee617e3 | |
parent | be7aac023dab69159cceccaa75e7ee5c0c1add2b (diff) | |
download | appstream-glib-15750a7ac11d1553873606979d88aacca8530804.tar.gz |
Add AS_APP_KIND_LOCALIZATION
-rw-r--r-- | libappstream-glib/as-app.c | 4 | ||||
-rw-r--r-- | libappstream-glib/as-app.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/libappstream-glib/as-app.c b/libappstream-glib/as-app.c index 3e6e618..31e1aa5 100644 --- a/libappstream-glib/as-app.c +++ b/libappstream-glib/as-app.c @@ -165,6 +165,8 @@ as_app_kind_to_string (AsAppKind kind) return "os-upgrade"; if (kind == AS_APP_KIND_SHELL_EXTENSION) return "shell-extension"; + if (kind == AS_APP_KIND_LOCALIZATION) + return "localization"; return "unknown"; } @@ -207,6 +209,8 @@ as_app_kind_from_string (const gchar *kind) return AS_APP_KIND_OS_UPGRADE; if (g_strcmp0 (kind, "shell-extension") == 0) return AS_APP_KIND_SHELL_EXTENSION; + if (g_strcmp0 (kind, "localization") == 0) + return AS_APP_KIND_LOCALIZATION; return AS_APP_KIND_UNKNOWN; } diff --git a/libappstream-glib/as-app.h b/libappstream-glib/as-app.h index aa4af78..cdbb9c6 100644 --- a/libappstream-glib/as-app.h +++ b/libappstream-glib/as-app.h @@ -185,6 +185,7 @@ typedef enum { * @AS_APP_KIND_OS_UPDATE: Operating system update * @AS_APP_KIND_OS_UPGRADE: Operating system upgrade * @AS_APP_KIND_SHELL_EXTENSION: GNOME Shell extension + * @AS_APP_KIND_LOCALIZATION: Localization data * * The component type. **/ @@ -203,6 +204,7 @@ typedef enum { AS_APP_KIND_OS_UPDATE, /* Since: 0.5.10 */ 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 */ /*< private >*/ AS_APP_KIND_LAST } AsAppKind; |