diff options
author | Mark Doffman <mark.doffman@codethink.co.uk> | 2014-03-27 20:50:21 +0000 |
---|---|---|
committer | Mark Doffman <mark.doffman@codethink.co.uk> | 2014-03-27 20:50:21 +0000 |
commit | 68ff94340891f1ae4ea24546acdbbc39c4dcbcd0 (patch) | |
tree | 46f02cba671bcb321482c7961acd91aeee57ced5 /tests/scanner/warnlib.c | |
parent | 19da3f81593614198206c45527f973a22cdd621e (diff) | |
parent | 89e84d06dffbc732bac26a105244b7270c42e3ec (diff) | |
download | gobject-introspection-baserock/markdoffman/1_39_90-merge.tar.gz |
Merge tag 'GOBJECT_INTROSPECTION_1_39_90' into baserock/markdoffman/1_39_90-mergebaserock/markdoffman/1_39_90-merge
Tag 1_39_90
Conflicts:
autogen.sh
configure.ac
Diffstat (limited to 'tests/scanner/warnlib.c')
-rw-r--r-- | tests/scanner/warnlib.c | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/tests/scanner/warnlib.c b/tests/scanner/warnlib.c new file mode 100644 index 00000000..d7c1e2a1 --- /dev/null +++ b/tests/scanner/warnlib.c @@ -0,0 +1,47 @@ +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ + +#include "config.h" + +#include "warnlib.h" + +GQuark +warnlib_unpaired_error_quark (void) +{ + return g_quark_from_static_string ("warnlib-unpaired-error"); +} + +gboolean +warnlib_throw_unpaired (GError **error) +{ + g_set_error_literal (error, warnlib_unpaired_error_quark (), 0, + "Unpaired error"); + return FALSE; +} + +typedef WarnLibWhateverIface WarnLibWhateverInterface; +G_DEFINE_INTERFACE (WarnLibWhatever, warnlib_whatever, G_TYPE_OBJECT) + +static void +warnlib_whatever_default_init(WarnLibWhateverIface *iface) +{ +} + +void +warnlib_whatever_do_moo (WarnLibWhatever *self, int x, gpointer y) +{ + WARNLIB_WHATEVER_GET_IFACE(self)->do_moo (self, x, y); +} + +/** + * warnlib_whatever_do_boo: + * @self: a WarnLibWhatever + * @x: x parameter + * @y: y parameter + * + * Does boo. + */ +void +warnlib_whatever_do_boo (WarnLibWhatever *self, int x, gpointer y) +{ + WARNLIB_WHATEVER_GET_IFACE(self)->do_boo (self, x, y); +} |