diff options
Diffstat (limited to 'libappstream-glib')
-rw-r--r-- | libappstream-glib/as-provide.c | 4 | ||||
-rw-r--r-- | libappstream-glib/as-provide.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/libappstream-glib/as-provide.c b/libappstream-glib/as-provide.c index 0f79998..b5ecde2 100644 --- a/libappstream-glib/as-provide.c +++ b/libappstream-glib/as-provide.c @@ -107,6 +107,8 @@ as_provide_kind_from_string (const gchar *kind) return AS_PROVIDE_KIND_DBUS_SESSION; if (g_strcmp0 (kind, "dbus-system") == 0) return AS_PROVIDE_KIND_DBUS_SYSTEM; + if (g_strcmp0 (kind, "id") == 0) + return AS_PROVIDE_KIND_ID; return AS_PROVIDE_KIND_UNKNOWN; } @@ -143,6 +145,8 @@ as_provide_kind_to_string (AsProvideKind kind) return "dbus"; if (kind == AS_PROVIDE_KIND_DBUS_SYSTEM) return "dbus-system"; + if (kind == AS_PROVIDE_KIND_ID) + return "id"; return NULL; } diff --git a/libappstream-glib/as-provide.h b/libappstream-glib/as-provide.h index ba4b7ee..78aa5de 100644 --- a/libappstream-glib/as-provide.h +++ b/libappstream-glib/as-provide.h @@ -60,6 +60,7 @@ struct _AsProvideClass * @AS_PROVIDE_KIND_DBUS_SESSION: A D-Bus session service * @AS_PROVIDE_KIND_DBUS_SYSTEM: A D-Bus system service * @AS_PROVIDE_KIND_FIRMWARE_FLASHED: A flashed firmware GUID + * @AS_PROVIDE_KIND_ID: An AppStream component ID * * The provide type. **/ @@ -75,6 +76,7 @@ typedef enum { AS_PROVIDE_KIND_DBUS_SESSION, /* Since: 0.1.7 */ AS_PROVIDE_KIND_DBUS_SYSTEM, /* Since: 0.2.4 */ AS_PROVIDE_KIND_FIRMWARE_FLASHED, /* Since: 0.5.0 */ + AS_PROVIDE_KIND_ID, /* Since: 0.7.1 */ /*< private >*/ AS_PROVIDE_KIND_LAST } AsProvideKind; |