diff options
author | Colin Walters <walters@verbum.org> | 2010-09-01 12:19:27 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2010-09-01 12:19:27 -0400 |
commit | 5d114c3832a8ac6b3897c02be420d299fb90692c (patch) | |
tree | 4e3de0fdd35bbce1cc5285ddb1e5db8224e99659 /tests/scanner/barapp.h | |
parent | f27f88de77ba4a84e2523a473d0af62b1c731f8d (diff) | |
download | gobject-introspection-5d114c3832a8ac6b3897c02be420d299fb90692c.tar.gz |
scanner: Add --accept-unprefixed
This is necessary for Mutter right now.
Diffstat (limited to 'tests/scanner/barapp.h')
-rw-r--r-- | tests/scanner/barapp.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/scanner/barapp.h b/tests/scanner/barapp.h index ff8037de..12c39a5f 100644 --- a/tests/scanner/barapp.h +++ b/tests/scanner/barapp.h @@ -22,3 +22,29 @@ GType bar_baz_get_type (void) G_GNUC_CONST; void bar_app_func (void); void bar_app_func2 (int x, double y); + + +/* The intent of this case is to match mutter, which has unprefixed names like "MutterWindow". + * In this case we don't want to add "Mutter" as a namespace prefix, since that gives us a + * clash on a class name. (MetaWindow and MutterWindow) + */ +#define MUTTER_TYPE_WINDOW (mutter_window_get_type ()) +#define MUTTER_WINDOW(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), MUTTER_TYPE_WINDOW, MutterWindow)) +#define MUTTER_IS_WINDOW(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), MUTTER_TYPE_WINDOW)) + +typedef struct MutterWindow MutterWindow; +typedef struct MutterWindowClass MutterWindowClass; + +struct MutterWindow +{ + GObject parent_instance; +}; + +struct MutterWindowClass +{ + GObjectClass parent_class; +}; + +GType mutter_window_get_type (void) G_GNUC_CONST; + +void mutter_window_func (MutterWindow *window, guint v); |