fix spelling of GHashTable. #561135
[gnome.gobject-introspection] / tests / scanner / annotation.h
1 #ifndef __ANNOTATION_OBJECT_H__
2 #define __ANNOTATION_OBJECT_H__
3
4 #include <glib-object.h>
5
6 /**
7  * AnnotationCallback:
8  * @in: (in) (transfer none): array of ints
9  *
10  * Return value: (transfer none): array of ints
11  */
12 typedef const gint* (*AnnotationCallback) (const gint *in);
13
14 /**
15  * AnnotationListCallback:
16  * @in: (in) (transfer none) (element-type utf8): list of strings
17  *
18  * Return value: (transfer container) (element-type utf8): list of strings
19  */
20 typedef GList* (*AnnotationListCallback) (GList *in);
21
22 typedef struct _AnnotationObject          AnnotationObject;
23 typedef struct _AnnotationObjectClass     AnnotationObjectClass;
24
25 struct _AnnotationObject
26 {
27   GObject parent_instance;
28 };
29
30 struct _AnnotationObjectClass
31 {
32   GObjectClass parent_class;
33 };
34
35 GType    annotation_object_get_type (void);
36
37 gint     annotation_object_method       (AnnotationObject *object);
38 gint     annotation_object_out          (AnnotationObject *object,
39                                          int              *outarg);
40 GObject* annotation_object_create_object(AnnotationObject *object);
41 GObject* annotation_object_allow_none   (AnnotationObject *object,
42                                          const gchar      *somearg);
43 GObject* annotation_object_notrans      (AnnotationObject *object);
44 gint     annotation_object_inout        (AnnotationObject *object,
45                                          int              *inoutarg);
46 gint     annotation_object_inout2       (AnnotationObject *object,
47                                          int              *inoutarg);
48 gint     annotation_object_inout3       (AnnotationObject *object,
49                                          int              *inoutarg);
50 gint     annotation_object_in           (AnnotationObject *object,
51                                          int              *inarg);
52 gint     annotation_object_calleeowns   (AnnotationObject *object,
53                                          GObject          **toown);
54 gint     annotation_object_calleesowns  (AnnotationObject *object,
55                                          GObject          **toown1,
56                                          GObject          **toown2);
57 GList*   annotation_object_get_strings  (AnnotationObject *object);
58 GHashTable*annotation_object_get_hash   (AnnotationObject *object);
59 GSList*  annotation_object_get_objects  (AnnotationObject *object);
60
61 void     annotation_object_use_buffer   (AnnotationObject *object,
62                                          guchar           *bytes);
63
64 void     annotation_object_compute_sum  (AnnotationObject *object,
65                                          int              *nums);
66
67 void     annotation_object_compute_sum_n(AnnotationObject *object,
68                                          int              *nums,
69                                          int               n_nums);
70 void     annotation_object_compute_sum_nz(AnnotationObject *object,
71                                           int             *nums,
72                                           int              n_nums);
73 void     annotation_object_parse_args   (AnnotationObject *object,
74                                          int              *argc,
75                                          char           ***argv);
76
77 GObject* annotation_object_do_not_use   (AnnotationObject *object);
78
79
80 void     annotation_init (int *argc, char ***argv);
81
82 #endif /* __ANNOTATION_OBJECT_H__ */