summaryrefslogtreecommitdiff
path: root/tests/scanner/warnlib.h
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2012-12-02 12:15:53 -0500
committerColin Walters <walters@verbum.org>2012-12-02 16:25:02 -0500
commit97b30ae5e77d5e36d127d02b247d6d41b8e1c8c3 (patch)
tree5e038984d7b6586a747b06dd2476079b68587f80 /tests/scanner/warnlib.h
parentceb84d1e084b8048b2abb81d1e1ebe600f00d00e (diff)
downloadgobject-introspection-97b30ae5e77d5e36d127d02b247d6d41b8e1c8c3.tar.gz
WarnLib: New library for testing API that emits warnings
Both GIMarshallingTests and Regress right now use --warn-error; but in some cases (e.g. GErrors without a corresponding enum), we still want bindings to support the functionality. So add this new library where we can add C API that emits introspection warnings. https://bugzilla.gnome.org/show_bug.cgi?id=689488
Diffstat (limited to 'tests/scanner/warnlib.h')
-rw-r--r--tests/scanner/warnlib.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/scanner/warnlib.h b/tests/scanner/warnlib.h
new file mode 100644
index 00000000..8aca901a
--- /dev/null
+++ b/tests/scanner/warnlib.h
@@ -0,0 +1,13 @@
+/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
+
+#ifndef __WARNLIB_H__
+#define __WARNLIB_H__
+
+#include <gio/gio.h>
+
+#define WARNLIB_UNPAIRED_ERROR (warnlib_unpaired_error_quark ())
+GQuark warnlib_unpaired_error_quark (void);
+
+gboolean warnlib_throw_unpaired (GError **error);
+
+#endif