gobject-introspection r124 - in trunk: . tests/parser



Author: johan
Date: Mon Mar 10 09:56:39 2008
New Revision: 124
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=124&view=rev

Log:
2008-03-10  Johan Dahlin  <johan gnome org>

        * tests/parser/Foo-expected.gidl:
        * tests/parser/foo-object.h:
        * tests/parser/foo.c:
        Rename the enum/flags get_type functions to include the whole type.



Modified:
   trunk/ChangeLog
   trunk/tests/parser/Foo-expected.gidl
   trunk/tests/parser/foo-object.h
   trunk/tests/parser/foo.c

Modified: trunk/tests/parser/Foo-expected.gidl
==============================================================================
--- trunk/tests/parser/Foo-expected.gidl	(original)
+++ trunk/tests/parser/Foo-expected.gidl	Mon Mar 10 09:56:39 2008
@@ -20,12 +20,12 @@
 			<member name="FOO_ENUM_DEUX" value="2"/>
 			<member name="FOO_ENUM_TROIS" value="3"/>
 		</enum>
-		<enum name="FooEnumType" type-name="FooEnumType" get-type="foo_enum_get_type">
+		<enum name="FooEnumType" type-name="FooEnumType" get-type="foo_enum_type_get_type">
 			<member name="FOO_ENUM_ALPHA" value="0"/>
 			<member name="FOO_ENUM_BETA" value="1"/>
 			<member name="FOO_ENUM_DELTA" value="2"/>
 		</enum>
-		<flags name="FooFlagsType" type-name="FooFlagsType" get-type="foo_flags_get_type">
+		<flags name="FooFlagsType" type-name="FooFlagsType" get-type="foo_flags_type_get_type">
 			<member name="FOO_FLAGS_FIRST" value="1"/>
 			<member name="FOO_FLAGS_SECOND" value="2"/>
 			<member name="FOO_FLAGS_THIRD" value="4"/>

Modified: trunk/tests/parser/foo-object.h
==============================================================================
--- trunk/tests/parser/foo-object.h	(original)
+++ trunk/tests/parser/foo-object.h	Mon Mar 10 09:56:39 2008
@@ -68,7 +68,7 @@
   FOO_ENUM_DELTA
 } FooEnumType;
 
-GType foo_enum_get_type (void);
+GType foo_enum_type_get_type (void);
 
 typedef enum
 {
@@ -84,7 +84,7 @@
   FOO_ENUM_TROIS = 3,
 } FooEnumNoType;
 
-GType foo_flags_get_type (void);
+GType foo_flags_type_get_type (void);
 
 typedef struct _FooBoxed FooBoxed;
 

Modified: trunk/tests/parser/foo.c
==============================================================================
--- trunk/tests/parser/foo.c	(original)
+++ trunk/tests/parser/foo.c	Mon Mar 10 09:56:39 2008
@@ -64,7 +64,7 @@
 }
 
 GType
-foo_enum_get_type (void)
+foo_enum_type_get_type (void)
 {
     static GType etype = 0;
     if (G_UNLIKELY(etype == 0)) {
@@ -80,7 +80,7 @@
 }
 
 GType
-foo_flags_get_type (void)
+foo_flags_type_get_type (void)
 {
     static GType etype = 0;
     if (G_UNLIKELY(etype == 0)) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]