Debian Codegraph @

subprojects/gobject-introspection-tests/gimarshallingtestsextra.h

raw
1 /* gimarshallingtestsextra.h
2 *
3 * SPDX-License-Identifier: LGPL-2.1-or-later
4 * SPDX-FileCopyrightText: 2016 Thibault Saunier <[email protected]>
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
18 */
19
20 #pragma once
21
22 #include <glib-object.h>
23 #include <glib.h>
24
25 #include "gitestmacros.h"
26
27 typedef enum
28 {
29 GI_MARSHALLING_TESTS_EXTRA_ENUM_VALUE1,
30 GI_MARSHALLING_TESTS_EXTRA_ENUM_VALUE2,
31 GI_MARSHALLING_TESTS_EXTRA_ENUM_VALUE3 = 42
32 } GIMarshallingTestsExtraEnum;
33
34 typedef enum
35 {
36 GI_MARSHALLING_TESTS_EXTRA_FLAGS_VALUE1 = 0,
37 GI_MARSHALLING_TESTS_EXTRA_FLAGS_VALUE2 = (gint) (1 << 31),
38 } GIMarshallingTestsExtraFlags;
39
40 GI_TEST_EXTERN
41 GType gi_marshalling_tests_extra_flags_get_type (void) G_GNUC_CONST;
42 #define GI_MARSHALLING_TESTS_TYPE_EXTRA_FLAGS (gi_marshalling_tests_extra_flags_get_type ())
43
44 GI_TEST_EXTERN
45 void gi_marshalling_tests_compare_two_gerrors_in_gvalue (GValue *v, GValue *v1);
46 GI_TEST_EXTERN
47 gboolean gi_marshalling_tests_nullable_gerror (GError *error);
48
49 GI_TEST_EXTERN
50 void gi_marshalling_tests_ghashtable_enum_none_in (GHashTable *hash_table);
51 GI_TEST_EXTERN
52 GHashTable *gi_marshalling_tests_ghashtable_enum_none_return (void);
53
54 GI_TEST_EXTERN
55 gchar *gi_marshalling_tests_filename_copy (gchar *path_in);
56 GI_TEST_EXTERN
57 gboolean gi_marshalling_tests_filename_exists (gchar *path);
58 GI_TEST_EXTERN
59 gchar *gi_marshalling_tests_filename_to_glib_repr (gchar *path_in, gsize *len);
60
61 GI_TEST_EXTERN
62 GIMarshallingTestsExtraEnum *gi_marshalling_tests_enum_array_return_type (gsize *n_members);
63
64 GI_TEST_EXTERN
65 void gi_marshalling_tests_extra_flags_large_in (GIMarshallingTestsExtraFlags value);
66
67 GI_TEST_EXTERN
68 gchar *gi_marshalling_tests_extra_utf8_full_return_invalid (void);
69 GI_TEST_EXTERN
70 void gi_marshalling_tests_extra_utf8_full_out_invalid (gchar **utf8);