summaryrefslogtreecommitdiff
path: root/osinfo/osinfo_loader.h
diff options
context:
space:
mode:
authorFabiano FidĂȘncio <fidencio@redhat.com>2020-01-03 23:58:34 +0100
committerFabiano FidĂȘncio <fidencio@redhat.com>2020-01-04 00:02:09 +0100
commit1c80d841eec20f9f0cd266c6865a6c4aab03fc4f (patch)
tree78064672a3fa0aa7cfc87711ba34ebb7dd5675c2 /osinfo/osinfo_loader.h
parent7a1e523a78a1caebd6206af4a0a8fde2efe77050 (diff)
downloadlibosinfo-1c80d841eec20f9f0cd266c6865a6c4aab03fc4f.tar.gz
loader: Introduce OsinfoError enum
Let's create an OsinfoError enum instead of just using 0 as the error type. This solves the following instrospection warning: ``` <unknown>:: Warning: Libosinfo: (ErrorQuarkFunction)error_quark: osinfo_error_quark: Couldn't find corresponding enumeration ``` Signed-off-by: Fabiano FidĂȘncio <fidencio@redhat.com>
Diffstat (limited to 'osinfo/osinfo_loader.h')
-rw-r--r--osinfo/osinfo_loader.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/osinfo/osinfo_loader.h b/osinfo/osinfo_loader.h
index aa54b94..6736892 100644
--- a/osinfo/osinfo_loader.h
+++ b/osinfo/osinfo_loader.h
@@ -67,6 +67,17 @@ struct _OsinfoLoaderClass
GType osinfo_loader_get_type(void);
/**
+ * OsinfoError:
+ * @OSINFO_ERROR_GENERIC: Generic Osinfo error;
+ *
+ * #GError codes used for errors in #OSINFO_ERROR domain.
+ * Since: 1.8.0
+ */
+typedef enum {
+ OSINFO_ERROR_GENERIC = 0,
+} OsinfoError;
+
+/**
* OSINFO_ERROR:
*
* Error domain for generic libosinfo errors