1 #ifndef __ANNOTATION_OBJECT_H__
2 #define __ANNOTATION_OBJECT_H__
4 #include <glib-object.h>
8 * @in: (in) (transfer none): array of ints
11 * Return value: (transfer none): array of ints
13 typedef const gint* (*AnnotationCallback) (const gint *in);
16 * AnnotationListCallback:
17 * @in: (in) (transfer none) (element-type utf8): list of strings
19 * This is a callback taking a list.
20 * Return value: (transfer container) (element-type utf8): list of strings
22 typedef GList* (*AnnotationListCallback) (GList *in);
27 * This is an object used to test annotations.
29 typedef struct _AnnotationObject AnnotationObject;
30 typedef struct _AnnotationObjectClass AnnotationObjectClass;
32 typedef void (*AnnotationForeachFunc) (AnnotationObject *object,
36 struct _AnnotationObject
38 GObject parent_instance;
41 struct _AnnotationObjectClass
43 GObjectClass parent_class;
46 GType annotation_object_get_type (void);
48 gint annotation_object_method (AnnotationObject *object);
49 gint annotation_object_out (AnnotationObject *object,
51 GObject* annotation_object_create_object(AnnotationObject *object);
52 GObject* annotation_object_allow_none (AnnotationObject *object,
53 const gchar *somearg);
54 GObject* annotation_object_notrans (AnnotationObject *object);
55 gint annotation_object_inout (AnnotationObject *object,
57 gint annotation_object_inout2 (AnnotationObject *object,
59 gint annotation_object_inout3 (AnnotationObject *object,
61 gint annotation_object_in (AnnotationObject *object,
63 gint annotation_object_calleeowns (AnnotationObject *object,
65 gint annotation_object_calleesowns (AnnotationObject *object,
68 GList* annotation_object_get_strings (AnnotationObject *object);
69 GHashTable*annotation_object_get_hash (AnnotationObject *object);
70 GSList* annotation_object_get_objects (AnnotationObject *object);
72 void annotation_object_use_buffer (AnnotationObject *object,
75 void annotation_object_compute_sum (AnnotationObject *object,
78 void annotation_object_compute_sum_n(AnnotationObject *object,
81 void annotation_object_compute_sum_nz(AnnotationObject *object,
84 void annotation_object_parse_args (AnnotationObject *object,
87 gboolean annotation_object_string_out (AnnotationObject *object,
89 void annotation_object_foreach (AnnotationObject *object,
90 AnnotationForeachFunc func,
93 void annotation_object_set_data (AnnotationObject *object,
96 void annotation_object_set_data2 (AnnotationObject *object,
99 void annotation_object_set_data3 (AnnotationObject *object,
103 GObject* annotation_object_do_not_use (AnnotationObject *object);
105 void annotation_init (int *argc,
107 char ** annotation_return_array (int *length);
108 void annotation_versioned (void);
109 char ** annotation_string_zero_terminated (void);
110 void annotation_string_zero_terminated_out (char ***out);
115 * This is a test of an array of object in an field of a struct.
117 struct AnnotationStruct
119 AnnotationObject *objects[10];
122 #endif /* __ANNOTATION_OBJECT_H__ */