Debian Codegraph @

subprojects/gobject-introspection-tests/regressextra.h

raw
1 /*
2 SPDX-License-Identifier: LGPL-2.1-or-later
3 SPDX-FileCopyrightText: 2018 PyGObject contributors
4 */
5
6 #pragma once
7
8 #ifndef GI_TEST_DISABLE_CAIRO
9 #include <cairo.h>
10 #endif /* GI_TEST_DISABLE_CAIRO */
11 #include <glib-object.h>
12 #include <glib.h>
13
14 #include "gitestmacros.h"
15 #include "regress.h"
16
17 typedef struct _RegressTestBoxedCWrapper RegressTestBoxedCWrapper;
18
19 GI_TEST_EXTERN
20 GType regress_test_boxed_c_wrapper_get_type (void);
21
22 GI_TEST_EXTERN
23 RegressTestBoxedCWrapper *regress_test_boxed_c_wrapper_new (void);
24 GI_TEST_EXTERN
25 RegressTestBoxedCWrapper *regress_test_boxed_c_wrapper_copy (RegressTestBoxedCWrapper *self);
26 GI_TEST_EXTERN
27 RegressTestBoxedC *regress_test_boxed_c_wrapper_get (RegressTestBoxedCWrapper *self);
28
29 GI_TEST_EXTERN
30 gchar **regress_test_array_of_non_utf8_strings (void);
31 GI_TEST_EXTERN
32 void regress_test_array_fixed_boxed_none_out (RegressTestBoxedC ***objs);
33 GI_TEST_EXTERN
34 void regress_test_gvalue_out_boxed (GValue *value, int init);
35 GI_TEST_EXTERN
36 GList *regress_test_glist_boxed_none_return (guint count);
37 GI_TEST_EXTERN
38 GList *regress_test_glist_boxed_full_return (guint count);
39
40 GI_TEST_EXTERN
41 gboolean regress_test_array_of_fundamental_objects_in (RegressTestFundamentalObject **list, gsize len);
42 GI_TEST_EXTERN
43 RegressTestFundamentalObject **regress_test_array_of_fundamental_objects_out (gsize *len);
44 GI_TEST_EXTERN
45 gboolean regress_test_fundamental_argument_in (RegressTestFundamentalObject *obj);
46 GI_TEST_EXTERN
47 RegressTestFundamentalObject *regress_test_fundamental_argument_out (RegressTestFundamentalObject *obj);
48
49 #ifndef GI_TEST_DISABLE_CAIRO
50
51 GI_TEST_EXTERN
52 cairo_t *regress_test_cairo_context_none_return (void);
53 GI_TEST_EXTERN
54 void regress_test_cairo_context_full_in (cairo_t *context);
55 GI_TEST_EXTERN
56 cairo_path_t *regress_test_cairo_path_full_return (void);
57 GI_TEST_EXTERN
58 void regress_test_cairo_path_none_in (cairo_path_t *path);
59 GI_TEST_EXTERN
60 cairo_path_t *regress_test_cairo_path_full_in_full_return (cairo_path_t *path);
61 GI_TEST_EXTERN
62 void regress_test_cairo_pattern_full_in (cairo_pattern_t *pattern);
63 GI_TEST_EXTERN
64 void regress_test_cairo_pattern_none_in (cairo_pattern_t *pattern);
65 GI_TEST_EXTERN
66 cairo_pattern_t *regress_test_cairo_pattern_none_return (void);
67 GI_TEST_EXTERN
68 cairo_pattern_t *regress_test_cairo_pattern_full_return (void);
69 GI_TEST_EXTERN
70 cairo_font_options_t *regress_test_cairo_font_options_full_return (void);
71 GI_TEST_EXTERN
72 cairo_font_options_t *regress_test_cairo_font_options_none_return (void);
73 GI_TEST_EXTERN
74 void regress_test_cairo_font_options_full_in (cairo_font_options_t *options);
75 GI_TEST_EXTERN
76 void regress_test_cairo_font_options_none_in (cairo_font_options_t *options);
77 GI_TEST_EXTERN
78 cairo_font_face_t *regress_test_cairo_font_face_full_return (cairo_t *cairo);
79 GI_TEST_EXTERN
80 cairo_scaled_font_t *regress_test_cairo_scaled_font_full_return (cairo_t *cairo);
81 GI_TEST_EXTERN
82 void regress_test_cairo_region_full_in (cairo_region_t *region);
83 GI_TEST_EXTERN
84 void regress_test_cairo_surface_full_in (cairo_surface_t *surface);
85 GI_TEST_EXTERN
86 void regress_test_cairo_matrix_none_in (const cairo_matrix_t *matrix);
87 GI_TEST_EXTERN
88 cairo_matrix_t *regress_test_cairo_matrix_none_return (void);
89 GI_TEST_EXTERN
90 void regress_test_cairo_matrix_out_caller_allocates (cairo_matrix_t *matrix);
91
92 #endif
93
94 /* RegressTestAction */
95
96 typedef struct
97 {
98 GInitiallyUnowned parent;
99 } RegressTestAction;
100
101 typedef struct
102 {
103 GInitiallyUnownedClass parent_class;
104 } RegressTestActionClass;
105
106 GI_TEST_EXTERN
107 GType regress_test_action_get_type (void);
108
109 /**
110 * RegressBitmask:
111 *
112 * A fundamental type that describes a 64-bit bitmask.
113 *
114 * This type resembles GStreamer's Bitmask type.
115 */
116
117 /**
118 * REGRESS_TYPE_BITMASK:
119 *
120 * a #GValue type that represents a 64-bit bitmask.
121 *
122 * Returns: the #GType of RegressBitmask (which is not explicitly typed)
123 */
124
125 #define REGRESS_TYPE_BITMASK (regress_bitmask_get_type ())
126
127 GI_TEST_EXTERN
128 GType regress_bitmask_get_type (void);