summaryrefslogtreecommitdiff
path: root/tests/scanner/barapp.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/scanner/barapp.h')
-rw-r--r--tests/scanner/barapp.h26
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);