gobject-introspection 2.2.0-x86-mingw32 → 2.2.1-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (176) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +7 -7
  3. data/ext/gobject-introspection/rb-gi-argument.c +28 -3
  4. data/ext/gobject-introspection/rb-gi-constructor-info.c +6 -1
  5. data/ext/gobject-introspection/rb-gi-function-info.c +29 -4
  6. data/ext/gobject-introspection/rb-gi-loader.c +19 -3
  7. data/ext/gobject-introspection/rb-gi-struct-info.c +28 -16
  8. data/lib/2.0/gobject_introspection.so +0 -0
  9. data/lib/gobject-introspection/callable-info.rb +16 -7
  10. data/lib/gobject-introspection/loader.rb +47 -19
  11. data/test/test-object-info.rb +1 -1
  12. data/test/test-signal-info.rb +2 -2
  13. data/test/test-struct-info.rb +1 -1
  14. data/vendor/local/bin/g-ir-compiler.exe +0 -0
  15. data/vendor/local/bin/g-ir-generate.exe +0 -0
  16. data/vendor/local/bin/libgirepository-1.0-1.dll +0 -0
  17. data/vendor/local/include/gobject-introspection-1.0/giarginfo.h +30 -0
  18. data/vendor/local/include/gobject-introspection-1.0/gibaseinfo.h +31 -0
  19. data/vendor/local/include/gobject-introspection-1.0/gicallableinfo.h +36 -0
  20. data/vendor/local/include/gobject-introspection-1.0/giconstantinfo.h +12 -0
  21. data/vendor/local/include/gobject-introspection-1.0/gienuminfo.h +26 -0
  22. data/vendor/local/include/gobject-introspection-1.0/gifieldinfo.h +19 -0
  23. data/vendor/local/include/gobject-introspection-1.0/gifunctioninfo.h +23 -0
  24. data/vendor/local/include/gobject-introspection-1.0/giinterfaceinfo.h +38 -0
  25. data/vendor/local/include/gobject-introspection-1.0/giobjectinfo.h +72 -2
  26. data/vendor/local/include/gobject-introspection-1.0/gipropertyinfo.h +12 -0
  27. data/vendor/local/include/gobject-introspection-1.0/giregisteredtypeinfo.h +11 -0
  28. data/vendor/local/include/gobject-introspection-1.0/girepository.h +68 -8
  29. data/vendor/local/include/gobject-introspection-1.0/girffi.h +25 -1
  30. data/vendor/local/include/gobject-introspection-1.0/gisignalinfo.h +12 -0
  31. data/vendor/local/include/gobject-introspection-1.0/gistructinfo.h +24 -0
  32. data/vendor/local/include/gobject-introspection-1.0/gitypeinfo.h +31 -0
  33. data/vendor/local/include/gobject-introspection-1.0/gitypelib.h +25 -0
  34. data/vendor/local/include/gobject-introspection-1.0/gitypes.h +84 -13
  35. data/vendor/local/include/gobject-introspection-1.0/giunioninfo.h +27 -0
  36. data/vendor/local/include/gobject-introspection-1.0/giversionmacros.h +128 -0
  37. data/vendor/local/include/gobject-introspection-1.0/givfuncinfo.h +17 -0
  38. data/vendor/local/lib/girepository-1.0/GIRepository-2.0.typelib +0 -0
  39. data/vendor/local/lib/girepository-1.0/GLib-2.0.typelib +0 -0
  40. data/vendor/local/lib/girepository-1.0/GObject-2.0.typelib +0 -0
  41. data/vendor/local/lib/girepository-1.0/Gio-2.0.typelib +0 -0
  42. data/vendor/local/lib/girepository-1.0/libxml2-2.0.typelib +0 -0
  43. data/vendor/local/lib/girepository-1.0/win32-1.0.typelib +0 -0
  44. data/vendor/local/lib/gobject-introspection/giscanner/__init__.pyc +0 -0
  45. data/vendor/local/lib/gobject-introspection/giscanner/__init__.pyo +0 -0
  46. data/vendor/local/lib/gobject-introspection/giscanner/annotationmain.py +5 -4
  47. data/vendor/local/lib/gobject-introspection/giscanner/annotationmain.pyc +0 -0
  48. data/vendor/local/lib/gobject-introspection/giscanner/annotationmain.pyo +0 -0
  49. data/vendor/local/lib/gobject-introspection/giscanner/annotationparser.py +1865 -913
  50. data/vendor/local/lib/gobject-introspection/giscanner/annotationparser.pyc +0 -0
  51. data/vendor/local/lib/gobject-introspection/giscanner/annotationparser.pyo +0 -0
  52. data/vendor/local/lib/gobject-introspection/giscanner/ast.py +49 -16
  53. data/vendor/local/lib/gobject-introspection/giscanner/ast.pyc +0 -0
  54. data/vendor/local/lib/gobject-introspection/giscanner/ast.pyo +0 -0
  55. data/vendor/local/lib/gobject-introspection/giscanner/cachestore.py +10 -4
  56. data/vendor/local/lib/gobject-introspection/giscanner/cachestore.pyc +0 -0
  57. data/vendor/local/lib/gobject-introspection/giscanner/cachestore.pyo +0 -0
  58. data/vendor/local/lib/gobject-introspection/giscanner/ccompiler.py +202 -0
  59. data/vendor/local/lib/gobject-introspection/giscanner/ccompiler.pyc +0 -0
  60. data/vendor/local/lib/gobject-introspection/giscanner/ccompiler.pyo +0 -0
  61. data/vendor/local/lib/gobject-introspection/giscanner/codegen.py +32 -1
  62. data/vendor/local/lib/gobject-introspection/giscanner/codegen.pyc +0 -0
  63. data/vendor/local/lib/gobject-introspection/giscanner/codegen.pyo +0 -0
  64. data/vendor/local/lib/gobject-introspection/giscanner/collections/__init__.py +1 -0
  65. data/vendor/local/lib/gobject-introspection/giscanner/collections/__init__.pyc +0 -0
  66. data/vendor/local/lib/gobject-introspection/giscanner/collections/__init__.pyo +0 -0
  67. data/vendor/local/lib/gobject-introspection/giscanner/collections/counter.py +305 -0
  68. data/vendor/local/lib/gobject-introspection/giscanner/collections/counter.pyc +0 -0
  69. data/vendor/local/lib/gobject-introspection/giscanner/collections/counter.pyo +0 -0
  70. data/vendor/local/lib/gobject-introspection/giscanner/collections/ordereddict.pyc +0 -0
  71. data/vendor/local/lib/gobject-introspection/giscanner/collections/ordereddict.pyo +0 -0
  72. data/vendor/local/lib/gobject-introspection/giscanner/docmain.pyc +0 -0
  73. data/vendor/local/lib/gobject-introspection/giscanner/docmain.pyo +0 -0
  74. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/callback.tmpl +4 -0
  75. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/field.tmpl +1 -0
  76. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/function.tmpl +8 -9
  77. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/interface.tmpl +2 -0
  78. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/callback.tmpl +27 -0
  79. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/class.tmpl +17 -5
  80. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/enum.tmpl +8 -0
  81. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/field.tmpl +9 -0
  82. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/function.tmpl +12 -13
  83. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/interface.tmpl +17 -0
  84. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/property.tmpl +3 -4
  85. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/signal.tmpl +10 -9
  86. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/vfunc.tmpl +7 -7
  87. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/callback.tmpl +27 -0
  88. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/class.tmpl +5 -4
  89. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/field.tmpl +1 -0
  90. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/function.tmpl +8 -14
  91. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/interface.tmpl +16 -0
  92. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/property.tmpl +2 -3
  93. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/signal.tmpl +6 -7
  94. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/vfunc.tmpl +7 -13
  95. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/base.tmpl +10 -19
  96. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/class.tmpl +24 -3
  97. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/namespace.tmpl +4 -7
  98. data/vendor/local/lib/gobject-introspection/giscanner/docwriter.py +375 -61
  99. data/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyc +0 -0
  100. data/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyo +0 -0
  101. data/vendor/local/lib/gobject-introspection/giscanner/dumper.py +43 -75
  102. data/vendor/local/lib/gobject-introspection/giscanner/dumper.pyc +0 -0
  103. data/vendor/local/lib/gobject-introspection/giscanner/dumper.pyo +0 -0
  104. data/vendor/local/lib/gobject-introspection/giscanner/gdumpparser.py +1 -20
  105. data/vendor/local/lib/gobject-introspection/giscanner/gdumpparser.pyc +0 -0
  106. data/vendor/local/lib/gobject-introspection/giscanner/gdumpparser.pyo +0 -0
  107. data/vendor/local/lib/gobject-introspection/giscanner/girparser.py +33 -15
  108. data/vendor/local/lib/gobject-introspection/giscanner/girparser.pyc +0 -0
  109. data/vendor/local/lib/gobject-introspection/giscanner/girparser.pyo +0 -0
  110. data/vendor/local/lib/gobject-introspection/giscanner/girwriter.py +51 -22
  111. data/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyc +0 -0
  112. data/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyo +0 -0
  113. data/vendor/local/lib/gobject-introspection/giscanner/introspectablepass.pyc +0 -0
  114. data/vendor/local/lib/gobject-introspection/giscanner/introspectablepass.pyo +0 -0
  115. data/vendor/local/lib/gobject-introspection/giscanner/libtoolimporter.pyc +0 -0
  116. data/vendor/local/lib/gobject-introspection/giscanner/libtoolimporter.pyo +0 -0
  117. data/vendor/local/lib/gobject-introspection/giscanner/maintransformer.py +285 -254
  118. data/vendor/local/lib/gobject-introspection/giscanner/maintransformer.pyc +0 -0
  119. data/vendor/local/lib/gobject-introspection/giscanner/maintransformer.pyo +0 -0
  120. data/vendor/local/lib/gobject-introspection/giscanner/message.py +41 -25
  121. data/vendor/local/lib/gobject-introspection/giscanner/message.pyc +0 -0
  122. data/vendor/local/lib/gobject-introspection/giscanner/message.pyo +0 -0
  123. data/vendor/local/lib/gobject-introspection/giscanner/scannermain.py +67 -15
  124. data/vendor/local/lib/gobject-introspection/giscanner/scannermain.pyc +0 -0
  125. data/vendor/local/lib/gobject-introspection/giscanner/scannermain.pyo +0 -0
  126. data/vendor/local/lib/gobject-introspection/giscanner/sectionparser.pyc +0 -0
  127. data/vendor/local/lib/gobject-introspection/giscanner/sectionparser.pyo +0 -0
  128. data/vendor/local/lib/gobject-introspection/giscanner/shlibs.py +10 -6
  129. data/vendor/local/lib/gobject-introspection/giscanner/shlibs.pyc +0 -0
  130. data/vendor/local/lib/gobject-introspection/giscanner/shlibs.pyo +0 -0
  131. data/vendor/local/lib/gobject-introspection/giscanner/sourcescanner.py +14 -8
  132. data/vendor/local/lib/gobject-introspection/giscanner/sourcescanner.pyc +0 -0
  133. data/vendor/local/lib/gobject-introspection/giscanner/sourcescanner.pyo +0 -0
  134. data/vendor/local/lib/gobject-introspection/giscanner/testcodegen.py +16 -2
  135. data/vendor/local/lib/gobject-introspection/giscanner/testcodegen.pyc +0 -0
  136. data/vendor/local/lib/gobject-introspection/giscanner/testcodegen.pyo +0 -0
  137. data/vendor/local/lib/gobject-introspection/giscanner/transformer.py +150 -169
  138. data/vendor/local/lib/gobject-introspection/giscanner/transformer.pyc +0 -0
  139. data/vendor/local/lib/gobject-introspection/giscanner/transformer.pyo +0 -0
  140. data/vendor/local/lib/gobject-introspection/giscanner/utils.py +64 -3
  141. data/vendor/local/lib/gobject-introspection/giscanner/utils.pyc +0 -0
  142. data/vendor/local/lib/gobject-introspection/giscanner/utils.pyo +0 -0
  143. data/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.py +5 -44
  144. data/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyc +0 -0
  145. data/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyo +0 -0
  146. data/vendor/local/lib/libgirepository-1.0.a +0 -0
  147. data/vendor/local/lib/libgirepository-1.0.dll.a +0 -0
  148. data/vendor/local/lib/libgirepository-1.0.la +1 -1
  149. data/vendor/local/lib/pkgconfig/gobject-introspection-1.0.pc +4 -4
  150. data/vendor/local/lib/pkgconfig/gobject-introspection-no-export-1.0.pc +5 -5
  151. data/vendor/local/share/gir-1.0/GIRepository-2.0.gir +352 -143
  152. data/vendor/local/share/gir-1.0/GLib-2.0.gir +6402 -3872
  153. data/vendor/local/share/gir-1.0/GModule-2.0.gir +42 -24
  154. data/vendor/local/share/gir-1.0/GObject-2.0.gir +1543 -887
  155. data/vendor/local/share/gir-1.0/Gio-2.0.gir +10859 -3705
  156. data/vendor/local/share/gobject-introspection-1.0/tests/annotation.c +10 -14
  157. data/vendor/local/share/gobject-introspection-1.0/tests/annotation.h +112 -9
  158. data/vendor/local/share/gobject-introspection-1.0/tests/drawable.c +2 -0
  159. data/vendor/local/share/gobject-introspection-1.0/tests/drawable.h +11 -0
  160. data/vendor/local/share/gobject-introspection-1.0/tests/everything.c +106 -0
  161. data/vendor/local/share/gobject-introspection-1.0/tests/everything.h +107 -0
  162. data/vendor/local/share/gobject-introspection-1.0/tests/foo.c +3 -3
  163. data/vendor/local/share/gobject-introspection-1.0/tests/foo.h +145 -0
  164. data/vendor/local/share/gobject-introspection-1.0/tests/gimarshallingtests.c +166 -10
  165. data/vendor/local/share/gobject-introspection-1.0/tests/gimarshallingtests.h +790 -0
  166. data/vendor/local/share/gobject-introspection-1.0/tests/gitestmacros.h +10 -0
  167. data/vendor/local/share/gobject-introspection-1.0/tests/regress.c +79 -28
  168. data/vendor/local/share/gobject-introspection-1.0/tests/regress.h +462 -0
  169. data/vendor/local/share/gobject-introspection-1.0/tests/utility.c +2 -0
  170. data/vendor/local/share/gobject-introspection-1.0/tests/utility.h +7 -0
  171. data/vendor/local/share/gobject-introspection-1.0/tests/warnlib.c +14 -0
  172. data/vendor/local/share/gobject-introspection-1.0/tests/warnlib.h +10 -0
  173. data/vendor/local/share/man/man1/g-ir-compiler.1 +1 -10
  174. metadata +38 -23
  175. data/lib/1.9/gobject_introspection.so +0 -0
  176. data/lib/2.1/gobject_introspection.so +0 -0
@@ -1,4 +1,6 @@
1
1
  /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
2
+ #include "config.h"
3
+
2
4
  #include "annotation.h"
3
5
 
4
6
  char backslash_parsing_tester = '\\';
@@ -128,12 +130,12 @@ regress_annotation_object_class_init (RegressAnnotationObjectClass *klass)
128
130
  /**
129
131
  * RegressAnnotationObject::attribute-signal:
130
132
  * @regress_annotation: the regress_annotation object
131
- * @arg1: (attribute some.annotation.foo1 val1): a value
132
- * @arg2: (attribute some.annotation.foo2 val2): another value
133
+ * @arg1: (attributes some.annotation.foo1=val1): a value
134
+ * @arg2: (attributes some.annotation.foo2=val2): another value
133
135
  *
134
136
  * This signal tests a signal with attributes.
135
137
  *
136
- * Returns: (attribute some.annotation.foo3 val3): the return value
138
+ * Returns: (attributes some.annotation.foo3=val3): the return value
137
139
  */
138
140
  regress_annotation_object_signals[ATTRIBUTE_SIGNAL] =
139
141
  g_signal_new ("attribute-signal",
@@ -163,9 +165,7 @@ regress_annotation_object_class_init (RegressAnnotationObjectClass *klass)
163
165
  NULL,
164
166
  G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
165
167
  /**
166
- * RegressAnnotationObject:function-property:
167
- *
168
- * Type: RegressAnnotationCallback
168
+ * RegressAnnotationObject:function-property: (type RegressAnnotationCallback)
169
169
  */
170
170
  g_object_class_install_property (gobject_class,
171
171
  PROP_FUNCTION_PROPERTY,
@@ -616,15 +616,13 @@ regress_annotation_object_watch (RegressAnnotationObject *object,
616
616
  }
617
617
 
618
618
  /**
619
- * regress_annotation_object_watch_full:
619
+ * regress_annotation_object_watch_full: (rename-to regress_annotation_object_watch)
620
620
  * @object: A #RegressAnnotationObject
621
621
  * @func: The callback
622
622
  * @user_data: The callback data
623
623
  * @destroy: Destroy notification
624
624
  *
625
625
  * Test overriding via the "Rename To" annotation.
626
- *
627
- * Rename to: regress_annotation_object_watch
628
626
  */
629
627
  void
630
628
  regress_annotation_object_watch_full (RegressAnnotationObject *object,
@@ -707,9 +705,7 @@ regress_annotation_string_array_length (guint n_properties, const gchar * const
707
705
  }
708
706
 
709
707
  /**
710
- * regress_annotation_object_extra_annos:
711
- *
712
- * Attributes: (org.foobar testvalue)
708
+ * regress_annotation_object_extra_annos: (attributes org.foobar=testvalue)
713
709
  */
714
710
  void
715
711
  regress_annotation_object_extra_annos (RegressAnnotationObject *object)
@@ -763,9 +759,9 @@ regress_annotation_ptr_array (GPtrArray *array)
763
759
  /**
764
760
  * regress_annotation_attribute_func:
765
761
  * @object: A #RegressAnnotationObject.
766
- * @data: (attribute some.annotation value) (attribute another.annotation blahvalue): Some data.
762
+ * @data: (attributes some.annotation=value another.annotation=blahvalue): Some data.
767
763
  *
768
- * Returns: (attribute some.other.annotation value2) (attribute yet.another.annotation another_value): The return value.
764
+ * Returns: (attributes some.other.annotation=value2 yet.another.annotation=another_value): The return value.
769
765
  */
770
766
  gint
771
767
  regress_annotation_attribute_func (RegressAnnotationObject *object,
@@ -1,6 +1,8 @@
1
1
  #ifndef __REGRESS_ANNOTATION_OBJECT_H__
2
2
  #define __REGRESS_ANNOTATION_OBJECT_H__
3
3
 
4
+ #include "gitestmacros.h"
5
+
4
6
  #include <glib-object.h>
5
7
 
6
8
  typedef enum /*< flags,prefix=ANN >*/
@@ -37,11 +39,9 @@ typedef GList* (*RegressAnnotationListCallback) (GList *in);
37
39
  typedef void (*RegressAnnotationNotifyFunc) (gpointer data);
38
40
 
39
41
  /**
40
- * RegressAnnotationObject:
42
+ * RegressAnnotationObject: (attributes org.example.Test=cows)
41
43
  *
42
44
  * This is an object used to test annotations.
43
- *
44
- * Attributes: (org.example.Test cows)
45
45
  */
46
46
  typedef struct _RegressAnnotationObject RegressAnnotationObject;
47
47
  typedef struct _RegressAnnotationObjectClass RegressAnnotationObjectClass;
@@ -60,95 +60,177 @@ struct _RegressAnnotationObjectClass
60
60
  GObjectClass parent_class;
61
61
  };
62
62
 
63
+ _GI_TEST_EXTERN
63
64
  GType regress_annotation_object_get_type (void);
64
65
 
66
+ _GI_TEST_EXTERN
65
67
  gint regress_annotation_object_method (RegressAnnotationObject *object);
68
+
69
+ _GI_TEST_EXTERN
66
70
  gint regress_annotation_object_out (RegressAnnotationObject *object,
67
71
  int *outarg);
72
+
73
+ _GI_TEST_EXTERN
68
74
  GObject* regress_annotation_object_create_object(RegressAnnotationObject *object);
75
+
76
+ _GI_TEST_EXTERN
69
77
  GObject* regress_annotation_object_allow_none (RegressAnnotationObject *object,
70
78
  const gchar *somearg);
79
+
80
+ _GI_TEST_EXTERN
71
81
  GObject* regress_annotation_object_notrans (RegressAnnotationObject *object);
82
+
83
+ _GI_TEST_EXTERN
72
84
  gint regress_annotation_object_inout (RegressAnnotationObject *object,
73
85
  int *inoutarg);
86
+
87
+ _GI_TEST_EXTERN
74
88
  gint regress_annotation_object_inout2 (RegressAnnotationObject *object,
75
89
  int *inoutarg);
90
+
91
+ _GI_TEST_EXTERN
76
92
  gint regress_annotation_object_inout3 (RegressAnnotationObject *object,
77
93
  int *inoutarg);
94
+
95
+ _GI_TEST_EXTERN
78
96
  gint regress_annotation_object_in (RegressAnnotationObject *object,
79
97
  int *inarg);
98
+
99
+ _GI_TEST_EXTERN
80
100
  gint regress_annotation_object_calleeowns (RegressAnnotationObject *object,
81
101
  GObject **toown);
102
+
103
+ _GI_TEST_EXTERN
82
104
  gint regress_annotation_object_calleesowns (RegressAnnotationObject *object,
83
105
  GObject **toown1,
84
106
  GObject **toown2);
107
+
108
+ _GI_TEST_EXTERN
85
109
  GList* regress_annotation_object_get_strings (RegressAnnotationObject *object);
110
+
111
+ _GI_TEST_EXTERN
86
112
  GHashTable*regress_annotation_object_get_hash (RegressAnnotationObject *object);
113
+
114
+ _GI_TEST_EXTERN
87
115
  void regress_annotation_object_with_voidp (RegressAnnotationObject *object,
88
116
  void *data);
117
+
118
+ _GI_TEST_EXTERN
89
119
  GSList* regress_annotation_object_get_objects (RegressAnnotationObject *object);
90
120
 
121
+
122
+ _GI_TEST_EXTERN
91
123
  void regress_annotation_object_use_buffer (RegressAnnotationObject *object,
92
124
  guchar *bytes);
93
125
 
126
+
127
+ _GI_TEST_EXTERN
94
128
  void regress_annotation_object_compute_sum (RegressAnnotationObject *object,
95
129
  int *nums);
96
130
 
131
+
132
+ _GI_TEST_EXTERN
97
133
  void regress_annotation_object_compute_sum_n(RegressAnnotationObject *object,
98
134
  int *nums,
99
135
  int n_nums);
136
+
137
+ _GI_TEST_EXTERN
100
138
  void regress_annotation_object_compute_sum_nz(RegressAnnotationObject *object,
101
139
  int *nums,
102
140
  int n_nums);
141
+
142
+ _GI_TEST_EXTERN
103
143
  void regress_annotation_object_parse_args (RegressAnnotationObject *object,
104
144
  int *argc,
105
145
  char ***argv);
146
+
147
+ _GI_TEST_EXTERN
106
148
  gboolean regress_annotation_object_string_out (RegressAnnotationObject *object,
107
149
  char **str_out);
150
+
151
+ _GI_TEST_EXTERN
108
152
  void regress_annotation_object_foreach (RegressAnnotationObject *object,
109
153
  RegressAnnotationForeachFunc func,
110
154
  gpointer user_data);
111
155
 
156
+
157
+ _GI_TEST_EXTERN
112
158
  void regress_annotation_object_set_data (RegressAnnotationObject *object,
113
159
  const guchar *data,
114
160
  gsize length);
161
+
162
+ _GI_TEST_EXTERN
115
163
  void regress_annotation_object_set_data2 (RegressAnnotationObject *object,
116
164
  const gchar *data,
117
165
  gsize length);
166
+
167
+ _GI_TEST_EXTERN
118
168
  void regress_annotation_object_set_data3 (RegressAnnotationObject *object,
119
169
  gpointer data,
120
170
  gsize length);
121
171
 
172
+
173
+ _GI_TEST_EXTERN
122
174
  GObject* regress_annotation_object_do_not_use (RegressAnnotationObject *object);
175
+
176
+ _GI_TEST_EXTERN
123
177
  void regress_annotation_object_watch (RegressAnnotationObject *object,
124
178
  RegressAnnotationForeachFunc func,
125
179
  gpointer user_data);
180
+
181
+ _GI_TEST_EXTERN
126
182
  void regress_annotation_object_watch_full (RegressAnnotationObject *object,
127
183
  RegressAnnotationForeachFunc func,
128
184
  gpointer user_data,
129
185
  GDestroyNotify destroy);
186
+
187
+ _GI_TEST_EXTERN
130
188
  void regress_annotation_object_hidden_self (gpointer object);
131
189
 
190
+
191
+ _GI_TEST_EXTERN
132
192
  void regress_annotation_init (int *argc,
133
193
  char ***argv);
194
+
195
+ _GI_TEST_EXTERN
134
196
  char ** regress_annotation_return_array (int *length);
197
+
198
+ _GI_TEST_EXTERN
135
199
  void regress_annotation_versioned (void);
200
+
201
+ _GI_TEST_EXTERN
136
202
  char ** regress_annotation_string_zero_terminated (void);
203
+
204
+ _GI_TEST_EXTERN
137
205
  void regress_annotation_string_zero_terminated_out (char ***out);
138
206
 
207
+
208
+ _GI_TEST_EXTERN
139
209
  void regress_annotation_string_array_length (guint n_properties, const gchar * const properties[]);
140
210
 
211
+
212
+ _GI_TEST_EXTERN
141
213
  void regress_annotation_object_extra_annos (RegressAnnotationObject *object);
142
214
 
215
+
216
+ _GI_TEST_EXTERN
143
217
  void regress_annotation_custom_destroy (RegressAnnotationCallback callback,
144
218
  RegressAnnotationNotifyFunc destroy,
145
219
  gpointer data);
220
+
221
+ _GI_TEST_EXTERN
146
222
  char * regress_annotation_get_source_file (void);
223
+
224
+ _GI_TEST_EXTERN
147
225
  void regress_annotation_set_source_file (const char *fname);
148
226
 
227
+
228
+ _GI_TEST_EXTERN
149
229
  gint regress_annotation_attribute_func (RegressAnnotationObject *object,
150
230
  const gchar *data);
151
231
 
232
+
233
+ _GI_TEST_EXTERN
152
234
  void regress_annotation_invalid_regress_annotation (int foo);
153
235
 
154
236
  /**
@@ -161,36 +243,57 @@ struct RegressAnnotationStruct
161
243
  RegressAnnotationObject *objects[10];
162
244
  };
163
245
 
246
+ /**
247
+ * RegressAnnotationFields:
248
+ * @field1: Some documentation
249
+ * @arr: (array length=len): an array of length @len
250
+ * @len: the length of array
251
+ *
252
+ * This is a struct for testing field documentation and annotations
253
+ */
254
+ struct RegressAnnotationFields
255
+ {
256
+ int field1;
257
+ guchar *arr;
258
+ gulong len;
259
+ };
260
+
261
+
262
+ _GI_TEST_EXTERN
164
263
  void regress_annotation_ptr_array (GPtrArray *array);
165
264
 
265
+
266
+ _GI_TEST_EXTERN
166
267
  GObject * regress_annotation_test_parsing_bug630862 (void);
167
268
 
269
+
270
+ _GI_TEST_EXTERN
168
271
  void regress_annotation_space_after_comment_bug631690 (void);
169
272
 
273
+
274
+ _GI_TEST_EXTERN
170
275
  gchar* regress_annotation_return_filename (void);
171
276
 
277
+
278
+ _GI_TEST_EXTERN
172
279
  GObject * regress_annotation_transfer_floating(void);
173
280
 
174
281
  /* This one we can handle properly */
175
282
  #define REGRESS_ANNOTATION_CALCULATED_DEFINE (10 * 10)
176
283
 
177
284
  /**
178
- * REGRESS_ANNOTATION_CALCULATED_LARGE:
285
+ * REGRESS_ANNOTATION_CALCULATED_LARGE: (value 10000000000UL)
179
286
  *
180
287
  * Constant to define a calculated large value
181
288
  *
182
- * Value: 10000000000UL
183
- *
184
289
  * Since: 1.4
185
290
  */
186
291
  #define REGRESS_ANNOTATION_CALCULATED_LARGE (1000 * G_GINT64_CONSTANT (10000000))
187
292
 
188
293
  /**
189
- * REGRESS_ANNOTATION_CALCULATED_LARGE_DIV:
294
+ * REGRESS_ANNOTATION_CALCULATED_LARGE_DIV: (value 1000000UL)
190
295
  *
191
296
  * Constant to define a calculated large value
192
- *
193
- * Value: 1000000UL
194
297
  */
195
298
  #define REGRESS_ANNOTATION_CALCULATED_LARGE_DIV (1000 / G_GINT64_CONSTANT (10000000))
196
299
 
@@ -1,4 +1,6 @@
1
1
  /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
2
+ #include "config.h"
3
+
2
4
  #include "drawable.h"
3
5
 
4
6
  G_DEFINE_ABSTRACT_TYPE (RegressTestInheritDrawable, regress_test_inherit_drawable, G_TYPE_OBJECT);
@@ -3,6 +3,8 @@
3
3
 
4
4
  #include <glib-object.h>
5
5
 
6
+ #include "gitestmacros.h"
7
+
6
8
  typedef struct _RegressTestInheritDrawable RegressTestInheritDrawable;
7
9
  typedef struct _RegressTestInheritDrawableClass RegressTestInheritDrawableClass;
8
10
 
@@ -16,11 +18,20 @@ struct _RegressTestInheritDrawableClass
16
18
  GObjectClass parent_class;
17
19
  };
18
20
 
21
+ _GI_TEST_EXTERN
19
22
  GType regress_test_inherit_drawable_get_type (void) G_GNUC_CONST;
20
23
 
24
+
25
+ _GI_TEST_EXTERN
21
26
  void regress_test_inherit_drawable_do_foo (RegressTestInheritDrawable *drawable, int x);
27
+
28
+ _GI_TEST_EXTERN
22
29
  void regress_test_inherit_drawable_get_origin (RegressTestInheritDrawable *drawable, int *x, int *y);
30
+
31
+ _GI_TEST_EXTERN
23
32
  void regress_test_inherit_drawable_get_size (RegressTestInheritDrawable *drawable, guint *width, guint *height);
33
+
34
+ _GI_TEST_EXTERN
24
35
  void regress_test_inherit_drawable_do_foo_maybe_throw (RegressTestInheritDrawable *drawable, int x, GError **error);
25
36
 
26
37
  typedef struct _RegressTestInheritPixmapObjectClass RegressTestInheritPixmapObjectClass;