summaryrefslogtreecommitdiff
path: root/tests/scanner/foo.h
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2010-09-08 12:18:51 -0400
committerColin Walters <walters@verbum.org>2010-09-08 12:18:51 -0400
commit5140ec172415192af4f406b1fd5ff4615caf1386 (patch)
treefeb543dea2f0465624f90794f17fb81246aaddf5 /tests/scanner/foo.h
parent6172c268a98c7a2e478b78068ccdb3c23e80ce66 (diff)
downloadgobject-introspection-5140ec172415192af4f406b1fd5ff4615caf1386.tar.gz
scanner: Don't mark as constructors things that are more obviously methods
If the first parameter matches the origin, don't scan as a constructor. Happened in practice with meta_screen_append_new_workspace from mutter.
Diffstat (limited to 'tests/scanner/foo.h')
-rw-r--r--tests/scanner/foo.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/scanner/foo.h b/tests/scanner/foo.h
index 5a67e654..110c3139 100644
--- a/tests/scanner/foo.h
+++ b/tests/scanner/foo.h
@@ -34,6 +34,10 @@
#define FOO_BUFFER(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), FOO_TYPE_BUFFER, FooBuffer))
#define FOO_IS_BUFFER(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), FOO_TYPE_BUFFER))
+#define FOO_TYPE_OTHER_OBJECT (foo_other_object_get_type ())
+#define FOO_OTHER_OBJECT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), FOO_TYPE_OTHER_OBJECT, FooOtherObject))
+#define FOO_IS_OTHER_OBJECT(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), FOO_TYPE_OTHER_OBJECT))
+
typedef struct _FooInterface FooInterface;
typedef struct _FooInterfaceIface FooInterfaceIface;
typedef struct _FooSubInterface FooSubInterface;
@@ -44,6 +48,8 @@ typedef struct _FooSubobject FooSubobject;
typedef struct _FooSubobjectClass FooSubobjectClass;
typedef struct _FooBuffer FooBuffer;
typedef struct _FooBufferClass FooBufferClass;
+typedef struct _FooOtherObject FooOtherObject;
+typedef struct _FooOtherObjectClass FooOtherObjectClass;
struct _FooInterfaceIface
{
@@ -151,6 +157,8 @@ GType foo_buffer_get_type (void);
void foo_buffer_some_method (FooBuffer *buffer);
+GType foo_other_object_get_type (void) G_GNUC_CONST;
+
typedef enum
{
FOO_ENUM_ALPHA,
@@ -420,4 +428,6 @@ struct _FooForeignStruct
*/
void foo_object_a_global_method (UtilityObject *obj);
+FooOtherObject * foo_object_append_new_stack_layer (FooObject *obj, int x);
+
#endif /* __FOO_OBJECT_H__ */