diff options
author | Richard Hughes <richard@hughsie.com> | 2014-10-24 15:21:36 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2014-10-24 15:23:06 +0100 |
commit | 820333a5afe18f792c2a0b89a6b640f6f2960f6b (patch) | |
tree | 83381b5ba31feebe81e053c9acea438123885e6c /libappstream-glib/as-app.h | |
parent | de66f11378a974c05927f6fc11fa822b24d45589 (diff) | |
download | appstream-glib-820333a5afe18f792c2a0b89a6b640f6f2960f6b.tar.gz |
Add as_app_set_origin()
This allows us to get the origin the package was read from in the instance we
have more than one resource being loaded into the store.
Diffstat (limited to 'libappstream-glib/as-app.h')
-rw-r--r-- | libappstream-glib/as-app.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libappstream-glib/as-app.h b/libappstream-glib/as-app.h index be44302..dc65389 100644 --- a/libappstream-glib/as-app.h +++ b/libappstream-glib/as-app.h @@ -245,6 +245,7 @@ const gchar *as_app_get_id_filename (AsApp *app); const gchar *as_app_get_id (AsApp *app); const gchar *as_app_get_pkgname_default (AsApp *app); const gchar *as_app_get_source_pkgname (AsApp *app); +const gchar *as_app_get_origin (AsApp *app); const gchar *as_app_get_project_group (AsApp *app); const gchar *as_app_get_project_license (AsApp *app); const gchar *as_app_get_metadata_license (AsApp *app); @@ -284,6 +285,8 @@ void as_app_set_state (AsApp *app, AsAppState state); void as_app_set_trust_flags (AsApp *app, AsAppTrustFlags trust_flags); +void as_app_set_origin (AsApp *app, + const gchar *origin); void as_app_set_project_group (AsApp *app, const gchar *project_group, gssize project_group_len); |