diff options
author | Richard Hughes <richard@hughsie.com> | 2014-03-25 11:52:18 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2014-03-25 11:52:18 +0000 |
commit | d3bb316f2167df1146d99de5a708542b3ee7061a (patch) | |
tree | 6bbe6852e4411bb262bc56a4f0da635d2eda74df /libappstream-glib/as-app.h | |
parent | 9eba19a6f0e34962768d511838ec97025c9ba62b (diff) | |
download | appstream-glib-d3bb316f2167df1146d99de5a708542b3ee7061a.tar.gz |
trivial: Do not use AsNodeError in AsApp
Diffstat (limited to 'libappstream-glib/as-app.h')
-rw-r--r-- | libappstream-glib/as-app.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libappstream-glib/as-app.h b/libappstream-glib/as-app.h index 8c78e32..9af0ceb 100644 --- a/libappstream-glib/as-app.h +++ b/libappstream-glib/as-app.h @@ -77,8 +77,25 @@ typedef enum { AS_APP_PARSE_FLAG_LAST, } AsAppParseFlags; +/** + * AsAppError: + * @AS_APP_ERROR_FAILED: Generic failure + * @AS_APP_ERROR_INVALID_TYPE: Invalid type + * + * The error type. + **/ +typedef enum { + AS_APP_ERROR_FAILED, + AS_APP_ERROR_INVALID_TYPE, + /*< private >*/ + AS_APP_ERROR_LAST +} AsAppError; + +#define AS_APP_ERROR as_app_error_quark () + GType as_app_get_type (void); AsApp *as_app_new (void); +GQuark as_app_error_quark (void); /* getters */ AsIconKind as_app_get_icon_kind (AsApp *app); |