| 1 |
/* |
| 2 |
SPDX-License-Identifier: GPL-2.0-or-later AND LGPL-2.0-or-later AND MIT |
| 3 |
SPDX-FileCopyrightText: 2010-2012 Collabora, Ltd. |
| 4 |
SPDX-FileCopyrightText: 2010 Johan Dahlin |
| 5 |
SPDX-FileCopyrightText: 2010 Sugar Labs |
| 6 |
SPDX-FileCopyrightText: 2010 Zach Goldberg |
| 7 |
SPDX-FileCopyrightText: 2011 Alex Eftimie |
| 8 |
SPDX-FileCopyrightText: 2011-2012 Canonical Ltd. |
| 9 |
SPDX-FileCopyrightText: 2011-2012 Colin Walters <[email protected]> |
| 10 |
SPDX-FileCopyrightText: 2011 Dan Winship |
| 11 |
SPDX-FileCopyrightText: 2011-2012 Giovanni Campagna |
| 12 |
SPDX-FileCopyrightText: 2011 Ignacio Casal Quinteiro |
| 13 |
SPDX-FileCopyrightText: 2011-2012 Jasper St. Pierre |
| 14 |
SPDX-FileCopyrightText: 2011 Laszlo Pandy |
| 15 |
SPDX-FileCopyrightText: 2011, 2013 Red Hat, Inc. |
| 16 |
SPDX-FileCopyrightText: 2012 Bastian Winkler |
| 17 |
SPDX-FileCopyrightText: 2012 Epitech |
| 18 |
SPDX-FileCopyrightText: 2012 Gonzalo Odiard |
| 19 |
SPDX-FileCopyrightText: 2012-2013 Martin Pitt |
| 20 |
SPDX-FileCopyrightText: 2012-2013 Paolo Borelli |
| 21 |
SPDX-FileCopyrightText: 2012 Sebastian Pölsterl |
| 22 |
SPDX-FileCopyrightText: 2013 Simon Feltman |
| 23 |
SPDX-FileCopyrightText: 2014 Lionel Landwerlin |
| 24 |
SPDX-FileCopyrightText: 2014 RIFT.io, Inc. |
| 25 |
SPDX-FileCopyrightText: 2014 SuSE |
| 26 |
SPDX-FileCopyrightText: 2016 Endless Mobile, Inc. |
| 27 |
SPDX-FileCopyrightText: 2017 Christoph Reiter |
| 28 |
SPDX-FileCopyrightText: 2016-2017, 2023, 2025 Philip Chimento |
| 29 |
SPDX-FileCopyrightText: 2018 Tomasz Miąsko |
| 30 |
SPDX-FileCopyrightText: 2019 Stéphane Seng |
| 31 |
SPDX-FileCopyrightText: 2020-2023 Marco Trevisan |
| 32 |
SPDX-FileCopyrightText: 2020, 2024 Simon McVittie |
| 33 |
SPDX-FileCopyrightText: 2021 Carlos Garnacho |
| 34 |
*/ |
| 35 |
|
| 36 |
#pragma once |
| 37 |
|
| 38 |
#include <stddef.h> /* size_t */ |
| 39 |
#include <sys/types.h> /* off_t, time_t */ |
| 40 |
|
| 41 |
#include <glib-object.h> |
| 42 |
#include <glib.h> |
| 43 |
|
| 44 |
#ifdef G_OS_UNIX |
| 45 |
#include <sys/socket.h> |
| 46 |
#endif |
| 47 |
|
| 48 |
#include "gitestmacros.h" |
| 49 |
|
| 50 |
typedef struct _GIMarshallingTestsSimpleStruct GIMarshallingTestsSimpleStruct; |
| 51 |
typedef struct _GIMarshallingTestsBoxedStruct GIMarshallingTestsBoxedStruct; |
| 52 |
|
| 53 |
/* Constants */ |
| 54 |
|
| 55 |
#define GI_MARSHALLING_TESTS_CONSTANT_NUMBER 42 |
| 56 |
#define GI_MARSHALLING_TESTS_CONSTANT_UTF8 "const \xe2\x99\xa5 utf8" |
| 57 |
#define GI_MARSHALLING_TESTS_CONSTANT_UCS4 { 0x63, 0x6f, 0x6e, 0x73, 0x74, \ |
| 58 |
0x20, 0x2665, 0x20, 0x75, 0x74, \ |
| 59 |
0x66, 0x38 } |
| 60 |
|
| 61 |
GI_TEST_EXTERN |
| 62 |
void gi_marshalling_tests_cleanup_unaligned_buffer (void); |
| 63 |
|
| 64 |
/* Booleans */ |
| 65 |
|
| 66 |
GI_TEST_EXTERN |
| 67 |
gboolean gi_marshalling_tests_boolean_return_true (void); |
| 68 |
|
| 69 |
GI_TEST_EXTERN |
| 70 |
gboolean gi_marshalling_tests_boolean_return_false (void); |
| 71 |
|
| 72 |
GI_TEST_EXTERN |
| 73 |
void gi_marshalling_tests_boolean_in_true (gboolean v); |
| 74 |
|
| 75 |
GI_TEST_EXTERN |
| 76 |
void gi_marshalling_tests_boolean_in_false (gboolean v); |
| 77 |
|
| 78 |
GI_TEST_EXTERN |
| 79 |
void gi_marshalling_tests_boolean_out_true (gboolean *v); |
| 80 |
|
| 81 |
GI_TEST_EXTERN |
| 82 |
void gi_marshalling_tests_boolean_out_false (gboolean *v); |
| 83 |
|
| 84 |
GI_TEST_EXTERN |
| 85 |
gboolean gi_marshalling_tests_boolean_out_uninitialized (gboolean *v G_GNUC_UNUSED); |
| 86 |
|
| 87 |
GI_TEST_EXTERN |
| 88 |
void gi_marshalling_tests_boolean_inout_true_false (gboolean *v); |
| 89 |
|
| 90 |
GI_TEST_EXTERN |
| 91 |
void gi_marshalling_tests_boolean_inout_false_true (gboolean *v); |
| 92 |
|
| 93 |
/* Integers */ |
| 94 |
|
| 95 |
GI_TEST_EXTERN |
| 96 |
gint8 gi_marshalling_tests_int8_return_max (void); |
| 97 |
|
| 98 |
GI_TEST_EXTERN |
| 99 |
gint8 gi_marshalling_tests_int8_return_min (void); |
| 100 |
|
| 101 |
GI_TEST_EXTERN |
| 102 |
void gi_marshalling_tests_int8_in_max (gint8 v); |
| 103 |
|
| 104 |
GI_TEST_EXTERN |
| 105 |
void gi_marshalling_tests_int8_in_min (gint8 v); |
| 106 |
|
| 107 |
GI_TEST_EXTERN |
| 108 |
void gi_marshalling_tests_int8_out_max (gint8 *v); |
| 109 |
|
| 110 |
GI_TEST_EXTERN |
| 111 |
void gi_marshalling_tests_int8_out_min (gint8 *v); |
| 112 |
|
| 113 |
GI_TEST_EXTERN |
| 114 |
gboolean gi_marshalling_tests_int8_out_uninitialized (gint8 *v G_GNUC_UNUSED); |
| 115 |
|
| 116 |
GI_TEST_EXTERN |
| 117 |
void gi_marshalling_tests_int8_inout_max_min (gint8 *v); |
| 118 |
|
| 119 |
GI_TEST_EXTERN |
| 120 |
void gi_marshalling_tests_int8_inout_min_max (gint8 *v); |
| 121 |
|
| 122 |
GI_TEST_EXTERN |
| 123 |
guint8 gi_marshalling_tests_uint8_return (void); |
| 124 |
|
| 125 |
GI_TEST_EXTERN |
| 126 |
void gi_marshalling_tests_uint8_in (guint8 v); |
| 127 |
|
| 128 |
GI_TEST_EXTERN |
| 129 |
void gi_marshalling_tests_uint8_out (guint8 *v); |
| 130 |
|
| 131 |
GI_TEST_EXTERN |
| 132 |
gboolean gi_marshalling_tests_uint8_out_uninitialized (guint8 *v G_GNUC_UNUSED); |
| 133 |
|
| 134 |
GI_TEST_EXTERN |
| 135 |
void gi_marshalling_tests_uint8_inout (guint8 *v); |
| 136 |
|
| 137 |
GI_TEST_EXTERN |
| 138 |
gint16 gi_marshalling_tests_int16_return_max (void); |
| 139 |
|
| 140 |
GI_TEST_EXTERN |
| 141 |
gint16 gi_marshalling_tests_int16_return_min (void); |
| 142 |
|
| 143 |
GI_TEST_EXTERN |
| 144 |
void gi_marshalling_tests_int16_in_max (gint16 v); |
| 145 |
|
| 146 |
GI_TEST_EXTERN |
| 147 |
void gi_marshalling_tests_int16_in_min (gint16 v); |
| 148 |
|
| 149 |
GI_TEST_EXTERN |
| 150 |
void gi_marshalling_tests_int16_out_max (gint16 *v); |
| 151 |
|
| 152 |
GI_TEST_EXTERN |
| 153 |
void gi_marshalling_tests_int16_out_min (gint16 *v); |
| 154 |
|
| 155 |
GI_TEST_EXTERN |
| 156 |
gboolean gi_marshalling_tests_int16_out_uninitialized (gint16 *v G_GNUC_UNUSED); |
| 157 |
|
| 158 |
GI_TEST_EXTERN |
| 159 |
void gi_marshalling_tests_int16_inout_max_min (gint16 *v); |
| 160 |
|
| 161 |
GI_TEST_EXTERN |
| 162 |
void gi_marshalling_tests_int16_inout_min_max (gint16 *v); |
| 163 |
|
| 164 |
GI_TEST_EXTERN |
| 165 |
guint16 gi_marshalling_tests_uint16_return (void); |
| 166 |
|
| 167 |
GI_TEST_EXTERN |
| 168 |
void gi_marshalling_tests_uint16_in (guint16 v); |
| 169 |
|
| 170 |
GI_TEST_EXTERN |
| 171 |
void gi_marshalling_tests_uint16_out (guint16 *v); |
| 172 |
|
| 173 |
GI_TEST_EXTERN |
| 174 |
gboolean gi_marshalling_tests_uint16_out_uninitialized (guint16 *v G_GNUC_UNUSED); |
| 175 |
|
| 176 |
GI_TEST_EXTERN |
| 177 |
void gi_marshalling_tests_uint16_inout (guint16 *v); |
| 178 |
|
| 179 |
GI_TEST_EXTERN |
| 180 |
gint32 gi_marshalling_tests_int32_return_max (void); |
| 181 |
|
| 182 |
GI_TEST_EXTERN |
| 183 |
gint32 gi_marshalling_tests_int32_return_min (void); |
| 184 |
|
| 185 |
GI_TEST_EXTERN |
| 186 |
void gi_marshalling_tests_int32_in_max (gint32 v); |
| 187 |
|
| 188 |
GI_TEST_EXTERN |
| 189 |
void gi_marshalling_tests_int32_in_min (gint32 v); |
| 190 |
|
| 191 |
GI_TEST_EXTERN |
| 192 |
void gi_marshalling_tests_int32_out_max (gint32 *v); |
| 193 |
|
| 194 |
GI_TEST_EXTERN |
| 195 |
void gi_marshalling_tests_int32_out_min (gint32 *v); |
| 196 |
|
| 197 |
GI_TEST_EXTERN |
| 198 |
gboolean gi_marshalling_tests_int32_out_uninitialized (gint32 *v G_GNUC_UNUSED); |
| 199 |
|
| 200 |
GI_TEST_EXTERN |
| 201 |
void gi_marshalling_tests_int32_inout_max_min (gint32 *v); |
| 202 |
|
| 203 |
GI_TEST_EXTERN |
| 204 |
void gi_marshalling_tests_int32_inout_min_max (gint32 *v); |
| 205 |
|
| 206 |
GI_TEST_EXTERN |
| 207 |
guint32 gi_marshalling_tests_uint32_return (void); |
| 208 |
|
| 209 |
GI_TEST_EXTERN |
| 210 |
void gi_marshalling_tests_uint32_in (guint32 v); |
| 211 |
|
| 212 |
GI_TEST_EXTERN |
| 213 |
void gi_marshalling_tests_uint32_out (guint32 *v); |
| 214 |
|
| 215 |
GI_TEST_EXTERN |
| 216 |
gboolean gi_marshalling_tests_uint32_out_uninitialized (guint32 *v G_GNUC_UNUSED); |
| 217 |
|
| 218 |
GI_TEST_EXTERN |
| 219 |
void gi_marshalling_tests_uint32_inout (guint32 *v); |
| 220 |
|
| 221 |
GI_TEST_EXTERN |
| 222 |
gint64 gi_marshalling_tests_int64_return_max (void); |
| 223 |
|
| 224 |
GI_TEST_EXTERN |
| 225 |
gint64 gi_marshalling_tests_int64_return_min (void); |
| 226 |
|
| 227 |
GI_TEST_EXTERN |
| 228 |
void gi_marshalling_tests_int64_in_max (gint64 v); |
| 229 |
|
| 230 |
GI_TEST_EXTERN |
| 231 |
void gi_marshalling_tests_int64_in_min (gint64 v); |
| 232 |
|
| 233 |
GI_TEST_EXTERN |
| 234 |
void gi_marshalling_tests_int64_out_max (gint64 *v); |
| 235 |
|
| 236 |
GI_TEST_EXTERN |
| 237 |
void gi_marshalling_tests_int64_out_min (gint64 *v); |
| 238 |
|
| 239 |
GI_TEST_EXTERN |
| 240 |
gboolean gi_marshalling_tests_int64_out_uninitialized (gint64 *v G_GNUC_UNUSED); |
| 241 |
|
| 242 |
GI_TEST_EXTERN |
| 243 |
void gi_marshalling_tests_int64_inout_max_min (gint64 *v); |
| 244 |
|
| 245 |
GI_TEST_EXTERN |
| 246 |
void gi_marshalling_tests_int64_inout_min_max (gint64 *v); |
| 247 |
|
| 248 |
GI_TEST_EXTERN |
| 249 |
guint64 gi_marshalling_tests_uint64_return (void); |
| 250 |
|
| 251 |
GI_TEST_EXTERN |
| 252 |
void gi_marshalling_tests_uint64_in (guint64 v); |
| 253 |
|
| 254 |
GI_TEST_EXTERN |
| 255 |
void gi_marshalling_tests_uint64_out (guint64 *v); |
| 256 |
|
| 257 |
GI_TEST_EXTERN |
| 258 |
gboolean gi_marshalling_tests_uint64_out_uninitialized (guint64 *v G_GNUC_UNUSED); |
| 259 |
|
| 260 |
GI_TEST_EXTERN |
| 261 |
void gi_marshalling_tests_uint64_inout (guint64 *v); |
| 262 |
|
| 263 |
GI_TEST_EXTERN |
| 264 |
gshort gi_marshalling_tests_short_return_max (void); |
| 265 |
|
| 266 |
GI_TEST_EXTERN |
| 267 |
gshort gi_marshalling_tests_short_return_min (void); |
| 268 |
|
| 269 |
GI_TEST_EXTERN |
| 270 |
void gi_marshalling_tests_short_in_max (gshort short_); |
| 271 |
|
| 272 |
GI_TEST_EXTERN |
| 273 |
void gi_marshalling_tests_short_in_min (gshort short_); |
| 274 |
|
| 275 |
GI_TEST_EXTERN |
| 276 |
void gi_marshalling_tests_short_out_max (gshort *short_); |
| 277 |
|
| 278 |
GI_TEST_EXTERN |
| 279 |
void gi_marshalling_tests_short_out_min (gshort *short_); |
| 280 |
|
| 281 |
GI_TEST_EXTERN |
| 282 |
gboolean gi_marshalling_tests_short_out_uninitialized (gshort *v G_GNUC_UNUSED); |
| 283 |
|
| 284 |
GI_TEST_EXTERN |
| 285 |
void gi_marshalling_tests_short_inout_max_min (gshort *short_); |
| 286 |
|
| 287 |
GI_TEST_EXTERN |
| 288 |
void gi_marshalling_tests_short_inout_min_max (gshort *short_); |
| 289 |
|
| 290 |
GI_TEST_EXTERN |
| 291 |
gushort gi_marshalling_tests_ushort_return (void); |
| 292 |
|
| 293 |
GI_TEST_EXTERN |
| 294 |
void gi_marshalling_tests_ushort_in (gushort ushort_); |
| 295 |
|
| 296 |
GI_TEST_EXTERN |
| 297 |
void gi_marshalling_tests_ushort_out (gushort *ushort_); |
| 298 |
|
| 299 |
GI_TEST_EXTERN |
| 300 |
gboolean gi_marshalling_tests_ushort_out_uninitialized (gushort *v G_GNUC_UNUSED); |
| 301 |
|
| 302 |
GI_TEST_EXTERN |
| 303 |
void gi_marshalling_tests_ushort_inout (gushort *ushort_); |
| 304 |
|
| 305 |
GI_TEST_EXTERN |
| 306 |
gint gi_marshalling_tests_int_return_max (void); |
| 307 |
|
| 308 |
GI_TEST_EXTERN |
| 309 |
gint gi_marshalling_tests_int_return_min (void); |
| 310 |
|
| 311 |
GI_TEST_EXTERN |
| 312 |
void gi_marshalling_tests_int_in_max (gint int_); |
| 313 |
|
| 314 |
GI_TEST_EXTERN |
| 315 |
void gi_marshalling_tests_int_in_min (gint int_); |
| 316 |
|
| 317 |
GI_TEST_EXTERN |
| 318 |
void gi_marshalling_tests_int_out_max (gint *int_); |
| 319 |
|
| 320 |
GI_TEST_EXTERN |
| 321 |
void gi_marshalling_tests_int_out_min (gint *int_); |
| 322 |
|
| 323 |
GI_TEST_EXTERN |
| 324 |
gboolean gi_marshalling_tests_int_out_uninitialized (gint *v G_GNUC_UNUSED); |
| 325 |
|
| 326 |
GI_TEST_EXTERN |
| 327 |
void gi_marshalling_tests_int_inout_max_min (gint *int_); |
| 328 |
|
| 329 |
GI_TEST_EXTERN |
| 330 |
void gi_marshalling_tests_int_inout_min_max (gint *int_); |
| 331 |
|
| 332 |
GI_TEST_EXTERN |
| 333 |
guint gi_marshalling_tests_uint_return (void); |
| 334 |
|
| 335 |
GI_TEST_EXTERN |
| 336 |
void gi_marshalling_tests_uint_in (guint uint_); |
| 337 |
|
| 338 |
GI_TEST_EXTERN |
| 339 |
void gi_marshalling_tests_uint_out (guint *uint_); |
| 340 |
|
| 341 |
GI_TEST_EXTERN |
| 342 |
gboolean gi_marshalling_tests_uint_out_uninitialized (guint *v G_GNUC_UNUSED); |
| 343 |
|
| 344 |
GI_TEST_EXTERN |
| 345 |
void gi_marshalling_tests_uint_inout (guint *uint_); |
| 346 |
|
| 347 |
GI_TEST_EXTERN |
| 348 |
glong gi_marshalling_tests_long_return_max (void); |
| 349 |
|
| 350 |
GI_TEST_EXTERN |
| 351 |
glong gi_marshalling_tests_long_return_min (void); |
| 352 |
|
| 353 |
GI_TEST_EXTERN |
| 354 |
void gi_marshalling_tests_long_in_max (glong long_); |
| 355 |
|
| 356 |
GI_TEST_EXTERN |
| 357 |
void gi_marshalling_tests_long_in_min (glong long_); |
| 358 |
|
| 359 |
GI_TEST_EXTERN |
| 360 |
void gi_marshalling_tests_long_out_max (glong *long_); |
| 361 |
|
| 362 |
GI_TEST_EXTERN |
| 363 |
void gi_marshalling_tests_long_out_min (glong *long_); |
| 364 |
|
| 365 |
GI_TEST_EXTERN |
| 366 |
gboolean gi_marshalling_tests_long_out_uninitialized (glong *v G_GNUC_UNUSED); |
| 367 |
|
| 368 |
GI_TEST_EXTERN |
| 369 |
void gi_marshalling_tests_long_inout_max_min (glong *long_); |
| 370 |
|
| 371 |
GI_TEST_EXTERN |
| 372 |
void gi_marshalling_tests_long_inout_min_max (glong *long_); |
| 373 |
|
| 374 |
GI_TEST_EXTERN |
| 375 |
gulong gi_marshalling_tests_ulong_return (void); |
| 376 |
|
| 377 |
GI_TEST_EXTERN |
| 378 |
void gi_marshalling_tests_ulong_in (gulong ulong_); |
| 379 |
|
| 380 |
GI_TEST_EXTERN |
| 381 |
void gi_marshalling_tests_ulong_out (gulong *ulong_); |
| 382 |
|
| 383 |
GI_TEST_EXTERN |
| 384 |
void gi_marshalling_tests_ulong_inout (gulong *ulong_); |
| 385 |
|
| 386 |
GI_TEST_EXTERN |
| 387 |
gboolean gi_marshalling_tests_ulong_out_uninitialized (gulong *v G_GNUC_UNUSED); |
| 388 |
|
| 389 |
GI_TEST_EXTERN |
| 390 |
gssize gi_marshalling_tests_ssize_return_max (void); |
| 391 |
|
| 392 |
GI_TEST_EXTERN |
| 393 |
gssize gi_marshalling_tests_ssize_return_min (void); |
| 394 |
|
| 395 |
GI_TEST_EXTERN |
| 396 |
void gi_marshalling_tests_ssize_in_max (gssize ssize); |
| 397 |
|
| 398 |
GI_TEST_EXTERN |
| 399 |
void gi_marshalling_tests_ssize_in_min (gssize ssize); |
| 400 |
|
| 401 |
GI_TEST_EXTERN |
| 402 |
void gi_marshalling_tests_ssize_out_max (gssize *ssize); |
| 403 |
|
| 404 |
GI_TEST_EXTERN |
| 405 |
void gi_marshalling_tests_ssize_out_min (gssize *ssize); |
| 406 |
|
| 407 |
GI_TEST_EXTERN |
| 408 |
gboolean gi_marshalling_tests_ssize_out_uninitialized (gssize *v G_GNUC_UNUSED); |
| 409 |
|
| 410 |
GI_TEST_EXTERN |
| 411 |
void gi_marshalling_tests_ssize_inout_max_min (gssize *ssize); |
| 412 |
|
| 413 |
GI_TEST_EXTERN |
| 414 |
void gi_marshalling_tests_ssize_inout_min_max (gssize *ssize); |
| 415 |
|
| 416 |
GI_TEST_EXTERN |
| 417 |
gsize gi_marshalling_tests_size_return (void); |
| 418 |
|
| 419 |
GI_TEST_EXTERN |
| 420 |
void gi_marshalling_tests_size_in (gsize size); |
| 421 |
|
| 422 |
GI_TEST_EXTERN |
| 423 |
void gi_marshalling_tests_size_out (gsize *size); |
| 424 |
|
| 425 |
GI_TEST_EXTERN |
| 426 |
gboolean gi_marshalling_tests_size_out_uninitialized (gsize *v G_GNUC_UNUSED); |
| 427 |
|
| 428 |
GI_TEST_EXTERN |
| 429 |
void gi_marshalling_tests_size_inout (gsize *size); |
| 430 |
|
| 431 |
/* Floating-point */ |
| 432 |
|
| 433 |
GI_TEST_EXTERN |
| 434 |
gfloat gi_marshalling_tests_float_return (void); |
| 435 |
|
| 436 |
GI_TEST_EXTERN |
| 437 |
void gi_marshalling_tests_float_in (gfloat v); |
| 438 |
|
| 439 |
GI_TEST_EXTERN |
| 440 |
void gi_marshalling_tests_float_out (gfloat *v); |
| 441 |
|
| 442 |
GI_TEST_EXTERN |
| 443 |
void gi_marshalling_tests_float_noncanonical_nan_out (gfloat *v); |
| 444 |
|
| 445 |
GI_TEST_EXTERN |
| 446 |
gboolean gi_marshalling_tests_float_out_uninitialized (gfloat *v G_GNUC_UNUSED); |
| 447 |
|
| 448 |
GI_TEST_EXTERN |
| 449 |
void gi_marshalling_tests_float_inout (gfloat *v); |
| 450 |
|
| 451 |
GI_TEST_EXTERN |
| 452 |
gdouble gi_marshalling_tests_double_return (void); |
| 453 |
|
| 454 |
GI_TEST_EXTERN |
| 455 |
void gi_marshalling_tests_double_in (gdouble v); |
| 456 |
|
| 457 |
GI_TEST_EXTERN |
| 458 |
void gi_marshalling_tests_double_out (gdouble *v); |
| 459 |
|
| 460 |
GI_TEST_EXTERN |
| 461 |
void gi_marshalling_tests_double_noncanonical_nan_out (gdouble *v); |
| 462 |
|
| 463 |
GI_TEST_EXTERN |
| 464 |
gboolean gi_marshalling_tests_double_out_uninitialized (gdouble *v G_GNUC_UNUSED); |
| 465 |
|
| 466 |
GI_TEST_EXTERN |
| 467 |
void gi_marshalling_tests_double_inout (gdouble *v); |
| 468 |
|
| 469 |
/* Timestamps */ |
| 470 |
|
| 471 |
GI_TEST_EXTERN |
| 472 |
time_t gi_marshalling_tests_time_t_return (void); |
| 473 |
|
| 474 |
GI_TEST_EXTERN |
| 475 |
void gi_marshalling_tests_time_t_in (time_t v); |
| 476 |
|
| 477 |
GI_TEST_EXTERN |
| 478 |
void gi_marshalling_tests_time_t_out (time_t *v); |
| 479 |
|
| 480 |
GI_TEST_EXTERN |
| 481 |
gboolean gi_marshalling_tests_time_t_out_uninitialized (time_t *v G_GNUC_UNUSED); |
| 482 |
|
| 483 |
GI_TEST_EXTERN |
| 484 |
void gi_marshalling_tests_time_t_inout (time_t *v); |
| 485 |
|
| 486 |
/* Platform file offset (avoid this, use goffset instead) */ |
| 487 |
|
| 488 |
GI_TEST_EXTERN |
| 489 |
off_t gi_marshalling_tests_off_t_return (void); |
| 490 |
|
| 491 |
GI_TEST_EXTERN |
| 492 |
void gi_marshalling_tests_off_t_in (off_t v); |
| 493 |
|
| 494 |
GI_TEST_EXTERN |
| 495 |
void gi_marshalling_tests_off_t_out (off_t *v); |
| 496 |
|
| 497 |
GI_TEST_EXTERN |
| 498 |
gboolean gi_marshalling_tests_off_t_out_uninitialized (off_t *v G_GNUC_UNUSED); |
| 499 |
|
| 500 |
GI_TEST_EXTERN |
| 501 |
void gi_marshalling_tests_off_t_inout (off_t *v); |
| 502 |
|
| 503 |
#ifdef G_OS_UNIX |
| 504 |
|
| 505 |
/* Unix device number */ |
| 506 |
|
| 507 |
GI_TEST_EXTERN |
| 508 |
dev_t gi_marshalling_tests_dev_t_return (void); |
| 509 |
|
| 510 |
GI_TEST_EXTERN |
| 511 |
void gi_marshalling_tests_dev_t_in (dev_t v); |
| 512 |
|
| 513 |
GI_TEST_EXTERN |
| 514 |
void gi_marshalling_tests_dev_t_out (dev_t *v); |
| 515 |
|
| 516 |
GI_TEST_EXTERN |
| 517 |
gboolean gi_marshalling_tests_dev_t_out_uninitialized (dev_t *v G_GNUC_UNUSED); |
| 518 |
|
| 519 |
GI_TEST_EXTERN |
| 520 |
void gi_marshalling_tests_dev_t_inout (dev_t *v); |
| 521 |
|
| 522 |
/* Unix group */ |
| 523 |
|
| 524 |
GI_TEST_EXTERN |
| 525 |
gid_t gi_marshalling_tests_gid_t_return (void); |
| 526 |
|
| 527 |
GI_TEST_EXTERN |
| 528 |
void gi_marshalling_tests_gid_t_in (gid_t v); |
| 529 |
|
| 530 |
GI_TEST_EXTERN |
| 531 |
void gi_marshalling_tests_gid_t_out (gid_t *v); |
| 532 |
|
| 533 |
GI_TEST_EXTERN |
| 534 |
gboolean gi_marshalling_tests_gid_t_out_uninitialized (gid_t *v G_GNUC_UNUSED); |
| 535 |
|
| 536 |
GI_TEST_EXTERN |
| 537 |
void gi_marshalling_tests_gid_t_inout (gid_t *v); |
| 538 |
|
| 539 |
/* Unix process */ |
| 540 |
|
| 541 |
GI_TEST_EXTERN |
| 542 |
pid_t gi_marshalling_tests_pid_t_return (void); |
| 543 |
|
| 544 |
GI_TEST_EXTERN |
| 545 |
void gi_marshalling_tests_pid_t_in (pid_t v); |
| 546 |
|
| 547 |
GI_TEST_EXTERN |
| 548 |
void gi_marshalling_tests_pid_t_out (pid_t *v); |
| 549 |
|
| 550 |
GI_TEST_EXTERN |
| 551 |
gboolean gi_marshalling_tests_pid_t_out_uninitialized (pid_t *v G_GNUC_UNUSED); |
| 552 |
|
| 553 |
GI_TEST_EXTERN |
| 554 |
void gi_marshalling_tests_pid_t_inout (pid_t *v); |
| 555 |
|
| 556 |
/* Unix socket address length */ |
| 557 |
|
| 558 |
GI_TEST_EXTERN |
| 559 |
socklen_t gi_marshalling_tests_socklen_t_return (void); |
| 560 |
|
| 561 |
GI_TEST_EXTERN |
| 562 |
void gi_marshalling_tests_socklen_t_in (socklen_t v); |
| 563 |
|
| 564 |
GI_TEST_EXTERN |
| 565 |
void gi_marshalling_tests_socklen_t_out (socklen_t *v); |
| 566 |
|
| 567 |
GI_TEST_EXTERN |
| 568 |
gboolean gi_marshalling_tests_socklen_t_out_uninitialized (socklen_t *v G_GNUC_UNUSED); |
| 569 |
|
| 570 |
GI_TEST_EXTERN |
| 571 |
void gi_marshalling_tests_socklen_t_inout (socklen_t *v); |
| 572 |
|
| 573 |
/* Unix user */ |
| 574 |
|
| 575 |
GI_TEST_EXTERN |
| 576 |
uid_t gi_marshalling_tests_uid_t_return (void); |
| 577 |
|
| 578 |
GI_TEST_EXTERN |
| 579 |
void gi_marshalling_tests_uid_t_in (uid_t v); |
| 580 |
|
| 581 |
GI_TEST_EXTERN |
| 582 |
void gi_marshalling_tests_uid_t_out (uid_t *v); |
| 583 |
|
| 584 |
GI_TEST_EXTERN |
| 585 |
gboolean gi_marshalling_tests_uid_t_out_uninitialized (uid_t *v G_GNUC_UNUSED); |
| 586 |
|
| 587 |
GI_TEST_EXTERN |
| 588 |
void gi_marshalling_tests_uid_t_inout (uid_t *v); |
| 589 |
|
| 590 |
#endif /* G_OS_UNIX */ |
| 591 |
|
| 592 |
/* GType */ |
| 593 |
|
| 594 |
GI_TEST_EXTERN |
| 595 |
GType gi_marshalling_tests_gtype_return (void); |
| 596 |
|
| 597 |
GI_TEST_EXTERN |
| 598 |
GType gi_marshalling_tests_gtype_string_return (void); |
| 599 |
|
| 600 |
GI_TEST_EXTERN |
| 601 |
void gi_marshalling_tests_gtype_in (GType gtype); |
| 602 |
|
| 603 |
GI_TEST_EXTERN |
| 604 |
void gi_marshalling_tests_gtype_string_in (GType gtype); |
| 605 |
|
| 606 |
GI_TEST_EXTERN |
| 607 |
void gi_marshalling_tests_gtype_out (GType *gtype); |
| 608 |
|
| 609 |
GI_TEST_EXTERN |
| 610 |
gboolean gi_marshalling_tests_gtype_out_uninitialized (GType *v G_GNUC_UNUSED); |
| 611 |
|
| 612 |
GI_TEST_EXTERN |
| 613 |
void gi_marshalling_tests_gtype_string_out (GType *gtype); |
| 614 |
|
| 615 |
GI_TEST_EXTERN |
| 616 |
void gi_marshalling_tests_gtype_inout (GType *gtype); |
| 617 |
|
| 618 |
/* UTF-8 */ |
| 619 |
|
| 620 |
GI_TEST_EXTERN |
| 621 |
const gchar *gi_marshalling_tests_utf8_none_return (void); |
| 622 |
|
| 623 |
GI_TEST_EXTERN |
| 624 |
gchar *gi_marshalling_tests_utf8_full_return (void); |
| 625 |
|
| 626 |
GI_TEST_EXTERN |
| 627 |
void gi_marshalling_tests_utf8_none_in (const gchar *utf8); |
| 628 |
|
| 629 |
GI_TEST_EXTERN |
| 630 |
void gi_marshalling_tests_utf8_full_in (gchar *utf8); |
| 631 |
|
| 632 |
GI_TEST_EXTERN |
| 633 |
void gi_marshalling_tests_utf8_none_out (const gchar **utf8); |
| 634 |
|
| 635 |
GI_TEST_EXTERN |
| 636 |
gboolean gi_marshalling_tests_utf8_none_out_uninitialized (const gchar **v G_GNUC_UNUSED); |
| 637 |
|
| 638 |
GI_TEST_EXTERN |
| 639 |
void gi_marshalling_tests_utf8_full_out (gchar **utf8); |
| 640 |
|
| 641 |
GI_TEST_EXTERN |
| 642 |
void gi_marshalling_tests_utf8_dangling_out (gchar **utf8); |
| 643 |
|
| 644 |
GI_TEST_EXTERN |
| 645 |
void gi_marshalling_tests_utf8_none_inout (const gchar **utf8); |
| 646 |
|
| 647 |
GI_TEST_EXTERN |
| 648 |
void gi_marshalling_tests_utf8_full_inout (gchar **utf8); |
| 649 |
|
| 650 |
GI_TEST_EXTERN |
| 651 |
GSList *gi_marshalling_tests_filename_list_return (void); |
| 652 |
|
| 653 |
GI_TEST_EXTERN |
| 654 |
void gi_marshalling_tests_utf8_as_uint8array_in (const guint8 *array, |
| 655 |
gsize len); |
| 656 |
|
| 657 |
/* Enum */ |
| 658 |
|
| 659 |
typedef enum |
| 660 |
{ |
| 661 |
GI_MARSHALLING_TESTS_ENUM_VALUE1, |
| 662 |
GI_MARSHALLING_TESTS_ENUM_VALUE2, |
| 663 |
GI_MARSHALLING_TESTS_ENUM_VALUE3 = 42 |
| 664 |
} GIMarshallingTestsEnum; |
| 665 |
|
| 666 |
typedef enum |
| 667 |
{ |
| 668 |
GI_MARSHALLING_TESTS_SECOND_ENUM_SECONDVALUE1, |
| 669 |
GI_MARSHALLING_TESTS_SECOND_ENUM_SECONDVALUE2, |
| 670 |
} GIMarshallingTestsSecondEnum; |
| 671 |
|
| 672 |
GI_TEST_EXTERN |
| 673 |
GIMarshallingTestsEnum gi_marshalling_tests_enum_returnv (void); |
| 674 |
|
| 675 |
GI_TEST_EXTERN |
| 676 |
void gi_marshalling_tests_enum_in (GIMarshallingTestsEnum v); |
| 677 |
|
| 678 |
GI_TEST_EXTERN |
| 679 |
void gi_marshalling_tests_enum_out (GIMarshallingTestsEnum *v); |
| 680 |
|
| 681 |
GI_TEST_EXTERN |
| 682 |
gboolean gi_marshalling_tests_enum_out_uninitialized (GIMarshallingTestsEnum **v G_GNUC_UNUSED); |
| 683 |
|
| 684 |
GI_TEST_EXTERN |
| 685 |
void gi_marshalling_tests_enum_inout (GIMarshallingTestsEnum *v); |
| 686 |
|
| 687 |
/* GEnum */ |
| 688 |
|
| 689 |
typedef enum |
| 690 |
{ |
| 691 |
GI_MARSHALLING_TESTS_GENUM_VALUE1, |
| 692 |
GI_MARSHALLING_TESTS_GENUM_VALUE2, |
| 693 |
GI_MARSHALLING_TESTS_GENUM_VALUE3 = 42 |
| 694 |
} GIMarshallingTestsGEnum; |
| 695 |
|
| 696 |
GI_TEST_EXTERN |
| 697 |
GType gi_marshalling_tests_genum_get_type (void) G_GNUC_CONST; |
| 698 |
#define GI_MARSHALLING_TESTS_TYPE_GENUM (gi_marshalling_tests_genum_get_type ()) |
| 699 |
|
| 700 |
GI_TEST_EXTERN |
| 701 |
GIMarshallingTestsGEnum gi_marshalling_tests_genum_returnv (void); |
| 702 |
|
| 703 |
GI_TEST_EXTERN |
| 704 |
void gi_marshalling_tests_genum_in (GIMarshallingTestsGEnum v); |
| 705 |
|
| 706 |
GI_TEST_EXTERN |
| 707 |
void gi_marshalling_tests_genum_out (GIMarshallingTestsGEnum *v); |
| 708 |
|
| 709 |
GI_TEST_EXTERN |
| 710 |
gboolean gi_marshalling_tests_genum_out_uninitialized (GIMarshallingTestsGEnum *v G_GNUC_UNUSED); |
| 711 |
|
| 712 |
GI_TEST_EXTERN |
| 713 |
void gi_marshalling_tests_genum_inout (GIMarshallingTestsGEnum *v); |
| 714 |
|
| 715 |
/* GFlags */ |
| 716 |
|
| 717 |
typedef enum |
| 718 |
{ |
| 719 |
GI_MARSHALLING_TESTS_FLAGS_VALUE1 = 1 << 0, |
| 720 |
GI_MARSHALLING_TESTS_FLAGS_VALUE2 = 1 << 1, |
| 721 |
GI_MARSHALLING_TESTS_FLAGS_VALUE3 = 1 << 2, |
| 722 |
GI_MARSHALLING_TESTS_FLAGS_MASK = GI_MARSHALLING_TESTS_FLAGS_VALUE1 | |
| 723 |
GI_MARSHALLING_TESTS_FLAGS_VALUE2, |
| 724 |
GI_MARSHALLING_TESTS_FLAGS_MASK2 = GI_MARSHALLING_TESTS_FLAGS_MASK |
| 725 |
} GIMarshallingTestsFlags; |
| 726 |
|
| 727 |
GI_TEST_EXTERN |
| 728 |
GType gi_marshalling_tests_flags_get_type (void) G_GNUC_CONST; |
| 729 |
#define GI_MARSHALLING_TESTS_TYPE_FLAGS (gi_marshalling_tests_flags_get_type ()) |
| 730 |
|
| 731 |
GI_TEST_EXTERN |
| 732 |
GIMarshallingTestsFlags gi_marshalling_tests_flags_returnv (void); |
| 733 |
|
| 734 |
GI_TEST_EXTERN |
| 735 |
void gi_marshalling_tests_flags_in (GIMarshallingTestsFlags v); |
| 736 |
|
| 737 |
GI_TEST_EXTERN |
| 738 |
void gi_marshalling_tests_flags_in_zero (GIMarshallingTestsFlags v); |
| 739 |
|
| 740 |
GI_TEST_EXTERN |
| 741 |
void gi_marshalling_tests_flags_out (GIMarshallingTestsFlags *v); |
| 742 |
|
| 743 |
GI_TEST_EXTERN |
| 744 |
gboolean gi_marshalling_tests_flags_out_uninitialized (GIMarshallingTestsFlags *v G_GNUC_UNUSED); |
| 745 |
|
| 746 |
GI_TEST_EXTERN |
| 747 |
void gi_marshalling_tests_flags_inout (GIMarshallingTestsFlags *v); |
| 748 |
|
| 749 |
/* Flags with no GType */ |
| 750 |
|
| 751 |
typedef enum |
| 752 |
{ |
| 753 |
GI_MARSHALLING_TESTS_NO_TYPE_FLAGS_VALUE1 = 1 << 0, |
| 754 |
GI_MARSHALLING_TESTS_NO_TYPE_FLAGS_VALUE2 = 1 << 1, |
| 755 |
GI_MARSHALLING_TESTS_NO_TYPE_FLAGS_VALUE3 = 1 << 2, |
| 756 |
GI_MARSHALLING_TESTS_NO_TYPE_FLAGS_MASK = GI_MARSHALLING_TESTS_NO_TYPE_FLAGS_VALUE1 | |
| 757 |
GI_MARSHALLING_TESTS_NO_TYPE_FLAGS_VALUE2, |
| 758 |
GI_MARSHALLING_TESTS_NO_TYPE_FLAGS_MASK2 = GI_MARSHALLING_TESTS_FLAGS_MASK |
| 759 |
} GIMarshallingTestsNoTypeFlags; |
| 760 |
|
| 761 |
GI_TEST_EXTERN |
| 762 |
GIMarshallingTestsNoTypeFlags gi_marshalling_tests_no_type_flags_returnv (void); |
| 763 |
|
| 764 |
GI_TEST_EXTERN |
| 765 |
void gi_marshalling_tests_no_type_flags_in (GIMarshallingTestsNoTypeFlags v); |
| 766 |
|
| 767 |
GI_TEST_EXTERN |
| 768 |
void gi_marshalling_tests_no_type_flags_in_zero (GIMarshallingTestsNoTypeFlags v); |
| 769 |
|
| 770 |
GI_TEST_EXTERN |
| 771 |
void gi_marshalling_tests_no_type_flags_out (GIMarshallingTestsNoTypeFlags *v); |
| 772 |
|
| 773 |
GI_TEST_EXTERN |
| 774 |
gboolean gi_marshalling_tests_no_type_flags_out_uninitialized (GIMarshallingTestsNoTypeFlags **v G_GNUC_UNUSED); |
| 775 |
|
| 776 |
GI_TEST_EXTERN |
| 777 |
void gi_marshalling_tests_no_type_flags_inout (GIMarshallingTestsNoTypeFlags *v); |
| 778 |
|
| 779 |
/* Arrays */ |
| 780 |
|
| 781 |
GI_TEST_EXTERN |
| 782 |
gboolean gi_marshalling_tests_init_function (gint *n_args, char ***argv); |
| 783 |
|
| 784 |
/* Fixed-size */ |
| 785 |
|
| 786 |
GI_TEST_EXTERN |
| 787 |
const gint *gi_marshalling_tests_array_fixed_int_return (void); |
| 788 |
|
| 789 |
GI_TEST_EXTERN |
| 790 |
const gshort *gi_marshalling_tests_array_fixed_short_return (void); |
| 791 |
|
| 792 |
GI_TEST_EXTERN |
| 793 |
const guint8 *gi_marshalling_tests_array_fixed_return_unaligned (void); |
| 794 |
|
| 795 |
GI_TEST_EXTERN |
| 796 |
void gi_marshalling_tests_array_fixed_int_in (const gint *ints); |
| 797 |
|
| 798 |
GI_TEST_EXTERN |
| 799 |
void gi_marshalling_tests_array_fixed_caller_allocated_out (gint *ints); |
| 800 |
|
| 801 |
GI_TEST_EXTERN |
| 802 |
void gi_marshalling_tests_array_fixed_short_in (const gshort *shorts); |
| 803 |
|
| 804 |
GI_TEST_EXTERN |
| 805 |
void gi_marshalling_tests_array_fixed_out (gint **ints); |
| 806 |
|
| 807 |
GI_TEST_EXTERN |
| 808 |
gboolean gi_marshalling_tests_array_fixed_out_uninitialized (gint **v G_GNUC_UNUSED); |
| 809 |
|
| 810 |
GI_TEST_EXTERN |
| 811 |
void gi_marshalling_tests_array_fixed_out_unaligned (const guint8 **v); |
| 812 |
|
| 813 |
GI_TEST_EXTERN |
| 814 |
void gi_marshalling_tests_array_fixed_out_struct (GIMarshallingTestsSimpleStruct **structs); |
| 815 |
|
| 816 |
GI_TEST_EXTERN |
| 817 |
gboolean gi_marshalling_tests_array_fixed_out_struct_uninitialized (GIMarshallingTestsSimpleStruct **v G_GNUC_UNUSED); |
| 818 |
|
| 819 |
GI_TEST_EXTERN |
| 820 |
void gi_marshalling_tests_array_fixed_caller_allocated_struct_out (GIMarshallingTestsSimpleStruct *structs); |
| 821 |
|
| 822 |
GI_TEST_EXTERN |
| 823 |
void gi_marshalling_tests_array_fixed_inout (gint **ints); |
| 824 |
|
| 825 |
/* Variable-size */ |
| 826 |
|
| 827 |
GI_TEST_EXTERN |
| 828 |
const gint *gi_marshalling_tests_array_return (gint *length); |
| 829 |
|
| 830 |
GI_TEST_EXTERN |
| 831 |
const gint *gi_marshalling_tests_array_return_etc (gint first, gint *length, gint last, gint *sum); |
| 832 |
|
| 833 |
GI_TEST_EXTERN |
| 834 |
const guint8 *gi_marshalling_tests_array_return_unaligned (gsize *len); |
| 835 |
|
| 836 |
GI_TEST_EXTERN |
| 837 |
void gi_marshalling_tests_array_in (const gint *ints, gint length); |
| 838 |
|
| 839 |
GI_TEST_EXTERN |
| 840 |
void gi_marshalling_tests_array_in_len_before (gint length, const gint *ints); |
| 841 |
|
| 842 |
GI_TEST_EXTERN |
| 843 |
void gi_marshalling_tests_array_in_len_zero_terminated (const gint *ints, gint length); |
| 844 |
|
| 845 |
GI_TEST_EXTERN |
| 846 |
void gi_marshalling_tests_array_string_in (const gchar **strings, gint length); |
| 847 |
|
| 848 |
GI_TEST_EXTERN |
| 849 |
void gi_marshalling_tests_array_uint8_in (const guint8 *chars, gint length); |
| 850 |
|
| 851 |
GI_TEST_EXTERN |
| 852 |
void gi_marshalling_tests_array_int64_in (const gint64 *ints, gint length); |
| 853 |
|
| 854 |
GI_TEST_EXTERN |
| 855 |
void gi_marshalling_tests_array_uint64_in (const guint64 *ints, gint length); |
| 856 |
|
| 857 |
GI_TEST_EXTERN |
| 858 |
void gi_marshalling_tests_array_unichar_in (const gunichar *chars, gint length); |
| 859 |
|
| 860 |
GI_TEST_EXTERN |
| 861 |
void gi_marshalling_tests_array_bool_in (const gboolean *bools, gint length); |
| 862 |
|
| 863 |
GI_TEST_EXTERN |
| 864 |
void gi_marshalling_tests_array_struct_in (GIMarshallingTestsBoxedStruct **structs, gint length); |
| 865 |
|
| 866 |
GI_TEST_EXTERN |
| 867 |
void gi_marshalling_tests_array_struct_full_in (GIMarshallingTestsBoxedStruct **structs, gint length); |
| 868 |
|
| 869 |
GI_TEST_EXTERN |
| 870 |
void gi_marshalling_tests_array_struct_value_in (GIMarshallingTestsBoxedStruct *structs, gint length); |
| 871 |
|
| 872 |
GI_TEST_EXTERN |
| 873 |
void gi_marshalling_tests_array_struct_take_in (GIMarshallingTestsBoxedStruct **structs, gint length); |
| 874 |
|
| 875 |
GI_TEST_EXTERN |
| 876 |
void gi_marshalling_tests_array_simple_struct_in (GIMarshallingTestsSimpleStruct *structs, gint length); |
| 877 |
|
| 878 |
GI_TEST_EXTERN |
| 879 |
void gi_marshalling_tests_multi_array_key_value_in (gint length, const gchar **keys, const GValue *values); |
| 880 |
|
| 881 |
GI_TEST_EXTERN |
| 882 |
void gi_marshalling_tests_array_enum_in (GIMarshallingTestsEnum *_enum, gint length); |
| 883 |
|
| 884 |
GI_TEST_EXTERN |
| 885 |
void gi_marshalling_tests_array_flags_in (GIMarshallingTestsFlags *flags, gint length); |
| 886 |
|
| 887 |
GI_TEST_EXTERN |
| 888 |
void gi_marshalling_tests_array_in_guint64_len (const gint *ints, guint64 length); |
| 889 |
|
| 890 |
GI_TEST_EXTERN |
| 891 |
void gi_marshalling_tests_array_in_guint8_len (const gint *ints, guint8 length); |
| 892 |
|
| 893 |
GI_TEST_EXTERN |
| 894 |
void gi_marshalling_tests_array_out (gint **ints, gint *length); |
| 895 |
|
| 896 |
GI_TEST_EXTERN |
| 897 |
gboolean gi_marshalling_tests_array_out_uninitialized (gint **v G_GNUC_UNUSED, gint *length G_GNUC_UNUSED); |
| 898 |
|
| 899 |
GI_TEST_EXTERN |
| 900 |
void gi_marshalling_tests_array_out_unaligned (const guint8 **v, gsize *len); |
| 901 |
|
| 902 |
GI_TEST_EXTERN |
| 903 |
void gi_marshalling_tests_array_out_etc (gint first, gint **ints, gint *length, gint last, gint *sum); |
| 904 |
|
| 905 |
GI_TEST_EXTERN |
| 906 |
void gi_marshalling_tests_array_bool_out (const gboolean **bools, gint *length); |
| 907 |
|
| 908 |
GI_TEST_EXTERN |
| 909 |
void gi_marshalling_tests_array_unichar_out (const gunichar **chars, gint *length); |
| 910 |
|
| 911 |
GI_TEST_EXTERN |
| 912 |
void gi_marshalling_tests_array_inout (gint **ints, gint *length); |
| 913 |
|
| 914 |
GI_TEST_EXTERN |
| 915 |
void gi_marshalling_tests_array_inout_etc (gint first, gint **ints, gint *length, gint last, gint *sum); |
| 916 |
|
| 917 |
GI_TEST_EXTERN |
| 918 |
void gi_marshalling_tests_array_in_nonzero_nonlen (gint first, const guint8 *chars); |
| 919 |
|
| 920 |
/* Zero-terminated */ |
| 921 |
|
| 922 |
GI_TEST_EXTERN |
| 923 |
const gchar **gi_marshalling_tests_array_zero_terminated_return (void); |
| 924 |
|
| 925 |
GI_TEST_EXTERN |
| 926 |
gchar **gi_marshalling_tests_array_zero_terminated_return_null (void); |
| 927 |
|
| 928 |
GI_TEST_EXTERN |
| 929 |
GIMarshallingTestsBoxedStruct **gi_marshalling_tests_array_zero_terminated_return_struct (void); |
| 930 |
|
| 931 |
GI_TEST_EXTERN |
| 932 |
GIMarshallingTestsBoxedStruct *gi_marshalling_tests_array_zero_terminated_return_sequential_struct (void); |
| 933 |
|
| 934 |
GI_TEST_EXTERN |
| 935 |
gunichar *gi_marshalling_tests_array_zero_terminated_return_unichar (void); |
| 936 |
|
| 937 |
GI_TEST_EXTERN |
| 938 |
const guint8 *gi_marshalling_tests_array_zero_terminated_return_unaligned (void); |
| 939 |
|
| 940 |
GI_TEST_EXTERN |
| 941 |
void gi_marshalling_tests_array_zero_terminated_in (gchar **utf8s); |
| 942 |
|
| 943 |
GI_TEST_EXTERN |
| 944 |
void gi_marshalling_tests_array_zero_terminated_out (const gchar ***utf8s); |
| 945 |
|
| 946 |
GI_TEST_EXTERN |
| 947 |
gboolean gi_marshalling_tests_array_zero_terminated_out_uninitialized (const gchar ***v G_GNUC_UNUSED); |
| 948 |
|
| 949 |
GI_TEST_EXTERN |
| 950 |
void gi_marshalling_tests_array_zero_terminated_out_unaligned (const guint8 **v); |
| 951 |
|
| 952 |
GI_TEST_EXTERN |
| 953 |
void gi_marshalling_tests_array_zero_terminated_inout (const gchar ***utf8s); |
| 954 |
|
| 955 |
GI_TEST_EXTERN |
| 956 |
GVariant **gi_marshalling_tests_array_gvariant_none_in (GVariant **variants); |
| 957 |
|
| 958 |
GI_TEST_EXTERN |
| 959 |
GVariant **gi_marshalling_tests_array_gvariant_container_in (GVariant **variants); |
| 960 |
|
| 961 |
GI_TEST_EXTERN |
| 962 |
GVariant **gi_marshalling_tests_array_gvariant_full_in (GVariant **variants); |
| 963 |
|
| 964 |
/* Full complement of array-of-UTF8 in/out tests for fixed-length array, |
| 965 |
* explicit-length array, zero-terminated array. GArray, GPtrArray, GList, and |
| 966 |
* GSList are already covered below. */ |
| 967 |
|
| 968 |
GI_TEST_EXTERN |
| 969 |
const gchar *const *gi_marshalling_tests_length_array_utf8_none_return (size_t *out_length); |
| 970 |
|
| 971 |
GI_TEST_EXTERN |
| 972 |
const gchar **gi_marshalling_tests_length_array_utf8_container_return (size_t *out_length); |
| 973 |
|
| 974 |
GI_TEST_EXTERN |
| 975 |
gchar **gi_marshalling_tests_length_array_utf8_full_return (size_t *out_length); |
| 976 |
|
| 977 |
GI_TEST_EXTERN |
| 978 |
void gi_marshalling_tests_length_array_utf8_none_in (const gchar *const *array, size_t length); |
| 979 |
|
| 980 |
GI_TEST_EXTERN |
| 981 |
void gi_marshalling_tests_length_array_utf8_container_in (const gchar **array, size_t length); |
| 982 |
|
| 983 |
GI_TEST_EXTERN |
| 984 |
void gi_marshalling_tests_length_array_utf8_full_in (gchar **array, size_t length); |
| 985 |
|
| 986 |
GI_TEST_EXTERN |
| 987 |
void gi_marshalling_tests_length_array_utf8_none_out (const gchar *const **array_out, size_t *out_length); |
| 988 |
|
| 989 |
GI_TEST_EXTERN |
| 990 |
void gi_marshalling_tests_length_array_utf8_container_out (const gchar ***array_out, size_t *out_length); |
| 991 |
|
| 992 |
GI_TEST_EXTERN |
| 993 |
void gi_marshalling_tests_length_array_utf8_full_out (gchar ***array_out, size_t *out_length); |
| 994 |
|
| 995 |
GI_TEST_EXTERN |
| 996 |
void gi_marshalling_tests_length_array_utf8_none_inout (const gchar *const **array_inout, size_t *inout_length); |
| 997 |
|
| 998 |
GI_TEST_EXTERN |
| 999 |
void gi_marshalling_tests_length_array_utf8_container_inout (const gchar ***array_inout, size_t *inout_length); |
| 1000 |
|
| 1001 |
GI_TEST_EXTERN |
| 1002 |
void gi_marshalling_tests_length_array_utf8_full_inout (gchar ***array_inout, size_t *inout_length); |
| 1003 |
|
| 1004 |
GI_TEST_EXTERN |
| 1005 |
void gi_marshalling_tests_length_array_utf8_optional_inout (int *inout_length, char **array_inout[]); |
| 1006 |
|
| 1007 |
GI_TEST_EXTERN |
| 1008 |
const gchar *const *gi_marshalling_tests_zero_terminated_array_utf8_none_return (void); |
| 1009 |
|
| 1010 |
GI_TEST_EXTERN |
| 1011 |
const gchar **gi_marshalling_tests_zero_terminated_array_utf8_container_return (void); |
| 1012 |
|
| 1013 |
GI_TEST_EXTERN |
| 1014 |
gchar **gi_marshalling_tests_zero_terminated_array_utf8_full_return (void); |
| 1015 |
|
| 1016 |
GI_TEST_EXTERN |
| 1017 |
void gi_marshalling_tests_zero_terminated_array_utf8_none_in (const gchar *const *array, gchar *extra); |
| 1018 |
|
| 1019 |
GI_TEST_EXTERN |
| 1020 |
void gi_marshalling_tests_zero_terminated_array_utf8_container_in (const gchar **array, gchar *extra); |
| 1021 |
|
| 1022 |
GI_TEST_EXTERN |
| 1023 |
void gi_marshalling_tests_zero_terminated_array_utf8_full_in (gchar **array, gchar *extra); |
| 1024 |
|
| 1025 |
GI_TEST_EXTERN |
| 1026 |
void gi_marshalling_tests_zero_terminated_array_utf8_none_out (const gchar *const **array_out); |
| 1027 |
|
| 1028 |
GI_TEST_EXTERN |
| 1029 |
void gi_marshalling_tests_zero_terminated_array_utf8_container_out (const gchar ***array_out); |
| 1030 |
|
| 1031 |
GI_TEST_EXTERN |
| 1032 |
void gi_marshalling_tests_zero_terminated_array_utf8_full_out (gchar ***array_out); |
| 1033 |
|
| 1034 |
GI_TEST_EXTERN |
| 1035 |
void gi_marshalling_tests_zero_terminated_array_utf8_none_inout (const gchar *const **array_inout); |
| 1036 |
|
| 1037 |
GI_TEST_EXTERN |
| 1038 |
void gi_marshalling_tests_zero_terminated_array_utf8_container_inout (const gchar ***array_inout); |
| 1039 |
|
| 1040 |
GI_TEST_EXTERN |
| 1041 |
void gi_marshalling_tests_zero_terminated_array_utf8_full_inout (gchar ***array_inout); |
| 1042 |
|
| 1043 |
GI_TEST_EXTERN |
| 1044 |
const gchar *const *gi_marshalling_tests_fixed_array_utf8_none_return (void); |
| 1045 |
|
| 1046 |
GI_TEST_EXTERN |
| 1047 |
const gchar **gi_marshalling_tests_fixed_array_utf8_container_return (void); |
| 1048 |
|
| 1049 |
GI_TEST_EXTERN |
| 1050 |
gchar **gi_marshalling_tests_fixed_array_utf8_full_return (void); |
| 1051 |
|
| 1052 |
GI_TEST_EXTERN |
| 1053 |
void gi_marshalling_tests_fixed_array_utf8_none_in (const gchar *const *array); |
| 1054 |
|
| 1055 |
GI_TEST_EXTERN |
| 1056 |
void gi_marshalling_tests_fixed_array_utf8_container_in (const gchar **array); |
| 1057 |
|
| 1058 |
GI_TEST_EXTERN |
| 1059 |
void gi_marshalling_tests_fixed_array_utf8_full_in (gchar **array); |
| 1060 |
|
| 1061 |
GI_TEST_EXTERN |
| 1062 |
void gi_marshalling_tests_fixed_array_utf8_none_out (const gchar *const **array_out); |
| 1063 |
|
| 1064 |
GI_TEST_EXTERN |
| 1065 |
void gi_marshalling_tests_fixed_array_utf8_container_out (const gchar ***array_out); |
| 1066 |
|
| 1067 |
GI_TEST_EXTERN |
| 1068 |
void gi_marshalling_tests_fixed_array_utf8_full_out (gchar ***array_out); |
| 1069 |
|
| 1070 |
GI_TEST_EXTERN |
| 1071 |
void gi_marshalling_tests_fixed_array_utf8_none_inout (const gchar *const **array_inout); |
| 1072 |
|
| 1073 |
GI_TEST_EXTERN |
| 1074 |
void gi_marshalling_tests_fixed_array_utf8_container_inout (const gchar ***array_inout); |
| 1075 |
|
| 1076 |
GI_TEST_EXTERN |
| 1077 |
void gi_marshalling_tests_fixed_array_utf8_full_inout (gchar ***array_inout); |
| 1078 |
|
| 1079 |
/* GArray */ |
| 1080 |
|
| 1081 |
GI_TEST_EXTERN |
| 1082 |
GArray *gi_marshalling_tests_garray_int_none_return (void); |
| 1083 |
|
| 1084 |
GI_TEST_EXTERN |
| 1085 |
GArray *gi_marshalling_tests_garray_uint64_none_return (void); |
| 1086 |
|
| 1087 |
GI_TEST_EXTERN |
| 1088 |
GArray *gi_marshalling_tests_garray_enum_none_return (void); |
| 1089 |
|
| 1090 |
GI_TEST_EXTERN |
| 1091 |
GArray *gi_marshalling_tests_garray_utf8_none_return (void); |
| 1092 |
|
| 1093 |
GI_TEST_EXTERN |
| 1094 |
GArray *gi_marshalling_tests_garray_utf8_container_return (void); |
| 1095 |
|
| 1096 |
GI_TEST_EXTERN |
| 1097 |
GArray *gi_marshalling_tests_garray_utf8_full_return (void); |
| 1098 |
|
| 1099 |
GI_TEST_EXTERN |
| 1100 |
GArray *gi_marshalling_tests_garray_boxed_struct_full_return (void); |
| 1101 |
|
| 1102 |
GI_TEST_EXTERN |
| 1103 |
void gi_marshalling_tests_garray_int_none_in (GArray *array_); |
| 1104 |
|
| 1105 |
GI_TEST_EXTERN |
| 1106 |
void gi_marshalling_tests_garray_uint64_none_in (GArray *array_); |
| 1107 |
|
| 1108 |
GI_TEST_EXTERN |
| 1109 |
void gi_marshalling_tests_garray_utf8_none_in (GArray *array_); |
| 1110 |
|
| 1111 |
GI_TEST_EXTERN |
| 1112 |
void gi_marshalling_tests_garray_utf8_container_in (GArray *array_); |
| 1113 |
|
| 1114 |
GI_TEST_EXTERN |
| 1115 |
void gi_marshalling_tests_garray_utf8_full_in (GArray *array_); |
| 1116 |
|
| 1117 |
GI_TEST_EXTERN |
| 1118 |
void gi_marshalling_tests_garray_utf8_none_out (GArray **array_); |
| 1119 |
|
| 1120 |
GI_TEST_EXTERN |
| 1121 |
gboolean gi_marshalling_tests_garray_utf8_none_out_uninitialized (GArray **v G_GNUC_UNUSED); |
| 1122 |
|
| 1123 |
GI_TEST_EXTERN |
| 1124 |
void gi_marshalling_tests_garray_utf8_container_out (GArray **array_); |
| 1125 |
|
| 1126 |
GI_TEST_EXTERN |
| 1127 |
gboolean gi_marshalling_tests_garray_utf8_container_out_uninitialized (GArray **v G_GNUC_UNUSED); |
| 1128 |
|
| 1129 |
GI_TEST_EXTERN |
| 1130 |
void gi_marshalling_tests_garray_utf8_full_out (GArray **array_); |
| 1131 |
|
| 1132 |
GI_TEST_EXTERN |
| 1133 |
gboolean gi_marshalling_tests_garray_utf8_full_out_uninitialized (GArray **v G_GNUC_UNUSED); |
| 1134 |
|
| 1135 |
GI_TEST_EXTERN |
| 1136 |
void gi_marshalling_tests_garray_utf8_full_out_caller_allocated (GArray *array_); |
| 1137 |
|
| 1138 |
GI_TEST_EXTERN |
| 1139 |
void gi_marshalling_tests_garray_utf8_none_inout (GArray **array_); |
| 1140 |
|
| 1141 |
GI_TEST_EXTERN |
| 1142 |
void gi_marshalling_tests_garray_utf8_container_inout (GArray **array_); |
| 1143 |
|
| 1144 |
GI_TEST_EXTERN |
| 1145 |
void gi_marshalling_tests_garray_utf8_full_inout (GArray **array_); |
| 1146 |
|
| 1147 |
GI_TEST_EXTERN |
| 1148 |
void gi_marshalling_tests_garray_bool_none_in (GArray *array_); |
| 1149 |
|
| 1150 |
GI_TEST_EXTERN |
| 1151 |
void gi_marshalling_tests_garray_unichar_none_in (GArray *array_); |
| 1152 |
|
| 1153 |
/* GPtrArray */ |
| 1154 |
|
| 1155 |
GI_TEST_EXTERN |
| 1156 |
GPtrArray *gi_marshalling_tests_gptrarray_utf8_none_return (void); |
| 1157 |
|
| 1158 |
GI_TEST_EXTERN |
| 1159 |
GPtrArray *gi_marshalling_tests_gptrarray_utf8_container_return (void); |
| 1160 |
|
| 1161 |
GI_TEST_EXTERN |
| 1162 |
GPtrArray *gi_marshalling_tests_gptrarray_utf8_full_return (void); |
| 1163 |
|
| 1164 |
GI_TEST_EXTERN |
| 1165 |
GPtrArray *gi_marshalling_tests_gptrarray_boxed_struct_full_return (void); |
| 1166 |
|
| 1167 |
GI_TEST_EXTERN |
| 1168 |
void gi_marshalling_tests_gptrarray_utf8_none_in (GPtrArray *parray_); |
| 1169 |
|
| 1170 |
GI_TEST_EXTERN |
| 1171 |
void gi_marshalling_tests_gptrarray_utf8_container_in (GPtrArray *parray_); |
| 1172 |
|
| 1173 |
GI_TEST_EXTERN |
| 1174 |
void gi_marshalling_tests_gptrarray_utf8_full_in (GPtrArray *parray_); |
| 1175 |
|
| 1176 |
GI_TEST_EXTERN |
| 1177 |
void gi_marshalling_tests_gptrarray_utf8_none_out (GPtrArray **parray_); |
| 1178 |
|
| 1179 |
GI_TEST_EXTERN |
| 1180 |
gboolean gi_marshalling_tests_gptrarray_utf8_none_out_uninitialized (GPtrArray **v G_GNUC_UNUSED); |
| 1181 |
|
| 1182 |
GI_TEST_EXTERN |
| 1183 |
void gi_marshalling_tests_gptrarray_utf8_container_out (GPtrArray **parray_); |
| 1184 |
|
| 1185 |
GI_TEST_EXTERN |
| 1186 |
gboolean gi_marshalling_tests_gptrarray_utf8_container_out_uninitialized (GPtrArray **v G_GNUC_UNUSED); |
| 1187 |
|
| 1188 |
GI_TEST_EXTERN |
| 1189 |
void gi_marshalling_tests_gptrarray_utf8_full_out (GPtrArray **parray_); |
| 1190 |
|
| 1191 |
GI_TEST_EXTERN |
| 1192 |
gboolean gi_marshalling_tests_gptrarray_utf8_full_out_uninitialized (GPtrArray **v G_GNUC_UNUSED); |
| 1193 |
|
| 1194 |
GI_TEST_EXTERN |
| 1195 |
void gi_marshalling_tests_gptrarray_utf8_none_inout (GPtrArray **parray_); |
| 1196 |
|
| 1197 |
GI_TEST_EXTERN |
| 1198 |
void gi_marshalling_tests_gptrarray_utf8_container_inout (GPtrArray **parray_); |
| 1199 |
|
| 1200 |
GI_TEST_EXTERN |
| 1201 |
void gi_marshalling_tests_gptrarray_utf8_full_inout (GPtrArray **parray_); |
| 1202 |
|
| 1203 |
/* GByteArray */ |
| 1204 |
|
| 1205 |
GI_TEST_EXTERN |
| 1206 |
GByteArray *gi_marshalling_tests_bytearray_full_return (void); |
| 1207 |
|
| 1208 |
GI_TEST_EXTERN |
| 1209 |
void gi_marshalling_tests_bytearray_none_in (GByteArray *v); |
| 1210 |
|
| 1211 |
GI_TEST_EXTERN |
| 1212 |
void gi_marshalling_tests_bytearray_full_out (GByteArray **v); |
| 1213 |
|
| 1214 |
GI_TEST_EXTERN |
| 1215 |
void gi_marshalling_tests_bytearray_full_inout (GByteArray **v); |
| 1216 |
|
| 1217 |
/* GBytes */ |
| 1218 |
|
| 1219 |
GI_TEST_EXTERN |
| 1220 |
GBytes *gi_marshalling_tests_gbytes_full_return (void); |
| 1221 |
|
| 1222 |
GI_TEST_EXTERN |
| 1223 |
void gi_marshalling_tests_gbytes_none_in (GBytes *v); |
| 1224 |
|
| 1225 |
/* GStrv */ |
| 1226 |
|
| 1227 |
GI_TEST_EXTERN |
| 1228 |
GStrv gi_marshalling_tests_gstrv_return (void); |
| 1229 |
|
| 1230 |
GI_TEST_EXTERN |
| 1231 |
void gi_marshalling_tests_gstrv_in (GStrv g_strv); |
| 1232 |
|
| 1233 |
GI_TEST_EXTERN |
| 1234 |
void gi_marshalling_tests_gstrv_out (GStrv *g_strv); |
| 1235 |
|
| 1236 |
GI_TEST_EXTERN |
| 1237 |
gboolean gi_marshalling_tests_gstrv_out_uninitialized (GStrv *v G_GNUC_UNUSED); |
| 1238 |
|
| 1239 |
GI_TEST_EXTERN |
| 1240 |
void gi_marshalling_tests_gstrv_inout (GStrv *g_strv); |
| 1241 |
|
| 1242 |
/* Array of GStrv's */ |
| 1243 |
|
| 1244 |
GI_TEST_EXTERN |
| 1245 |
GStrv *gi_marshalling_tests_length_array_of_gstrv_transfer_full_return (size_t *out_length); |
| 1246 |
|
| 1247 |
GI_TEST_EXTERN |
| 1248 |
GStrv *gi_marshalling_tests_length_array_of_gstrv_transfer_container_return (size_t *out_length); |
| 1249 |
|
| 1250 |
GI_TEST_EXTERN |
| 1251 |
GStrv *gi_marshalling_tests_length_array_of_gstrv_transfer_none_return (size_t *out_length); |
| 1252 |
|
| 1253 |
GI_TEST_EXTERN |
| 1254 |
void gi_marshalling_tests_length_array_of_gstrv_transfer_none_in (GStrv *array, size_t length); |
| 1255 |
|
| 1256 |
GI_TEST_EXTERN |
| 1257 |
void gi_marshalling_tests_length_array_of_gstrv_transfer_container_in (GStrv *array, size_t length); |
| 1258 |
|
| 1259 |
GI_TEST_EXTERN |
| 1260 |
void gi_marshalling_tests_length_array_of_gstrv_transfer_full_in (GStrv *array, size_t length); |
| 1261 |
|
| 1262 |
GI_TEST_EXTERN |
| 1263 |
void gi_marshalling_tests_length_array_of_gstrv_transfer_none_out (GStrv **array_out, size_t *out_length); |
| 1264 |
|
| 1265 |
GI_TEST_EXTERN |
| 1266 |
void gi_marshalling_tests_length_array_of_gstrv_transfer_container_out (GStrv **array_out, size_t *out_length); |
| 1267 |
|
| 1268 |
GI_TEST_EXTERN |
| 1269 |
void gi_marshalling_tests_length_array_of_gstrv_transfer_full_out (GStrv **array_out, size_t *out_length); |
| 1270 |
|
| 1271 |
GI_TEST_EXTERN |
| 1272 |
void gi_marshalling_tests_length_array_of_gstrv_transfer_none_inout (GStrv **array_inout, size_t *inout_length); |
| 1273 |
|
| 1274 |
GI_TEST_EXTERN |
| 1275 |
void gi_marshalling_tests_length_array_of_gstrv_transfer_container_inout (GStrv **array_inout, size_t *inout_length); |
| 1276 |
|
| 1277 |
GI_TEST_EXTERN |
| 1278 |
void gi_marshalling_tests_length_array_of_gstrv_transfer_full_inout (GStrv **array_inout, size_t *inout_length); |
| 1279 |
|
| 1280 |
GI_TEST_EXTERN |
| 1281 |
GStrv *gi_marshalling_tests_zero_terminated_array_of_gstrv_transfer_full_return (void); |
| 1282 |
|
| 1283 |
GI_TEST_EXTERN |
| 1284 |
GStrv *gi_marshalling_tests_zero_terminated_array_of_gstrv_transfer_container_return (void); |
| 1285 |
|
| 1286 |
GI_TEST_EXTERN |
| 1287 |
GStrv *gi_marshalling_tests_zero_terminated_array_of_gstrv_transfer_none_return (void); |
| 1288 |
|
| 1289 |
GI_TEST_EXTERN |
| 1290 |
void gi_marshalling_tests_zero_terminated_array_of_gstrv_transfer_none_in (GStrv *array); |
| 1291 |
|
| 1292 |
GI_TEST_EXTERN |
| 1293 |
void gi_marshalling_tests_zero_terminated_array_of_gstrv_transfer_container_in (GStrv *array); |
| 1294 |
|
| 1295 |
GI_TEST_EXTERN |
| 1296 |
void gi_marshalling_tests_zero_terminated_array_of_gstrv_transfer_full_in (GStrv *array); |
| 1297 |
|
| 1298 |
GI_TEST_EXTERN |
| 1299 |
void gi_marshalling_tests_zero_terminated_array_of_gstrv_transfer_none_out (GStrv **array_out); |
| 1300 |
|
| 1301 |
GI_TEST_EXTERN |
| 1302 |
void gi_marshalling_tests_zero_terminated_array_of_gstrv_transfer_container_out (GStrv **array_out); |
| 1303 |
|
| 1304 |
GI_TEST_EXTERN |
| 1305 |
void gi_marshalling_tests_zero_terminated_array_of_gstrv_transfer_full_out (GStrv **array_out); |
| 1306 |
|
| 1307 |
GI_TEST_EXTERN |
| 1308 |
void gi_marshalling_tests_zero_terminated_array_of_gstrv_transfer_none_inout (GStrv **array_inout); |
| 1309 |
|
| 1310 |
GI_TEST_EXTERN |
| 1311 |
void gi_marshalling_tests_zero_terminated_array_of_gstrv_transfer_container_inout (GStrv **array_inout); |
| 1312 |
|
| 1313 |
GI_TEST_EXTERN |
| 1314 |
void gi_marshalling_tests_zero_terminated_array_of_gstrv_transfer_full_inout (GStrv **array_inout); |
| 1315 |
|
| 1316 |
GI_TEST_EXTERN |
| 1317 |
GStrv *gi_marshalling_tests_fixed_array_of_gstrv_transfer_full_return (void); |
| 1318 |
|
| 1319 |
GI_TEST_EXTERN |
| 1320 |
GStrv *gi_marshalling_tests_fixed_array_of_gstrv_transfer_container_return (void); |
| 1321 |
|
| 1322 |
GI_TEST_EXTERN |
| 1323 |
GStrv *gi_marshalling_tests_fixed_array_of_gstrv_transfer_none_return (void); |
| 1324 |
|
| 1325 |
GI_TEST_EXTERN |
| 1326 |
void gi_marshalling_tests_fixed_array_of_gstrv_transfer_none_in (GStrv *array); |
| 1327 |
|
| 1328 |
GI_TEST_EXTERN |
| 1329 |
void gi_marshalling_tests_fixed_array_of_gstrv_transfer_container_in (GStrv *array); |
| 1330 |
|
| 1331 |
GI_TEST_EXTERN |
| 1332 |
void gi_marshalling_tests_fixed_array_of_gstrv_transfer_full_in (GStrv *array); |
| 1333 |
|
| 1334 |
GI_TEST_EXTERN |
| 1335 |
void gi_marshalling_tests_fixed_array_of_gstrv_transfer_none_out (GStrv **array_out); |
| 1336 |
|
| 1337 |
GI_TEST_EXTERN |
| 1338 |
void gi_marshalling_tests_fixed_array_of_gstrv_transfer_container_out (GStrv **array_out); |
| 1339 |
|
| 1340 |
GI_TEST_EXTERN |
| 1341 |
void gi_marshalling_tests_fixed_array_of_gstrv_transfer_full_out (GStrv **array_out); |
| 1342 |
|
| 1343 |
GI_TEST_EXTERN |
| 1344 |
void gi_marshalling_tests_fixed_array_of_gstrv_transfer_none_inout (GStrv **array_inout); |
| 1345 |
|
| 1346 |
GI_TEST_EXTERN |
| 1347 |
void gi_marshalling_tests_fixed_array_of_gstrv_transfer_container_inout (GStrv **array_inout); |
| 1348 |
|
| 1349 |
GI_TEST_EXTERN |
| 1350 |
void gi_marshalling_tests_fixed_array_of_gstrv_transfer_full_inout (GStrv **array_inout); |
| 1351 |
|
| 1352 |
/* GList */ |
| 1353 |
|
| 1354 |
GI_TEST_EXTERN |
| 1355 |
GList *gi_marshalling_tests_glist_int_none_return (void); |
| 1356 |
|
| 1357 |
GI_TEST_EXTERN |
| 1358 |
GList *gi_marshalling_tests_glist_uint32_none_return (void); |
| 1359 |
|
| 1360 |
GI_TEST_EXTERN |
| 1361 |
GList *gi_marshalling_tests_glist_utf8_none_return (void); |
| 1362 |
|
| 1363 |
GI_TEST_EXTERN |
| 1364 |
GList *gi_marshalling_tests_glist_utf8_container_return (void); |
| 1365 |
|
| 1366 |
GI_TEST_EXTERN |
| 1367 |
GList *gi_marshalling_tests_glist_utf8_full_return (void); |
| 1368 |
|
| 1369 |
GI_TEST_EXTERN |
| 1370 |
void gi_marshalling_tests_glist_int_none_in (GList *list); |
| 1371 |
|
| 1372 |
GI_TEST_EXTERN |
| 1373 |
void gi_marshalling_tests_glist_uint32_none_in (GList *list); |
| 1374 |
|
| 1375 |
GI_TEST_EXTERN |
| 1376 |
void gi_marshalling_tests_glist_utf8_none_in (GList *list); |
| 1377 |
|
| 1378 |
GI_TEST_EXTERN |
| 1379 |
void gi_marshalling_tests_glist_utf8_container_in (GList *list); |
| 1380 |
|
| 1381 |
GI_TEST_EXTERN |
| 1382 |
void gi_marshalling_tests_glist_utf8_full_in (GList *list); |
| 1383 |
|
| 1384 |
GI_TEST_EXTERN |
| 1385 |
void gi_marshalling_tests_glist_utf8_none_out (GList **list); |
| 1386 |
|
| 1387 |
GI_TEST_EXTERN |
| 1388 |
gboolean gi_marshalling_tests_glist_utf8_none_out_uninitialized (GList **v G_GNUC_UNUSED); |
| 1389 |
|
| 1390 |
GI_TEST_EXTERN |
| 1391 |
void gi_marshalling_tests_glist_utf8_container_out (GList **list); |
| 1392 |
|
| 1393 |
GI_TEST_EXTERN |
| 1394 |
gboolean gi_marshalling_tests_glist_utf8_container_out_uninitialized (GList **v G_GNUC_UNUSED); |
| 1395 |
|
| 1396 |
GI_TEST_EXTERN |
| 1397 |
void gi_marshalling_tests_glist_utf8_full_out (GList **list); |
| 1398 |
|
| 1399 |
GI_TEST_EXTERN |
| 1400 |
gboolean gi_marshalling_tests_glist_utf8_full_out_uninitialized (GList **v G_GNUC_UNUSED); |
| 1401 |
|
| 1402 |
GI_TEST_EXTERN |
| 1403 |
void gi_marshalling_tests_glist_utf8_none_inout (GList **list); |
| 1404 |
|
| 1405 |
GI_TEST_EXTERN |
| 1406 |
void gi_marshalling_tests_glist_utf8_container_inout (GList **list); |
| 1407 |
|
| 1408 |
GI_TEST_EXTERN |
| 1409 |
void gi_marshalling_tests_glist_utf8_full_inout (GList **list); |
| 1410 |
|
| 1411 |
/* GSList */ |
| 1412 |
|
| 1413 |
GI_TEST_EXTERN |
| 1414 |
GSList *gi_marshalling_tests_gslist_int_none_return (void); |
| 1415 |
|
| 1416 |
GI_TEST_EXTERN |
| 1417 |
GSList *gi_marshalling_tests_gslist_utf8_none_return (void); |
| 1418 |
|
| 1419 |
GI_TEST_EXTERN |
| 1420 |
GSList *gi_marshalling_tests_gslist_utf8_container_return (void); |
| 1421 |
|
| 1422 |
GI_TEST_EXTERN |
| 1423 |
GSList *gi_marshalling_tests_gslist_utf8_full_return (void); |
| 1424 |
|
| 1425 |
GI_TEST_EXTERN |
| 1426 |
void gi_marshalling_tests_gslist_int_none_in (GSList *list); |
| 1427 |
|
| 1428 |
GI_TEST_EXTERN |
| 1429 |
void gi_marshalling_tests_gslist_utf8_none_in (GSList *list); |
| 1430 |
|
| 1431 |
GI_TEST_EXTERN |
| 1432 |
void gi_marshalling_tests_gslist_utf8_container_in (GSList *list); |
| 1433 |
|
| 1434 |
GI_TEST_EXTERN |
| 1435 |
void gi_marshalling_tests_gslist_utf8_full_in (GSList *list); |
| 1436 |
|
| 1437 |
GI_TEST_EXTERN |
| 1438 |
void gi_marshalling_tests_gslist_utf8_none_out (GSList **list); |
| 1439 |
|
| 1440 |
GI_TEST_EXTERN |
| 1441 |
gboolean gi_marshalling_tests_gslist_utf8_none_out_uninitialized (GSList **v G_GNUC_UNUSED); |
| 1442 |
|
| 1443 |
GI_TEST_EXTERN |
| 1444 |
void gi_marshalling_tests_gslist_utf8_container_out (GSList **list); |
| 1445 |
|
| 1446 |
GI_TEST_EXTERN |
| 1447 |
gboolean gi_marshalling_tests_gslist_utf8_container_out_uninitialized (GSList **v G_GNUC_UNUSED); |
| 1448 |
|
| 1449 |
GI_TEST_EXTERN |
| 1450 |
void gi_marshalling_tests_gslist_utf8_full_out (GSList **list); |
| 1451 |
|
| 1452 |
GI_TEST_EXTERN |
| 1453 |
gboolean gi_marshalling_tests_gslist_utf8_full_out_uninitialized (GSList **v G_GNUC_UNUSED); |
| 1454 |
|
| 1455 |
GI_TEST_EXTERN |
| 1456 |
void gi_marshalling_tests_gslist_utf8_none_inout (GSList **list); |
| 1457 |
|
| 1458 |
GI_TEST_EXTERN |
| 1459 |
void gi_marshalling_tests_gslist_utf8_container_inout (GSList **list); |
| 1460 |
|
| 1461 |
GI_TEST_EXTERN |
| 1462 |
void gi_marshalling_tests_gslist_utf8_full_inout (GSList **list); |
| 1463 |
|
| 1464 |
/* GHashTable */ |
| 1465 |
|
| 1466 |
GI_TEST_EXTERN |
| 1467 |
GHashTable *gi_marshalling_tests_ghashtable_int_none_return (void); |
| 1468 |
|
| 1469 |
GI_TEST_EXTERN |
| 1470 |
GHashTable *gi_marshalling_tests_ghashtable_utf8_none_return (void); |
| 1471 |
|
| 1472 |
GI_TEST_EXTERN |
| 1473 |
GHashTable *gi_marshalling_tests_ghashtable_utf8_container_return (void); |
| 1474 |
|
| 1475 |
GI_TEST_EXTERN |
| 1476 |
GHashTable *gi_marshalling_tests_ghashtable_utf8_full_return (void); |
| 1477 |
|
| 1478 |
GI_TEST_EXTERN |
| 1479 |
void gi_marshalling_tests_ghashtable_int_none_in (GHashTable *hash_table); |
| 1480 |
|
| 1481 |
GI_TEST_EXTERN |
| 1482 |
void gi_marshalling_tests_ghashtable_utf8_none_in (GHashTable *hash_table); |
| 1483 |
|
| 1484 |
GI_TEST_EXTERN |
| 1485 |
void gi_marshalling_tests_ghashtable_double_in (GHashTable *hash_table); |
| 1486 |
|
| 1487 |
GI_TEST_EXTERN |
| 1488 |
void gi_marshalling_tests_ghashtable_float_in (GHashTable *hash_table); |
| 1489 |
|
| 1490 |
GI_TEST_EXTERN |
| 1491 |
void gi_marshalling_tests_ghashtable_int64_in (GHashTable *hash_table); |
| 1492 |
|
| 1493 |
GI_TEST_EXTERN |
| 1494 |
void gi_marshalling_tests_ghashtable_uint64_in (GHashTable *hash_table); |
| 1495 |
|
| 1496 |
GI_TEST_EXTERN |
| 1497 |
void gi_marshalling_tests_ghashtable_utf8_container_in (GHashTable *hash_table); |
| 1498 |
|
| 1499 |
GI_TEST_EXTERN |
| 1500 |
void gi_marshalling_tests_ghashtable_utf8_full_in (GHashTable *hash_table); |
| 1501 |
|
| 1502 |
GI_TEST_EXTERN |
| 1503 |
void gi_marshalling_tests_ghashtable_utf8_none_out (GHashTable **hash_table); |
| 1504 |
|
| 1505 |
GI_TEST_EXTERN |
| 1506 |
gboolean gi_marshalling_tests_ghashtable_utf8_none_out_uninitialized (GHashTable **v G_GNUC_UNUSED); |
| 1507 |
|
| 1508 |
GI_TEST_EXTERN |
| 1509 |
void gi_marshalling_tests_ghashtable_utf8_container_out (GHashTable **hash_table); |
| 1510 |
|
| 1511 |
GI_TEST_EXTERN |
| 1512 |
gboolean gi_marshalling_tests_ghashtable_utf8_container_out_uninitialized (GHashTable **v G_GNUC_UNUSED); |
| 1513 |
|
| 1514 |
GI_TEST_EXTERN |
| 1515 |
void gi_marshalling_tests_ghashtable_utf8_full_out (GHashTable **hash_table); |
| 1516 |
|
| 1517 |
GI_TEST_EXTERN |
| 1518 |
gboolean gi_marshalling_tests_ghashtable_utf8_full_out_uninitialized (GHashTable **v G_GNUC_UNUSED); |
| 1519 |
|
| 1520 |
GI_TEST_EXTERN |
| 1521 |
void gi_marshalling_tests_ghashtable_utf8_none_inout (GHashTable **hash_table); |
| 1522 |
|
| 1523 |
GI_TEST_EXTERN |
| 1524 |
void gi_marshalling_tests_ghashtable_utf8_container_inout (GHashTable **hash_table); |
| 1525 |
|
| 1526 |
GI_TEST_EXTERN |
| 1527 |
void gi_marshalling_tests_ghashtable_utf8_full_inout (GHashTable **hash_table); |
| 1528 |
|
| 1529 |
/* GValue */ |
| 1530 |
|
| 1531 |
GI_TEST_EXTERN |
| 1532 |
GValue *gi_marshalling_tests_gvalue_return (void); |
| 1533 |
|
| 1534 |
GI_TEST_EXTERN |
| 1535 |
GValue *gi_marshalling_tests_gvalue_noncanonical_nan_float (void); |
| 1536 |
|
| 1537 |
GI_TEST_EXTERN |
| 1538 |
GValue *gi_marshalling_tests_gvalue_noncanonical_nan_double (void); |
| 1539 |
|
| 1540 |
GI_TEST_EXTERN |
| 1541 |
void gi_marshalling_tests_gvalue_in (GValue *value); |
| 1542 |
|
| 1543 |
GI_TEST_EXTERN |
| 1544 |
void gi_marshalling_tests_gvalue_int64_in (GValue *value); |
| 1545 |
|
| 1546 |
GI_TEST_EXTERN |
| 1547 |
void gi_marshalling_tests_gvalue_in_with_type (GValue *value, GType type); |
| 1548 |
|
| 1549 |
GI_TEST_EXTERN |
| 1550 |
void gi_marshalling_tests_gvalue_in_with_modification (GValue *value); |
| 1551 |
|
| 1552 |
GI_TEST_EXTERN |
| 1553 |
void gi_marshalling_tests_gvalue_in_enum (GValue *value); |
| 1554 |
|
| 1555 |
GI_TEST_EXTERN |
| 1556 |
void gi_marshalling_tests_gvalue_in_flags (GValue *value); |
| 1557 |
|
| 1558 |
GI_TEST_EXTERN |
| 1559 |
void gi_marshalling_tests_gvalue_out (GValue **value); |
| 1560 |
|
| 1561 |
GI_TEST_EXTERN |
| 1562 |
gboolean gi_marshalling_tests_gvalue_out_uninitialized (GValue **v G_GNUC_UNUSED); |
| 1563 |
|
| 1564 |
GI_TEST_EXTERN |
| 1565 |
void gi_marshalling_tests_gvalue_int64_out (GValue **value); |
| 1566 |
|
| 1567 |
GI_TEST_EXTERN |
| 1568 |
void gi_marshalling_tests_gvalue_out_caller_allocates (GValue *value); |
| 1569 |
|
| 1570 |
GI_TEST_EXTERN |
| 1571 |
void gi_marshalling_tests_gvalue_inout (GValue **value); |
| 1572 |
|
| 1573 |
GI_TEST_EXTERN |
| 1574 |
void gi_marshalling_tests_gvalue_flat_array (guint n_values, |
| 1575 |
const GValue *values); |
| 1576 |
|
| 1577 |
GI_TEST_EXTERN |
| 1578 |
GValue *gi_marshalling_tests_return_gvalue_flat_array (void); |
| 1579 |
|
| 1580 |
GI_TEST_EXTERN |
| 1581 |
GValue *gi_marshalling_tests_return_gvalue_zero_terminated_array (void); |
| 1582 |
|
| 1583 |
GI_TEST_EXTERN |
| 1584 |
GValue *gi_marshalling_tests_gvalue_round_trip (GValue *value); |
| 1585 |
|
| 1586 |
GI_TEST_EXTERN |
| 1587 |
GValue *gi_marshalling_tests_gvalue_copy (GValue *value); |
| 1588 |
|
| 1589 |
GI_TEST_EXTERN |
| 1590 |
GValue *gi_marshalling_tests_gvalue_flat_array_round_trip (const GValue one, |
| 1591 |
const GValue two, |
| 1592 |
const GValue three); |
| 1593 |
|
| 1594 |
GI_TEST_EXTERN |
| 1595 |
void gi_marshalling_tests_gvalue_float (const GValue *float_value, const GValue *double_value); |
| 1596 |
|
| 1597 |
/* GClosure */ |
| 1598 |
|
| 1599 |
GI_TEST_EXTERN |
| 1600 |
void gi_marshalling_tests_gclosure_in (GClosure *closure); |
| 1601 |
|
| 1602 |
GI_TEST_EXTERN |
| 1603 |
GClosure *gi_marshalling_tests_gclosure_return (void); |
| 1604 |
|
| 1605 |
/* Callback return values */ |
| 1606 |
|
| 1607 |
/** |
| 1608 |
* GIMarshallingTestsCallbackReturnValueOnly: |
| 1609 |
*/ |
| 1610 |
typedef glong (*GIMarshallingTestsCallbackReturnValueOnly) (void); |
| 1611 |
|
| 1612 |
GI_TEST_EXTERN |
| 1613 |
glong gi_marshalling_tests_callback_return_value_only (GIMarshallingTestsCallbackReturnValueOnly callback); |
| 1614 |
|
| 1615 |
/** |
| 1616 |
* GIMarshallingTestsCallbackOneOutParameter: |
| 1617 |
* @a: (out): |
| 1618 |
*/ |
| 1619 |
typedef void (*GIMarshallingTestsCallbackOneOutParameter) (gfloat *a); |
| 1620 |
|
| 1621 |
GI_TEST_EXTERN |
| 1622 |
void gi_marshalling_tests_callback_one_out_parameter (GIMarshallingTestsCallbackOneOutParameter callback, |
| 1623 |
gfloat *a); |
| 1624 |
|
| 1625 |
/** |
| 1626 |
* GIMarshallingTestsCallbackMultipleOutParameters: |
| 1627 |
* @a: (out): |
| 1628 |
* @b: (out): |
| 1629 |
*/ |
| 1630 |
typedef void (*GIMarshallingTestsCallbackMultipleOutParameters) (gfloat *a, gfloat *b); |
| 1631 |
|
| 1632 |
GI_TEST_EXTERN |
| 1633 |
void gi_marshalling_tests_callback_multiple_out_parameters (GIMarshallingTestsCallbackMultipleOutParameters callback, |
| 1634 |
gfloat *a, |
| 1635 |
gfloat *b); |
| 1636 |
|
| 1637 |
/** |
| 1638 |
* GIMarshallingTestsCallbackReturnValueAndOneOutParameter: |
| 1639 |
* @a: (out): |
| 1640 |
*/ |
| 1641 |
typedef glong (*GIMarshallingTestsCallbackReturnValueAndOneOutParameter) (glong *a); |
| 1642 |
|
| 1643 |
GI_TEST_EXTERN |
| 1644 |
glong gi_marshalling_tests_callback_return_value_and_one_out_parameter (GIMarshallingTestsCallbackReturnValueAndOneOutParameter callback, |
| 1645 |
glong *a); |
| 1646 |
|
| 1647 |
/** |
| 1648 |
* GIMarshallingTestsCallbackReturnValueAndMultipleOutParameters: |
| 1649 |
* @a: (out): |
| 1650 |
* @b: (out): |
| 1651 |
*/ |
| 1652 |
typedef glong (*GIMarshallingTestsCallbackReturnValueAndMultipleOutParameters) (glong *a, glong *b); |
| 1653 |
|
| 1654 |
GI_TEST_EXTERN |
| 1655 |
glong gi_marshalling_tests_callback_return_value_and_multiple_out_parameters (GIMarshallingTestsCallbackReturnValueAndMultipleOutParameters callback, |
| 1656 |
glong *a, |
| 1657 |
glong *b); |
| 1658 |
|
| 1659 |
/** |
| 1660 |
* GIMarshallingTestsCallbackOwnedBoxed |
| 1661 |
* @box: (transfer none): the boxed structure. |
| 1662 |
*/ |
| 1663 |
typedef void (*GIMarshallingTestsCallbackOwnedBoxed) (GIMarshallingTestsBoxedStruct *box, |
| 1664 |
void *user_data); |
| 1665 |
|
| 1666 |
GI_TEST_EXTERN |
| 1667 |
glong gi_marshalling_tests_callback_owned_boxed (GIMarshallingTestsCallbackOwnedBoxed callback, |
| 1668 |
void *callback_data); |
| 1669 |
|
| 1670 |
/** |
| 1671 |
* GIMarshallingTestsCallbackWithTwoParametersAndUserData: |
| 1672 |
* @a: |
| 1673 |
* @b: |
| 1674 |
* @user_data: (closure): |
| 1675 |
*/ |
| 1676 |
typedef void (*GIMarshallingTestsCallbackWithTwoParametersAndUserData) (gint a, |
| 1677 |
gint b, |
| 1678 |
gpointer user_data); |
| 1679 |
|
| 1680 |
GI_TEST_EXTERN |
| 1681 |
void gi_marshalling_tests_callback_user_data_after_callback (gint a, |
| 1682 |
gint b, |
| 1683 |
GIMarshallingTestsCallbackWithTwoParametersAndUserData callback, |
| 1684 |
gpointer user_data); |
| 1685 |
|
| 1686 |
GI_TEST_EXTERN |
| 1687 |
void gi_marshalling_tests_callback_user_data_before_callback (gint a, |
| 1688 |
gint b, |
| 1689 |
gpointer user_data, |
| 1690 |
GIMarshallingTestsCallbackWithTwoParametersAndUserData callback); |
| 1691 |
|
| 1692 |
/* Pointer */ |
| 1693 |
|
| 1694 |
GI_TEST_EXTERN |
| 1695 |
gpointer gi_marshalling_tests_pointer_in_return (gpointer pointer); |
| 1696 |
|
| 1697 |
/* Structure */ |
| 1698 |
|
| 1699 |
struct _GIMarshallingTestsSimpleStruct |
| 1700 |
{ |
| 1701 |
glong long_; |
| 1702 |
gint8 int8; |
| 1703 |
}; |
| 1704 |
|
| 1705 |
typedef struct |
| 1706 |
{ |
| 1707 |
GIMarshallingTestsSimpleStruct simple_struct; |
| 1708 |
} GIMarshallingTestsNestedStruct; |
| 1709 |
|
| 1710 |
typedef struct |
| 1711 |
{ |
| 1712 |
GIMarshallingTestsNestedStruct *pointer; |
| 1713 |
} GIMarshallingTestsNotSimpleStruct; |
| 1714 |
|
| 1715 |
GI_TEST_EXTERN |
| 1716 |
GIMarshallingTestsSimpleStruct *gi_marshalling_tests_simple_struct_returnv (void); |
| 1717 |
|
| 1718 |
GI_TEST_EXTERN |
| 1719 |
void gi_marshalling_tests_simple_struct_inv (GIMarshallingTestsSimpleStruct *struct_); |
| 1720 |
|
| 1721 |
GI_TEST_EXTERN |
| 1722 |
void gi_marshalling_tests_simple_struct_method (GIMarshallingTestsSimpleStruct *struct_); |
| 1723 |
|
| 1724 |
typedef struct |
| 1725 |
{ |
| 1726 |
glong long_; |
| 1727 |
} GIMarshallingTestsPointerStruct; |
| 1728 |
|
| 1729 |
GI_TEST_EXTERN |
| 1730 |
GType gi_marshalling_tests_pointer_struct_get_type (void) G_GNUC_CONST; |
| 1731 |
|
| 1732 |
GI_TEST_EXTERN |
| 1733 |
GIMarshallingTestsPointerStruct *gi_marshalling_tests_pointer_struct_returnv (void); |
| 1734 |
|
| 1735 |
GI_TEST_EXTERN |
| 1736 |
void gi_marshalling_tests_pointer_struct_inv (GIMarshallingTestsPointerStruct *struct_); |
| 1737 |
|
| 1738 |
struct _GIMarshallingTestsBoxedStruct |
| 1739 |
{ |
| 1740 |
glong long_; |
| 1741 |
gchar *string_; |
| 1742 |
GStrv g_strv; |
| 1743 |
}; |
| 1744 |
|
| 1745 |
GI_TEST_EXTERN |
| 1746 |
GType gi_marshalling_tests_boxed_struct_get_type (void) G_GNUC_CONST; |
| 1747 |
|
| 1748 |
GI_TEST_EXTERN |
| 1749 |
GIMarshallingTestsBoxedStruct *gi_marshalling_tests_boxed_struct_new (void); |
| 1750 |
|
| 1751 |
GI_TEST_EXTERN |
| 1752 |
GIMarshallingTestsBoxedStruct *gi_marshalling_tests_boxed_struct_returnv (void); |
| 1753 |
|
| 1754 |
GI_TEST_EXTERN |
| 1755 |
void gi_marshalling_tests_boxed_struct_inv (GIMarshallingTestsBoxedStruct *struct_); |
| 1756 |
|
| 1757 |
GI_TEST_EXTERN |
| 1758 |
void gi_marshalling_tests_boxed_struct_out (GIMarshallingTestsBoxedStruct **struct_); |
| 1759 |
|
| 1760 |
GI_TEST_EXTERN |
| 1761 |
gboolean gi_marshalling_tests_boxed_struct_out_uninitialized (GIMarshallingTestsBoxedStruct **v G_GNUC_UNUSED); |
| 1762 |
|
| 1763 |
GI_TEST_EXTERN |
| 1764 |
void gi_marshalling_tests_boxed_struct_inout (GIMarshallingTestsBoxedStruct **struct_); |
| 1765 |
|
| 1766 |
/** |
| 1767 |
* GIMarshallingTestsPointerArrayStruct: |
| 1768 |
* @array: a #GArray of #guint8 elements. |
| 1769 |
*/ |
| 1770 |
typedef struct |
| 1771 |
{ |
| 1772 |
GArray *array; |
| 1773 |
gint ref_count; |
| 1774 |
} GIMarshallingTestsPointerArrayStruct; |
| 1775 |
|
| 1776 |
GI_TEST_EXTERN |
| 1777 |
GType gi_marshalling_tests_pointer_array_struct_get_type (void) G_GNUC_CONST; |
| 1778 |
|
| 1779 |
GI_TEST_EXTERN |
| 1780 |
GIMarshallingTestsPointerArrayStruct *gi_marshalling_tests_pointer_array_struct_with_uint8_array (void); |
| 1781 |
|
| 1782 |
typedef union |
| 1783 |
{ |
| 1784 |
glong long_; |
| 1785 |
} GIMarshallingTestsUnion; |
| 1786 |
|
| 1787 |
typedef union |
| 1788 |
{ |
| 1789 |
glong long_; |
| 1790 |
gsize size; |
| 1791 |
const gchar *str; |
| 1792 |
} GIMarshallingTestsUnregisteredUnion; |
| 1793 |
|
| 1794 |
GI_TEST_EXTERN |
| 1795 |
GType gi_marshalling_tests_union_get_type (void) G_GNUC_CONST; |
| 1796 |
|
| 1797 |
GI_TEST_EXTERN |
| 1798 |
GIMarshallingTestsUnion *gi_marshalling_tests_union_returnv (void); |
| 1799 |
|
| 1800 |
GI_TEST_EXTERN |
| 1801 |
void gi_marshalling_tests_union_inv (GIMarshallingTestsUnion *union_); |
| 1802 |
|
| 1803 |
GI_TEST_EXTERN |
| 1804 |
void gi_marshalling_tests_union_method (GIMarshallingTestsUnion *union_); |
| 1805 |
|
| 1806 |
typedef enum |
| 1807 |
{ |
| 1808 |
GI_MARSHALLING_TESTS_STRUCTURED_UNION_TYPE_NONE, |
| 1809 |
GI_MARSHALLING_TESTS_STRUCTURED_UNION_TYPE_SIMPLE_STRUCT, |
| 1810 |
GI_MARSHALLING_TESTS_STRUCTURED_UNION_TYPE_NESTED_STRUCT, |
| 1811 |
GI_MARSHALLING_TESTS_STRUCTURED_UNION_TYPE_POINTER_STRUCT, |
| 1812 |
GI_MARSHALLING_TESTS_STRUCTURED_UNION_TYPE_BOXED_STRUCT, |
| 1813 |
GI_MARSHALLING_TESTS_STRUCTURED_UNION_TYPE_BOXED_STRUCT_PTR, |
| 1814 |
GI_MARSHALLING_TESTS_STRUCTURED_UNION_TYPE_SINGLE_UNION, |
| 1815 |
} GIMarshallingTestsStructuredUnionType; |
| 1816 |
|
| 1817 |
typedef struct |
| 1818 |
{ |
| 1819 |
GIMarshallingTestsStructuredUnionType type; |
| 1820 |
GIMarshallingTestsSimpleStruct parent; |
| 1821 |
} GIMarshallingTestsStructuredUnionSimpleStruct; |
| 1822 |
|
| 1823 |
typedef struct |
| 1824 |
{ |
| 1825 |
GIMarshallingTestsStructuredUnionType type; |
| 1826 |
GIMarshallingTestsNestedStruct parent; |
| 1827 |
} GIMarshallingTestsStructuredUnionNestedStruct; |
| 1828 |
|
| 1829 |
typedef struct |
| 1830 |
{ |
| 1831 |
GIMarshallingTestsStructuredUnionType type; |
| 1832 |
GIMarshallingTestsPointerStruct parent; |
| 1833 |
} GIMarshallingTestsStructuredUnionPointerStruct; |
| 1834 |
|
| 1835 |
typedef struct |
| 1836 |
{ |
| 1837 |
GIMarshallingTestsStructuredUnionType type; |
| 1838 |
GIMarshallingTestsBoxedStruct parent; |
| 1839 |
} GIMarshallingTestsStructuredUnionBoxedStruct; |
| 1840 |
|
| 1841 |
typedef struct |
| 1842 |
{ |
| 1843 |
GIMarshallingTestsStructuredUnionType type; |
| 1844 |
GIMarshallingTestsBoxedStruct *parent; |
| 1845 |
} GIMarshallingTestsStructuredUnionBoxedStructPtr; |
| 1846 |
|
| 1847 |
typedef struct |
| 1848 |
{ |
| 1849 |
GIMarshallingTestsStructuredUnionType type; |
| 1850 |
GIMarshallingTestsUnion union_; |
| 1851 |
} GIMarshallingTestsStructuredUnionUnionStruct; |
| 1852 |
|
| 1853 |
typedef union |
| 1854 |
{ |
| 1855 |
GIMarshallingTestsStructuredUnionUnionStruct parent; |
| 1856 |
} GIMarshallingTestsStructuredUnionSingleUnion; |
| 1857 |
|
| 1858 |
typedef union |
| 1859 |
{ |
| 1860 |
/*< private >*/ |
| 1861 |
GIMarshallingTestsStructuredUnionType type; |
| 1862 |
|
| 1863 |
GIMarshallingTestsStructuredUnionSimpleStruct simple_struct; |
| 1864 |
GIMarshallingTestsStructuredUnionNestedStruct nested_struct; |
| 1865 |
GIMarshallingTestsStructuredUnionPointerStruct pointer_struct; |
| 1866 |
GIMarshallingTestsStructuredUnionBoxedStruct boxed_struct; |
| 1867 |
GIMarshallingTestsStructuredUnionBoxedStructPtr boxed_struct_ptr; |
| 1868 |
GIMarshallingTestsStructuredUnionSingleUnion single_union; |
| 1869 |
} GIMarshallingTestsStructuredUnion; |
| 1870 |
|
| 1871 |
GI_TEST_EXTERN |
| 1872 |
GType gi_marshalling_tests_structured_union_get_type (void) G_GNUC_CONST; |
| 1873 |
|
| 1874 |
GI_TEST_EXTERN |
| 1875 |
GIMarshallingTestsStructuredUnion *gi_marshalling_tests_structured_union_new (GIMarshallingTestsStructuredUnionType type); |
| 1876 |
|
| 1877 |
/* we want this to clash with a field value name */ |
| 1878 |
GI_TEST_EXTERN |
| 1879 |
GIMarshallingTestsStructuredUnionType gi_marshalling_tests_structured_union_type (GIMarshallingTestsStructuredUnion *structured_union); |
| 1880 |
|
| 1881 |
typedef union |
| 1882 |
{ |
| 1883 |
GIMarshallingTestsStructuredUnionType type; |
| 1884 |
GIMarshallingTestsStructuredUnionSimpleStruct simple_struct1; |
| 1885 |
GIMarshallingTestsStructuredUnionSimpleStruct simple_struct2; |
| 1886 |
} GIMarshallingTestsStructuredUnionSingleType; |
| 1887 |
|
| 1888 |
/* Object */ |
| 1889 |
|
| 1890 |
#define GI_MARSHALLING_TESTS_TYPE_OBJECT (gi_marshalling_tests_object_get_type ()) |
| 1891 |
#define GI_MARSHALLING_TESTS_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GI_MARSHALLING_TESTS_TYPE_OBJECT, GIMarshallingTestsObject)) |
| 1892 |
#define GI_MARSHALLING_TESTS_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GI_MARSHALLING_TESTS_TYPE_OBJECT, GIMarshallingTestsObjectClass)) |
| 1893 |
#define GI_MARSHALLING_TESTS_IS_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GI_MARSHALLING_TESTS_TYPE_OBJECT)) |
| 1894 |
#define GI_MARSHALLING_TESTS_IS_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GI_MARSHALLING_TESTS_TYPE_OBJECT)) |
| 1895 |
#define GI_MARSHALLING_TESTS_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GI_MARSHALLING_TESTS_TYPE_OBJECT, GIMarshallingTestsObjectClass)) |
| 1896 |
|
| 1897 |
typedef struct _GIMarshallingTestsObjectClass GIMarshallingTestsObjectClass; |
| 1898 |
typedef struct _GIMarshallingTestsObject GIMarshallingTestsObject; |
| 1899 |
|
| 1900 |
typedef int (*GIMarshallingTestsCallbackIntInt) (int val, void *user_data); |
| 1901 |
|
| 1902 |
struct _GIMarshallingTestsObjectClass |
| 1903 |
{ |
| 1904 |
GObjectClass parent_class; |
| 1905 |
|
| 1906 |
/** |
| 1907 |
* GIMarshallingTestsObjectClass::method_int8_in: |
| 1908 |
* @in: (in): |
| 1909 |
*/ |
| 1910 |
void (*method_int8_in) (GIMarshallingTestsObject *self, gint8 in); |
| 1911 |
|
| 1912 |
/** |
| 1913 |
* GIMarshallingTestsObjectClass::method_int8_out: |
| 1914 |
* @out: (out): |
| 1915 |
*/ |
| 1916 |
void (*method_int8_out) (GIMarshallingTestsObject *self, gint8 *out); |
| 1917 |
|
| 1918 |
/** |
| 1919 |
* GIMarshallingTestsObjectClass::method_int8_arg_and_out_caller: |
| 1920 |
* @out: (out): |
| 1921 |
*/ |
| 1922 |
void (*method_int8_arg_and_out_caller) (GIMarshallingTestsObject *self, gint8 arg, gint8 *out); |
| 1923 |
|
| 1924 |
/** |
| 1925 |
* GIMarshallingTestsObjectClass::method_int8_arg_and_out_callee: |
| 1926 |
* @out: (out): |
| 1927 |
*/ |
| 1928 |
void (*method_int8_arg_and_out_callee) (GIMarshallingTestsObject *self, gint8 arg, gint8 **out); |
| 1929 |
|
| 1930 |
/** |
| 1931 |
* GIMarshallingTestsObjectClass::method_str_arg_out_ret: |
| 1932 |
* @out: (out): |
| 1933 |
* |
| 1934 |
* Returns: (transfer none) |
| 1935 |
*/ |
| 1936 |
const gchar *(*method_str_arg_out_ret) (GIMarshallingTestsObject *self, const gchar *arg, guint *out); |
| 1937 |
|
| 1938 |
/** |
| 1939 |
* GIMarshallingTestsObjectClass::method_with_default_implementation: |
| 1940 |
* @in: (in): |
| 1941 |
*/ |
| 1942 |
void (*method_with_default_implementation) (GIMarshallingTestsObject *self, gint8 in); |
| 1943 |
|
| 1944 |
/** |
| 1945 |
* GIMarshallingTestsObjectClass::method_deep_hierarchy: |
| 1946 |
* @in: (in): |
| 1947 |
*/ |
| 1948 |
void (*method_deep_hierarchy) (GIMarshallingTestsObject *self, gint8 in); |
| 1949 |
|
| 1950 |
void (*vfunc_with_callback) (GIMarshallingTestsObject *self, |
| 1951 |
GIMarshallingTestsCallbackIntInt callback, |
| 1952 |
void *callback_data); |
| 1953 |
|
| 1954 |
/** |
| 1955 |
* GIMarshallingTestsObjectClass::vfunc_return_value_only: |
| 1956 |
*/ |
| 1957 |
glong (*vfunc_return_value_only) (GIMarshallingTestsObject *self); |
| 1958 |
|
| 1959 |
/** |
| 1960 |
* GIMarshallingTestsObjectClass::vfunc_one_out_parameter: |
| 1961 |
* @a: (out): |
| 1962 |
*/ |
| 1963 |
void (*vfunc_one_out_parameter) (GIMarshallingTestsObject *self, gfloat *a); |
| 1964 |
|
| 1965 |
/** |
| 1966 |
* GIMarshallingTestsObjectClass::vfunc_multiple_out_parameters: |
| 1967 |
* @a: (out): |
| 1968 |
* @b: (out): |
| 1969 |
*/ |
| 1970 |
void (*vfunc_multiple_out_parameters) (GIMarshallingTestsObject *self, gfloat *a, gfloat *b); |
| 1971 |
|
| 1972 |
/** |
| 1973 |
* GIMarshallingTestsObjectClass::vfunc_one_inout_parameter: |
| 1974 |
* @a: (inout): |
| 1975 |
*/ |
| 1976 |
void (*vfunc_one_inout_parameter) (GIMarshallingTestsObject *self, gfloat *a); |
| 1977 |
|
| 1978 |
/** |
| 1979 |
* GIMarshallingTestsObjectClass::vfunc_multiple_inout_parameters: |
| 1980 |
* @a: (inout): |
| 1981 |
* @b: (inout): |
| 1982 |
*/ |
| 1983 |
void (*vfunc_multiple_inout_parameters) (GIMarshallingTestsObject *self, gfloat *a, gfloat *b); |
| 1984 |
|
| 1985 |
/** |
| 1986 |
* GIMarshallingTestsObjectClass::vfunc_caller_allocated_out_parameter: |
| 1987 |
* @a: (out): |
| 1988 |
*/ |
| 1989 |
void (*vfunc_caller_allocated_out_parameter) (GIMarshallingTestsObject *self, GValue *a); |
| 1990 |
|
| 1991 |
/** |
| 1992 |
* GIMarshallingTestsObjectClass::vfunc_array_out_parameter: |
| 1993 |
* @a: (out) (array zero-terminated): |
| 1994 |
*/ |
| 1995 |
void (*vfunc_array_out_parameter) (GIMarshallingTestsObject *self, gfloat **a); |
| 1996 |
|
| 1997 |
/** |
| 1998 |
* GIMarshallingTestsObjectClass::vfunc_return_value_and_one_out_parameter: |
| 1999 |
* @a: (out): |
| 2000 |
*/ |
| 2001 |
glong (*vfunc_return_value_and_one_out_parameter) (GIMarshallingTestsObject *self, glong *a); |
| 2002 |
|
| 2003 |
/** |
| 2004 |
* GIMarshallingTestsObjectClass::vfunc_return_value_and_multiple_out_parameters: |
| 2005 |
* @a: (out): |
| 2006 |
* @b: (out): |
| 2007 |
*/ |
| 2008 |
glong (*vfunc_return_value_and_multiple_out_parameters) (GIMarshallingTestsObject *self, glong *a, glong *b); |
| 2009 |
|
| 2010 |
/** |
| 2011 |
* GIMarshallingTestsObjectClass::vfunc_return_value_and_one_inout_parameter: |
| 2012 |
* @a: (inout): |
| 2013 |
*/ |
| 2014 |
glong (*vfunc_return_value_and_one_inout_parameter) (GIMarshallingTestsObject *self, glong *a); |
| 2015 |
|
| 2016 |
/** |
| 2017 |
* GIMarshallingTestsObjectClass::vfunc_return_value_and_multiple_inout_parameters: |
| 2018 |
* @a: (inout): |
| 2019 |
* @b: (inout): |
| 2020 |
*/ |
| 2021 |
glong (*vfunc_return_value_and_multiple_inout_parameters) (GIMarshallingTestsObject *self, glong *a, glong *b); |
| 2022 |
|
| 2023 |
/** |
| 2024 |
* GIMarshallingTestsObjectClass::vfunc_meth_with_err: |
| 2025 |
* @x: |
| 2026 |
* @error: A #GError |
| 2027 |
*/ |
| 2028 |
gboolean (*vfunc_meth_with_err) (GIMarshallingTestsObject *object, gint x, GError **error); |
| 2029 |
|
| 2030 |
/** |
| 2031 |
* GIMarshallingTestsObjectClass::vfunc_return_enum: |
| 2032 |
*/ |
| 2033 |
GIMarshallingTestsEnum (*vfunc_return_enum) (GIMarshallingTestsObject *self); |
| 2034 |
|
| 2035 |
/** |
| 2036 |
* GIMarshallingTestsObjectClass::vfunc_out_enum: |
| 2037 |
* @_enum: (out): |
| 2038 |
*/ |
| 2039 |
void (*vfunc_out_enum) (GIMarshallingTestsObject *self, GIMarshallingTestsEnum *_enum); |
| 2040 |
|
| 2041 |
/** |
| 2042 |
* GIMarshallingTestsObjectClass::vfunc_return_object_transfer_none: |
| 2043 |
* |
| 2044 |
* Returns: (transfer none) |
| 2045 |
*/ |
| 2046 |
GObject *(*vfunc_return_object_transfer_none) (GIMarshallingTestsObject *self); |
| 2047 |
|
| 2048 |
/** |
| 2049 |
* GIMarshallingTestsObjectClass::vfunc_return_object_transfer_full: |
| 2050 |
* |
| 2051 |
* Returns: (transfer full) |
| 2052 |
*/ |
| 2053 |
GObject *(*vfunc_return_object_transfer_full) (GIMarshallingTestsObject *self); |
| 2054 |
|
| 2055 |
/** |
| 2056 |
* GIMarshallingTestsObjectClass::vfunc_out_object_transfer_none: |
| 2057 |
* @object: (out) (transfer none): |
| 2058 |
*/ |
| 2059 |
void (*vfunc_out_object_transfer_none) (GIMarshallingTestsObject *self, GObject **object); |
| 2060 |
|
| 2061 |
/** |
| 2062 |
* GIMarshallingTestsObjectClass::vfunc_out_object_transfer_full: |
| 2063 |
* @object: (out) (transfer full): |
| 2064 |
*/ |
| 2065 |
void (*vfunc_out_object_transfer_full) (GIMarshallingTestsObject *self, GObject **object); |
| 2066 |
|
| 2067 |
/** |
| 2068 |
* GIMarshallingTestsObjectClass::vfunc_in_object_transfer_none: |
| 2069 |
* @object: (in) (transfer none): |
| 2070 |
*/ |
| 2071 |
void (*vfunc_in_object_transfer_none) (GIMarshallingTestsObject *self, GObject *object); |
| 2072 |
|
| 2073 |
/** |
| 2074 |
* GIMarshallingTestsObjectClass::vfunc_in_object_transfer_full: |
| 2075 |
* @object: (in) (transfer full): |
| 2076 |
*/ |
| 2077 |
void (*vfunc_in_object_transfer_full) (GIMarshallingTestsObject *self, GObject *object); |
| 2078 |
|
| 2079 |
/** |
| 2080 |
* GIMarshallingTestsObjectClass::vfunc_return_flags: |
| 2081 |
*/ |
| 2082 |
GIMarshallingTestsFlags (*vfunc_return_flags) (GIMarshallingTestsObject *self); |
| 2083 |
|
| 2084 |
/** |
| 2085 |
* GIMarshallingTestsObjectClass::vfunc_out_flags: |
| 2086 |
* @flags: (out): |
| 2087 |
*/ |
| 2088 |
void (*vfunc_out_flags) (GIMarshallingTestsObject *self, GIMarshallingTestsFlags *flags); |
| 2089 |
|
| 2090 |
/** |
| 2091 |
* GIMarshallingTestsObjectClass::vfunc_static_name: |
| 2092 |
*/ |
| 2093 |
gchar *(*vfunc_static_name) (void); |
| 2094 |
|
| 2095 |
/** |
| 2096 |
* GIMarshallingTestsObjectClass::vfunc_static_create_new: |
| 2097 |
* @int_: |
| 2098 |
* |
| 2099 |
* Returns: (transfer full): |
| 2100 |
*/ |
| 2101 |
GIMarshallingTestsObject *(*vfunc_static_create_new) (gint int_); |
| 2102 |
|
| 2103 |
/** |
| 2104 |
* GIMarshallingTestsObjectClass::vfunc_static_create_new_out: |
| 2105 |
* @out: (out): |
| 2106 |
* @int_: |
| 2107 |
*/ |
| 2108 |
void (*vfunc_static_create_new_out) (GIMarshallingTestsObject **out, gint int_); |
| 2109 |
}; |
| 2110 |
|
| 2111 |
struct _GIMarshallingTestsObject |
| 2112 |
{ |
| 2113 |
GObject parent_instance; |
| 2114 |
|
| 2115 |
gint int_; |
| 2116 |
}; |
| 2117 |
|
| 2118 |
GI_TEST_EXTERN |
| 2119 |
GType gi_marshalling_tests_object_get_type (void) G_GNUC_CONST; |
| 2120 |
|
| 2121 |
GI_TEST_EXTERN |
| 2122 |
void gi_marshalling_tests_object_static_method (void); |
| 2123 |
|
| 2124 |
GI_TEST_EXTERN |
| 2125 |
void gi_marshalling_tests_object_method (GIMarshallingTestsObject *object); |
| 2126 |
|
| 2127 |
GI_TEST_EXTERN |
| 2128 |
void gi_marshalling_tests_object_overridden_method (GIMarshallingTestsObject *object); |
| 2129 |
|
| 2130 |
GI_TEST_EXTERN |
| 2131 |
GIMarshallingTestsObject *gi_marshalling_tests_object_new (gint int_); |
| 2132 |
|
| 2133 |
GI_TEST_EXTERN |
| 2134 |
GIMarshallingTestsObject *gi_marshalling_tests_object_new_fail (gint int_, GError **error); |
| 2135 |
|
| 2136 |
GI_TEST_EXTERN |
| 2137 |
void gi_marshalling_tests_object_method_array_in (GIMarshallingTestsObject *object, const gint *ints, gint length); |
| 2138 |
|
| 2139 |
GI_TEST_EXTERN |
| 2140 |
void gi_marshalling_tests_object_method_array_out (GIMarshallingTestsObject *object, gint **ints, gint *length); |
| 2141 |
|
| 2142 |
GI_TEST_EXTERN |
| 2143 |
void gi_marshalling_tests_object_method_array_inout (GIMarshallingTestsObject *object, gint **ints, gint *length); |
| 2144 |
|
| 2145 |
GI_TEST_EXTERN |
| 2146 |
const gint *gi_marshalling_tests_object_method_array_return (GIMarshallingTestsObject *object, gint *length); |
| 2147 |
|
| 2148 |
GI_TEST_EXTERN |
| 2149 |
void gi_marshalling_tests_object_method_int8_in (GIMarshallingTestsObject *object, gint8 in); |
| 2150 |
|
| 2151 |
GI_TEST_EXTERN |
| 2152 |
void gi_marshalling_tests_object_method_int8_out (GIMarshallingTestsObject *object, gint8 *out); |
| 2153 |
|
| 2154 |
GI_TEST_EXTERN |
| 2155 |
void gi_marshalling_tests_object_method_int8_arg_and_out_caller (GIMarshallingTestsObject *object, gint8 arg, gint8 *out); |
| 2156 |
|
| 2157 |
GI_TEST_EXTERN |
| 2158 |
void gi_marshalling_tests_object_method_int8_arg_and_out_callee (GIMarshallingTestsObject *object, gint8 arg, gint8 **out); |
| 2159 |
|
| 2160 |
GI_TEST_EXTERN |
| 2161 |
const gchar *gi_marshalling_tests_object_method_str_arg_out_ret (GIMarshallingTestsObject *object, const gchar *arg, guint *out); |
| 2162 |
|
| 2163 |
GI_TEST_EXTERN |
| 2164 |
void gi_marshalling_tests_object_method_with_default_implementation (GIMarshallingTestsObject *object, gint8 in); |
| 2165 |
|
| 2166 |
GI_TEST_EXTERN |
| 2167 |
void gi_marshalling_tests_object_method_variant_array_in (GIMarshallingTestsObject *object, GVariant **in, gsize n_in); |
| 2168 |
|
| 2169 |
GI_TEST_EXTERN |
| 2170 |
glong gi_marshalling_tests_object_vfunc_return_value_only (GIMarshallingTestsObject *self); |
| 2171 |
|
| 2172 |
GI_TEST_EXTERN |
| 2173 |
void gi_marshalling_tests_object_vfunc_one_out_parameter (GIMarshallingTestsObject *self, gfloat *a); |
| 2174 |
|
| 2175 |
GI_TEST_EXTERN |
| 2176 |
void gi_marshalling_tests_object_vfunc_multiple_out_parameters (GIMarshallingTestsObject *self, gfloat *a, gfloat *b); |
| 2177 |
|
| 2178 |
GI_TEST_EXTERN |
| 2179 |
void gi_marshalling_tests_object_vfunc_one_inout_parameter (GIMarshallingTestsObject *self, gfloat *a); |
| 2180 |
|
| 2181 |
GI_TEST_EXTERN |
| 2182 |
void gi_marshalling_tests_object_vfunc_multiple_inout_parameters (GIMarshallingTestsObject *self, gfloat *a, gfloat *b); |
| 2183 |
|
| 2184 |
GI_TEST_EXTERN |
| 2185 |
void gi_marshalling_tests_object_vfunc_caller_allocated_out_parameter (GIMarshallingTestsObject *self, GValue *a); |
| 2186 |
|
| 2187 |
GI_TEST_EXTERN |
| 2188 |
void gi_marshalling_tests_object_vfunc_array_out_parameter (GIMarshallingTestsObject *self, gfloat **a); |
| 2189 |
|
| 2190 |
GI_TEST_EXTERN |
| 2191 |
glong gi_marshalling_tests_object_vfunc_return_value_and_one_out_parameter (GIMarshallingTestsObject *self, glong *a); |
| 2192 |
|
| 2193 |
GI_TEST_EXTERN |
| 2194 |
glong gi_marshalling_tests_object_vfunc_return_value_and_multiple_out_parameters (GIMarshallingTestsObject *self, glong *a, glong *b); |
| 2195 |
|
| 2196 |
GI_TEST_EXTERN |
| 2197 |
glong gi_marshalling_tests_object_vfunc_return_value_and_one_inout_parameter (GIMarshallingTestsObject *self, glong *a); |
| 2198 |
|
| 2199 |
GI_TEST_EXTERN |
| 2200 |
glong gi_marshalling_tests_object_vfunc_return_value_and_multiple_inout_parameters (GIMarshallingTestsObject *self, glong *a, glong *b); |
| 2201 |
|
| 2202 |
GI_TEST_EXTERN |
| 2203 |
gboolean gi_marshalling_tests_object_vfunc_meth_with_error (GIMarshallingTestsObject *object, gint x, GError **error); |
| 2204 |
|
| 2205 |
GI_TEST_EXTERN |
| 2206 |
GIMarshallingTestsEnum gi_marshalling_tests_object_vfunc_return_enum (GIMarshallingTestsObject *self); |
| 2207 |
|
| 2208 |
GI_TEST_EXTERN |
| 2209 |
void gi_marshalling_tests_object_vfunc_out_enum (GIMarshallingTestsObject *self, GIMarshallingTestsEnum *_enum); |
| 2210 |
|
| 2211 |
GI_TEST_EXTERN |
| 2212 |
GIMarshallingTestsFlags gi_marshalling_tests_object_vfunc_return_flags (GIMarshallingTestsObject *self); |
| 2213 |
|
| 2214 |
GI_TEST_EXTERN |
| 2215 |
void gi_marshalling_tests_object_vfunc_out_flags (GIMarshallingTestsObject *self, GIMarshallingTestsFlags *flags); |
| 2216 |
|
| 2217 |
GI_TEST_EXTERN |
| 2218 |
gchar *gi_marshalling_tests_object_vfunc_static_name (void); |
| 2219 |
|
| 2220 |
GI_TEST_EXTERN |
| 2221 |
gchar *gi_marshalling_tests_object_vfunc_static_typed_name (GType gtype); |
| 2222 |
|
| 2223 |
GI_TEST_EXTERN |
| 2224 |
GIMarshallingTestsObject *gi_marshalling_tests_object_vfunc_static_create_new (GType gtype, gint int_); |
| 2225 |
|
| 2226 |
GI_TEST_EXTERN |
| 2227 |
void gi_marshalling_tests_object_vfunc_static_create_new_out (GIMarshallingTestsObject **out, GType gtype, gint int_); |
| 2228 |
|
| 2229 |
GI_TEST_EXTERN |
| 2230 |
void gi_marshalling_tests_object_get_ref_info_for_vfunc_return_object_transfer_none (GIMarshallingTestsObject *self, guint *ref_count, gboolean *is_floating); |
| 2231 |
|
| 2232 |
GI_TEST_EXTERN |
| 2233 |
void gi_marshalling_tests_object_get_ref_info_for_vfunc_return_object_transfer_full (GIMarshallingTestsObject *self, guint *ref_count, gboolean *is_floating); |
| 2234 |
|
| 2235 |
GI_TEST_EXTERN |
| 2236 |
void gi_marshalling_tests_object_get_ref_info_for_vfunc_out_object_transfer_none (GIMarshallingTestsObject *self, guint *ref_count, gboolean *is_floating); |
| 2237 |
|
| 2238 |
GI_TEST_EXTERN |
| 2239 |
void gi_marshalling_tests_object_get_ref_info_for_vfunc_out_object_transfer_full (GIMarshallingTestsObject *self, guint *ref_count, gboolean *is_floating); |
| 2240 |
|
| 2241 |
GI_TEST_EXTERN |
| 2242 |
void gi_marshalling_tests_object_get_ref_info_for_vfunc_in_object_transfer_none (GIMarshallingTestsObject *self, GType type, guint *ref_count, gboolean *is_floating); |
| 2243 |
|
| 2244 |
GI_TEST_EXTERN |
| 2245 |
void gi_marshalling_tests_object_get_ref_info_for_vfunc_in_object_transfer_full (GIMarshallingTestsObject *self, GType type, guint *ref_count, gboolean *is_floating); |
| 2246 |
|
| 2247 |
GI_TEST_EXTERN |
| 2248 |
GIMarshallingTestsObject *gi_marshalling_tests_object_none_return (void); |
| 2249 |
|
| 2250 |
GI_TEST_EXTERN |
| 2251 |
GIMarshallingTestsObject *gi_marshalling_tests_object_full_return (void); |
| 2252 |
|
| 2253 |
GI_TEST_EXTERN |
| 2254 |
void gi_marshalling_tests_object_none_in (GIMarshallingTestsObject *object); |
| 2255 |
|
| 2256 |
GI_TEST_EXTERN |
| 2257 |
void gi_marshalling_tests_object_full_in (GIMarshallingTestsObject *object); |
| 2258 |
|
| 2259 |
GI_TEST_EXTERN |
| 2260 |
void gi_marshalling_tests_object_none_out (GIMarshallingTestsObject **object); |
| 2261 |
|
| 2262 |
GI_TEST_EXTERN |
| 2263 |
gboolean gi_marshalling_tests_object_none_out_uninitialized (GIMarshallingTestsObject **v G_GNUC_UNUSED); |
| 2264 |
|
| 2265 |
GI_TEST_EXTERN |
| 2266 |
void gi_marshalling_tests_object_full_out (GIMarshallingTestsObject **object); |
| 2267 |
|
| 2268 |
GI_TEST_EXTERN |
| 2269 |
gboolean gi_marshalling_tests_object_full_out_uninitialized (GIMarshallingTestsObject **v G_GNUC_UNUSED); |
| 2270 |
|
| 2271 |
GI_TEST_EXTERN |
| 2272 |
void gi_marshalling_tests_object_none_inout (GIMarshallingTestsObject **object); |
| 2273 |
|
| 2274 |
GI_TEST_EXTERN |
| 2275 |
void gi_marshalling_tests_object_full_inout (GIMarshallingTestsObject **object); |
| 2276 |
|
| 2277 |
GI_TEST_EXTERN |
| 2278 |
void gi_marshalling_tests_object_int8_in (GIMarshallingTestsObject *object, gint8 in); |
| 2279 |
|
| 2280 |
GI_TEST_EXTERN |
| 2281 |
void gi_marshalling_tests_object_int8_out (GIMarshallingTestsObject *object, gint8 *out); |
| 2282 |
|
| 2283 |
GI_TEST_EXTERN |
| 2284 |
void gi_marshalling_tests_object_vfunc_with_callback (GIMarshallingTestsObject *object, |
| 2285 |
GIMarshallingTestsCallbackIntInt callback, |
| 2286 |
void *callback_data); |
| 2287 |
|
| 2288 |
GI_TEST_EXTERN |
| 2289 |
void gi_marshalling_tests_object_call_vfunc_with_callback (GIMarshallingTestsObject *object); |
| 2290 |
|
| 2291 |
#define GI_MARSHALLING_TESTS_TYPE_SUB_OBJECT (gi_marshalling_tests_sub_object_get_type ()) |
| 2292 |
#define GI_MARSHALLING_TESTS_SUB_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GI_MARSHALLING_TESTS_TYPE_SUB_OBJECT, GIMarshallingTestsSubObject)) |
| 2293 |
#define GI_MARSHALLING_TESTS_SUB_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GI_MARSHALLING_TESTS_TYPE_SUB_OBJECT, GIMarshallingTestsSubObjectClass)) |
| 2294 |
#define GI_MARSHALLING_TESTS_IS_SUB_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GI_MARSHALLING_TESTS_TYPE_SUB_OBJECT)) |
| 2295 |
#define GI_MARSHALLING_TESTS_IS_SUB_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GI_MARSHALLING_TESTS_TYPE_SUB_OBJECT)) |
| 2296 |
#define GI_MARSHALLING_TESTS_SUB_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GI_MARSHALLING_TESTS_TYPE_SUB_OBJECT, GIMarshallingTestsSubObjectClass)) |
| 2297 |
|
| 2298 |
typedef struct _GIMarshallingTestsSubObjectClass GIMarshallingTestsSubObjectClass; |
| 2299 |
typedef struct _GIMarshallingTestsSubObject GIMarshallingTestsSubObject; |
| 2300 |
|
| 2301 |
struct _GIMarshallingTestsSubObjectClass |
| 2302 |
{ |
| 2303 |
GIMarshallingTestsObjectClass parent_class; |
| 2304 |
}; |
| 2305 |
|
| 2306 |
struct _GIMarshallingTestsSubObject |
| 2307 |
{ |
| 2308 |
GIMarshallingTestsObject parent_instance; |
| 2309 |
}; |
| 2310 |
|
| 2311 |
GI_TEST_EXTERN |
| 2312 |
GType gi_marshalling_tests_sub_object_get_type (void) G_GNUC_CONST; |
| 2313 |
|
| 2314 |
GI_TEST_EXTERN |
| 2315 |
void gi_marshalling_tests_sub_object_sub_method (GIMarshallingTestsSubObject *object); |
| 2316 |
|
| 2317 |
GI_TEST_EXTERN |
| 2318 |
void gi_marshalling_tests_sub_object_overwritten_method (GIMarshallingTestsSubObject *object); |
| 2319 |
|
| 2320 |
#define GI_MARSHALLING_TESTS_TYPE_SUB_SUB_OBJECT (gi_marshalling_tests_sub_sub_object_get_type ()) |
| 2321 |
#define GI_MARSHALLING_TESTS_SUB_SUB_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GI_MARSHALLING_TESTS_TYPE_SUB_SUB_OBJECT, GIMarshallingTestsSubSubObject)) |
| 2322 |
#define GI_MARSHALLING_TESTS_SUB_SUB_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GI_MARSHALLING_TESTS_TYPE_SUB_SUB_OBJECT, GIMarshallingTestsSubSubObjectClass)) |
| 2323 |
#define GI_MARSHALLING_TESTS_IS_SUB_SUB_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GI_MARSHALLING_TESTS_TYPE_SUB_SUB_OBJECT)) |
| 2324 |
#define GI_MARSHALLING_TESTS_IS_SUB_SUB_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GI_MARSHALLING_TESTS_TYPE_SUB_SUB_OBJECT)) |
| 2325 |
#define GI_MARSHALLING_TESTS_SUB_SUB_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GI_MARSHALLING_TESTS_TYPE_SUB_SUB_OBJECT, GIMarshallingTestsSubSubObjectClass)) |
| 2326 |
|
| 2327 |
typedef struct _GIMarshallingTestsSubSubObjectClass GIMarshallingTestsSubSubObjectClass; |
| 2328 |
typedef struct _GIMarshallingTestsSubSubObject GIMarshallingTestsSubSubObject; |
| 2329 |
|
| 2330 |
struct _GIMarshallingTestsSubSubObjectClass |
| 2331 |
{ |
| 2332 |
GIMarshallingTestsSubObjectClass parent_class; |
| 2333 |
}; |
| 2334 |
|
| 2335 |
struct _GIMarshallingTestsSubSubObject |
| 2336 |
{ |
| 2337 |
GIMarshallingTestsSubObject parent_instance; |
| 2338 |
}; |
| 2339 |
|
| 2340 |
GI_TEST_EXTERN |
| 2341 |
GType gi_marshalling_tests_sub_sub_object_get_type (void) G_GNUC_CONST; |
| 2342 |
|
| 2343 |
/* Interfaces */ |
| 2344 |
|
| 2345 |
#define GI_MARSHALLING_TESTS_TYPE_INTERFACE (gi_marshalling_tests_interface_get_type ()) |
| 2346 |
#define GI_MARSHALLING_TESTS_INTERFACE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GI_MARSHALLING_TESTS_TYPE_INTERFACE, GIMarshallingTestsInterface)) |
| 2347 |
#define GI_MARSHALLING_TESTS_IS_INTERFACE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GI_MARSHALLING_TESTS_TYPE_INTERFACE)) |
| 2348 |
#define GI_MARSHALLING_TESTS_INTERFACE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GI_MARSHALLING_TESTS_TYPE_INTERFACE, GIMarshallingTestsInterfaceIface)) |
| 2349 |
|
| 2350 |
typedef struct _GIMarshallingTestsInterface GIMarshallingTestsInterface; |
| 2351 |
typedef struct _GIMarshallingTestsInterfaceIface GIMarshallingTestsInterfaceIface; |
| 2352 |
|
| 2353 |
struct _GIMarshallingTestsInterfaceIface |
| 2354 |
{ |
| 2355 |
GTypeInterface base_iface; |
| 2356 |
|
| 2357 |
/** |
| 2358 |
* GIMarshallingTestsInterfaceIface::test_int8_in: |
| 2359 |
* @in: (in): |
| 2360 |
*/ |
| 2361 |
void (*test_int8_in) (GIMarshallingTestsInterface *self, gint8 in); |
| 2362 |
}; |
| 2363 |
|
| 2364 |
GI_TEST_EXTERN |
| 2365 |
GType gi_marshalling_tests_interface_get_type (void) G_GNUC_CONST; |
| 2366 |
|
| 2367 |
GI_TEST_EXTERN |
| 2368 |
void gi_marshalling_tests_interface_test_int8_in (GIMarshallingTestsInterface *self, gint8 in); |
| 2369 |
|
| 2370 |
GI_TEST_EXTERN |
| 2371 |
void gi_marshalling_tests_test_interface_test_int8_in (GIMarshallingTestsInterface *test_iface, gint8 in); |
| 2372 |
|
| 2373 |
/* GIMarshallingTestsInterfaceImpl is a class that implements |
| 2374 |
GIMarshallingTestsInterface */ |
| 2375 |
|
| 2376 |
#define GI_MARSHALLING_TESTS_TYPE_INTERFACE_IMPL (gi_marshalling_tests_interface_impl_get_type ()) |
| 2377 |
#define GI_MARSHALLING_TESTS_INTERFACE_IMPL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GI_MARSHALLING_TESTS_TYPE_INTERFACE_IMPL, GIMarshallingTestsInterfaceImpl)) |
| 2378 |
#define GI_MARSHALLING_TESTS_INTERFACE_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GI_MARSHALLING_TESTS_TYPE_INTERFACE_IMPL, GIMarshallingTestsInterfaceImplClass)) |
| 2379 |
#define GI_MARSHALLING_TESTS_IS_INTERFACE_IMPL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GI_MARSHALLING_TESTS_TYPE_INTERFACE_IMPL)) |
| 2380 |
#define GI_MARSHALLING_TESTS_IS_INTERFACE_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GI_MARSHALLING_TESTS_TYPE_INTERFACE_IMPL)) |
| 2381 |
#define GI_MARSHALLING_TESTS_INTERFACE_IMPL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GI_MARSHALLING_TESTS_TYPE_INTERFACE_IMPL, GIMarshallingTestsInterfaceImplClass)) |
| 2382 |
|
| 2383 |
typedef struct _GIMarshallingTestsInterfaceImplClass GIMarshallingTestsInterfaceImplClass; |
| 2384 |
typedef struct _GIMarshallingTestsInterfaceImpl GIMarshallingTestsInterfaceImpl; |
| 2385 |
|
| 2386 |
struct _GIMarshallingTestsInterfaceImplClass |
| 2387 |
{ |
| 2388 |
GObjectClass parent_class; |
| 2389 |
}; |
| 2390 |
|
| 2391 |
struct _GIMarshallingTestsInterfaceImpl |
| 2392 |
{ |
| 2393 |
GObject parent_instance; |
| 2394 |
|
| 2395 |
gint int_; |
| 2396 |
}; |
| 2397 |
|
| 2398 |
GI_TEST_EXTERN |
| 2399 |
GType gi_marshalling_tests_interface_impl_get_type (void) G_GNUC_CONST; |
| 2400 |
|
| 2401 |
GI_TEST_EXTERN |
| 2402 |
GIMarshallingTestsInterface *gi_marshalling_tests_interface_impl_get_as_interface (GIMarshallingTestsInterfaceImpl *self); |
| 2403 |
|
| 2404 |
/* GIMarshallingTestsInterface2 allows us testing vfunc clashes when a class' |
| 2405 |
vfunc implementation ambiguously relates to its prototype */ |
| 2406 |
|
| 2407 |
#define GI_MARSHALLING_TESTS_TYPE_INTERFACE2 (gi_marshalling_tests_interface2_get_type ()) |
| 2408 |
#define GI_MARSHALLING_TESTS_INTERFACE2(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GI_MARSHALLING_TESTS_TYPE_INTERFACE2, GIMarshallingTestsInterface2)) |
| 2409 |
#define GI_MARSHALLING_TESTS_IS_INTERFACE2(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GI_MARSHALLING_TESTS_TYPE_INTERFACE2)) |
| 2410 |
#define GI_MARSHALLING_TESTS_INTERFACE2_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GI_MARSHALLING_TESTS_TYPE_INTERFACE2, GIMarshallingTestsInterface2Iface)) |
| 2411 |
|
| 2412 |
typedef struct _GIMarshallingTestsInterface2 GIMarshallingTestsInterface2; |
| 2413 |
typedef struct _GIMarshallingTestsInterface2Iface GIMarshallingTestsInterface2Iface; |
| 2414 |
|
| 2415 |
struct _GIMarshallingTestsInterface2Iface |
| 2416 |
{ |
| 2417 |
GTypeInterface base_iface; |
| 2418 |
|
| 2419 |
/** |
| 2420 |
* GIMarshallingTestsInterface2Iface::test_int8_in: |
| 2421 |
* @in: (in): |
| 2422 |
*/ |
| 2423 |
void (*test_int8_in) (GIMarshallingTestsInterface2 *self, gint8 in); |
| 2424 |
}; |
| 2425 |
|
| 2426 |
GI_TEST_EXTERN |
| 2427 |
GType gi_marshalling_tests_interface2_get_type (void) G_GNUC_CONST; |
| 2428 |
|
| 2429 |
/* GIMarshallingTestsInterface3 tests passing arrays of variants from C to @lang */ |
| 2430 |
|
| 2431 |
#define GI_MARSHALLING_TESTS_TYPE_INTERFACE3 (gi_marshalling_tests_interface3_get_type ()) |
| 2432 |
#define GI_MARSHALLING_TESTS_INTERFACE3(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GI_MARSHALLING_TESTS_TYPE_INTERFACE3, GIMarshallingTestsInterface3)) |
| 2433 |
#define GI_MARSHALLING_TESTS_IS_INTERFACE3(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GI_MARSHALLING_TESTS_TYPE_INTERFACE3)) |
| 2434 |
#define GI_MARSHALLING_TESTS_INTERFACE3_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GI_MARSHALLING_TESTS_TYPE_INTERFACE3, GIMarshallingTestsInterface3Iface)) |
| 2435 |
|
| 2436 |
typedef struct _GIMarshallingTestsInterface3 GIMarshallingTestsInterface3; |
| 2437 |
typedef struct _GIMarshallingTestsInterface3Iface GIMarshallingTestsInterface3Iface; |
| 2438 |
|
| 2439 |
struct _GIMarshallingTestsInterface3Iface |
| 2440 |
{ |
| 2441 |
GTypeInterface base_iface; |
| 2442 |
|
| 2443 |
/** |
| 2444 |
* GIMarshallingTestsInterface3::test_variant_array_in: |
| 2445 |
* @in: (in) (array length=n_in): |
| 2446 |
*/ |
| 2447 |
void (*test_variant_array_in) (GIMarshallingTestsInterface3 *self, GVariant **in, gsize n_in); |
| 2448 |
}; |
| 2449 |
|
| 2450 |
GI_TEST_EXTERN |
| 2451 |
GType gi_marshalling_tests_interface3_get_type (void) G_GNUC_CONST; |
| 2452 |
|
| 2453 |
GI_TEST_EXTERN |
| 2454 |
void gi_marshalling_tests_interface3_test_variant_array_in (GIMarshallingTestsInterface3 *self, GVariant **in, gsize n_in); |
| 2455 |
|
| 2456 |
/* Multiple output arguments */ |
| 2457 |
|
| 2458 |
GI_TEST_EXTERN |
| 2459 |
void gi_marshalling_tests_int_out_out (gint *int0, gint *int1); |
| 2460 |
|
| 2461 |
GI_TEST_EXTERN |
| 2462 |
void gi_marshalling_tests_int_three_in_three_out (gint a, gint b, gint c, gint *out0, gint *out1, gint *out2); |
| 2463 |
|
| 2464 |
GI_TEST_EXTERN |
| 2465 |
gint gi_marshalling_tests_int_return_out (gint *int_); |
| 2466 |
|
| 2467 |
/* Default arguments */ |
| 2468 |
GI_TEST_EXTERN |
| 2469 |
void gi_marshalling_tests_int_two_in_utf8_two_in_with_allow_none (gint a, gint b, const gchar *c, const gchar *d); |
| 2470 |
|
| 2471 |
GI_TEST_EXTERN |
| 2472 |
void gi_marshalling_tests_int_one_in_utf8_two_in_one_allows_none (gint a, const gchar *b, const gchar *c); |
| 2473 |
|
| 2474 |
GI_TEST_EXTERN |
| 2475 |
void gi_marshalling_tests_array_in_utf8_two_in (const gint *ints, gint length, const gchar *a, const gchar *b); |
| 2476 |
|
| 2477 |
GI_TEST_EXTERN |
| 2478 |
void gi_marshalling_tests_array_in_utf8_two_in_out_of_order (gint length, const gchar *a, const gint *ints, const gchar *b); |
| 2479 |
|
| 2480 |
/* GError */ |
| 2481 |
|
| 2482 |
#define GI_MARSHALLING_TESTS_CONSTANT_GERROR_DOMAIN "gi-marshalling-tests-gerror-domain" |
| 2483 |
#define GI_MARSHALLING_TESTS_CONSTANT_GERROR_CODE 5 |
| 2484 |
#define GI_MARSHALLING_TESTS_CONSTANT_GERROR_MESSAGE "gi-marshalling-tests-gerror-message" |
| 2485 |
#define GI_MARSHALLING_TESTS_CONSTANT_GERROR_DEBUG_MESSAGE "we got an error, life is shit" |
| 2486 |
|
| 2487 |
GI_TEST_EXTERN |
| 2488 |
void gi_marshalling_tests_gerror (GError **error); |
| 2489 |
|
| 2490 |
GI_TEST_EXTERN |
| 2491 |
void gi_marshalling_tests_gerror_array_in (gint *in_ints, GError **error); |
| 2492 |
|
| 2493 |
GI_TEST_EXTERN |
| 2494 |
void gi_marshalling_tests_gerror_out (GError **error, gchar **debug); |
| 2495 |
|
| 2496 |
GI_TEST_EXTERN |
| 2497 |
gboolean gi_marshalling_tests_gerror_out_uninitialized (GError **v G_GNUC_UNUSED, gchar **v2 G_GNUC_UNUSED); |
| 2498 |
|
| 2499 |
GI_TEST_EXTERN |
| 2500 |
void gi_marshalling_tests_gerror_out_transfer_none (GError **err, const gchar **debug); |
| 2501 |
|
| 2502 |
GI_TEST_EXTERN |
| 2503 |
gboolean gi_marshalling_tests_gerror_out_transfer_none_uninitialized (GError **v G_GNUC_UNUSED, const gchar **v2 G_GNUC_UNUSED); |
| 2504 |
|
| 2505 |
GI_TEST_EXTERN |
| 2506 |
GError *gi_marshalling_tests_gerror_return (void); |
| 2507 |
|
| 2508 |
/* GParamSpec */ |
| 2509 |
GI_TEST_EXTERN |
| 2510 |
void gi_marshalling_tests_param_spec_in_bool (const GParamSpec *param); |
| 2511 |
|
| 2512 |
GI_TEST_EXTERN |
| 2513 |
GParamSpec *gi_marshalling_tests_param_spec_return (void); |
| 2514 |
|
| 2515 |
GI_TEST_EXTERN |
| 2516 |
void gi_marshalling_tests_param_spec_out (GParamSpec **param); |
| 2517 |
|
| 2518 |
GI_TEST_EXTERN |
| 2519 |
gboolean gi_marshalling_tests_param_spec_out_uninitialized (GParamSpec **v G_GNUC_UNUSED); |
| 2520 |
|
| 2521 |
/* Overrides */ |
| 2522 |
|
| 2523 |
#define GI_MARSHALLING_TESTS_OVERRIDES_CONSTANT 42 |
| 2524 |
|
| 2525 |
typedef struct |
| 2526 |
{ |
| 2527 |
glong long_; |
| 2528 |
} GIMarshallingTestsOverridesStruct; |
| 2529 |
|
| 2530 |
GI_TEST_EXTERN |
| 2531 |
GType gi_marshalling_tests_overrides_struct_get_type (void) G_GNUC_CONST; |
| 2532 |
|
| 2533 |
GI_TEST_EXTERN |
| 2534 |
GIMarshallingTestsOverridesStruct *gi_marshalling_tests_overrides_struct_new (void); |
| 2535 |
|
| 2536 |
GI_TEST_EXTERN |
| 2537 |
glong gi_marshalling_tests_overrides_struct_method (GIMarshallingTestsOverridesStruct *struct_); |
| 2538 |
|
| 2539 |
GI_TEST_EXTERN |
| 2540 |
GIMarshallingTestsOverridesStruct *gi_marshalling_tests_overrides_struct_returnv (void); |
| 2541 |
|
| 2542 |
#define GI_MARSHALLING_TESTS_TYPE_OVERRIDES_OBJECT (gi_marshalling_tests_overrides_object_get_type ()) |
| 2543 |
#define GI_MARSHALLING_TESTS_OVERRIDES_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GI_MARSHALLING_TESTS_TYPE_OVERRIDES_OBJECT, GIMarshallingTestsOverridesObject)) |
| 2544 |
#define GI_MARSHALLING_TESTS_OVERRIDES_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GI_MARSHALLING_TESTS_TYPE_OVERRIDES_OBJECT, GIMarshallingTestsOverridesObjectClass)) |
| 2545 |
#define GI_MARSHALLING_TESTS_IS_OVERRIDES_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GI_MARSHALLING_TESTS_TYPE_OVERRIDES_OBJECT)) |
| 2546 |
#define GI_MARSHALLING_TESTS_IS_OVERRIDES_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GI_MARSHALLING_TESTS_TYPE_OVERRIDES_OBJECT)) |
| 2547 |
#define GI_MARSHALLING_TESTS_OVERRIDES_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GI_MARSHALLING_TESTS_TYPE_OVERRIDES_OBJECT, GIMarshallingTestsOverridesObjectClass)) |
| 2548 |
|
| 2549 |
typedef struct _GIMarshallingTestsOverridesObjectClass GIMarshallingTestsOverridesObjectClass; |
| 2550 |
typedef struct _GIMarshallingTestsOverridesObject GIMarshallingTestsOverridesObject; |
| 2551 |
|
| 2552 |
struct _GIMarshallingTestsOverridesObjectClass |
| 2553 |
{ |
| 2554 |
GObjectClass parent_class; |
| 2555 |
}; |
| 2556 |
|
| 2557 |
struct _GIMarshallingTestsOverridesObject |
| 2558 |
{ |
| 2559 |
GObject parent_instance; |
| 2560 |
|
| 2561 |
glong long_; |
| 2562 |
}; |
| 2563 |
|
| 2564 |
GI_TEST_EXTERN |
| 2565 |
GType gi_marshalling_tests_overrides_object_get_type (void) G_GNUC_CONST; |
| 2566 |
|
| 2567 |
GI_TEST_EXTERN |
| 2568 |
GIMarshallingTestsOverridesObject *gi_marshalling_tests_overrides_object_new (void); |
| 2569 |
|
| 2570 |
GI_TEST_EXTERN |
| 2571 |
glong gi_marshalling_tests_overrides_object_method (GIMarshallingTestsOverridesObject *object); |
| 2572 |
|
| 2573 |
GI_TEST_EXTERN |
| 2574 |
GIMarshallingTestsOverridesObject *gi_marshalling_tests_overrides_object_returnv (void); |
| 2575 |
|
| 2576 |
/* Properties Object */ |
| 2577 |
|
| 2578 |
#define GI_MARSHALLING_TESTS_TYPE_PROPERTIES_OBJECT (gi_marshalling_tests_properties_object_get_type ()) |
| 2579 |
#define GI_MARSHALLING_TESTS_PROPERTIES_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GI_MARSHALLING_TESTS_TYPE_PROPERTIES_OBJECT, GIMarshallingTestsPropertiesObject)) |
| 2580 |
#define GI_MARSHALLING_TESTS_PROPERTIES_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GI_MARSHALLING_TESTS_TYPE_PROPERTIES_OBJECT, GIMarshallingTestsPropertiesObjectClass)) |
| 2581 |
#define GI_MARSHALLING_TESTS_IS_PROPERTIES_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GI_MARSHALLING_TESTS_TYPE_PROPERTIES_OBJECT)) |
| 2582 |
#define GI_MARSHALLING_TESTS_IS_PROPERTIES_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GI_MARSHALLING_TESTS_TYPE_PROPERTIES_OBJECT)) |
| 2583 |
#define GI_MARSHALLING_TESTS_PROPERTIES_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GI_MARSHALLING_TESTS_TYPE_PROPERTIES_OBJECT, GIMarshallingTestsPropertiesObjectClass)) |
| 2584 |
|
| 2585 |
typedef struct _GIMarshallingTestsPropertiesObject GIMarshallingTestsPropertiesObject; |
| 2586 |
typedef struct _GIMarshallingTestsPropertiesObjectClass GIMarshallingTestsPropertiesObjectClass; |
| 2587 |
|
| 2588 |
struct _GIMarshallingTestsPropertiesObject |
| 2589 |
{ |
| 2590 |
GObject parent_instance; |
| 2591 |
|
| 2592 |
gboolean some_boolean; |
| 2593 |
gchar some_char; |
| 2594 |
guchar some_uchar; |
| 2595 |
gint some_int; |
| 2596 |
gint some_deprecated_int; |
| 2597 |
guint some_uint; |
| 2598 |
glong some_long; |
| 2599 |
gulong some_ulong; |
| 2600 |
gint64 some_int64; |
| 2601 |
guint64 some_uint64; |
| 2602 |
gfloat some_float; |
| 2603 |
gdouble some_double; |
| 2604 |
gchar *some_string; |
| 2605 |
gchar **some_strv; |
| 2606 |
GIMarshallingTestsBoxedStruct *some_boxed_struct; |
| 2607 |
GList *some_boxed_glist; |
| 2608 |
GValue *some_gvalue; |
| 2609 |
GVariant *some_variant; |
| 2610 |
GObject *some_object; |
| 2611 |
GIMarshallingTestsFlags some_flags; |
| 2612 |
GIMarshallingTestsGEnum some_enum; |
| 2613 |
GByteArray *some_byte_array; |
| 2614 |
GHashTable *some_hash_table; |
| 2615 |
}; |
| 2616 |
|
| 2617 |
struct _GIMarshallingTestsPropertiesObjectClass |
| 2618 |
{ |
| 2619 |
GObjectClass parent_class; |
| 2620 |
}; |
| 2621 |
|
| 2622 |
GI_TEST_EXTERN |
| 2623 |
GType gi_marshalling_tests_properties_object_get_type (void) G_GNUC_CONST; |
| 2624 |
|
| 2625 |
GI_TEST_EXTERN |
| 2626 |
GIMarshallingTestsPropertiesObject *gi_marshalling_tests_properties_object_new (void); |
| 2627 |
|
| 2628 |
/* Object with properties setters/getters */ |
| 2629 |
|
| 2630 |
#define GI_MARSHALLING_TESTS_TYPE_ACCESSORS_TESTS_PROPERTIES_OBJECT \ |
| 2631 |
(gi_marshalling_tests_properties_accessors_object_get_type ()) |
| 2632 |
|
| 2633 |
GI_TEST_EXTERN |
| 2634 |
G_DECLARE_FINAL_TYPE (GIMarshallingTestsPropertiesAccessorsObject, |
| 2635 |
gi_marshalling_tests_properties_accessors_object, |
| 2636 |
GI_MARSHALLING_TESTS, |
| 2637 |
PROPERTIES_ACCESSORS_OBJECT, |
| 2638 |
GObject); |
| 2639 |
|
| 2640 |
struct _GIMarshallingTestsPropertiesAccessorsObject |
| 2641 |
{ |
| 2642 |
GObject parent_instance; |
| 2643 |
|
| 2644 |
gboolean some_boolean; |
| 2645 |
gchar some_char; |
| 2646 |
guchar some_uchar; |
| 2647 |
gint some_int; |
| 2648 |
gint some_deprecated_int; |
| 2649 |
guint some_uint; |
| 2650 |
glong some_long; |
| 2651 |
gulong some_ulong; |
| 2652 |
gint64 some_int64; |
| 2653 |
guint64 some_uint64; |
| 2654 |
gfloat some_float; |
| 2655 |
gdouble some_double; |
| 2656 |
gchar *some_string; |
| 2657 |
gchar **some_strv; |
| 2658 |
GIMarshallingTestsBoxedStruct *some_boxed_struct; |
| 2659 |
GList *some_boxed_glist; |
| 2660 |
GValue *some_gvalue; |
| 2661 |
GVariant *some_variant; |
| 2662 |
GObject *some_object; |
| 2663 |
GIMarshallingTestsFlags some_flags; |
| 2664 |
GIMarshallingTestsGEnum some_enum; |
| 2665 |
GByteArray *some_byte_array; |
| 2666 |
GHashTable *some_hash_table; |
| 2667 |
}; |
| 2668 |
|
| 2669 |
GI_TEST_EXTERN |
| 2670 |
GIMarshallingTestsPropertiesAccessorsObject * |
| 2671 |
gi_marshalling_tests_properties_accessors_object_new (void); |
| 2672 |
|
| 2673 |
GI_TEST_EXTERN |
| 2674 |
void gi_marshalling_tests_properties_accessors_object_set_boolean (GIMarshallingTestsPropertiesAccessorsObject *self, gboolean some_boolean); |
| 2675 |
|
| 2676 |
GI_TEST_EXTERN |
| 2677 |
void gi_marshalling_tests_properties_accessors_object_set_char (GIMarshallingTestsPropertiesAccessorsObject *self, gchar some_char); |
| 2678 |
|
| 2679 |
GI_TEST_EXTERN |
| 2680 |
void gi_marshalling_tests_properties_accessors_object_set_uchar (GIMarshallingTestsPropertiesAccessorsObject *self, guchar some_uchar); |
| 2681 |
|
| 2682 |
GI_TEST_EXTERN |
| 2683 |
void gi_marshalling_tests_properties_accessors_object_set_int (GIMarshallingTestsPropertiesAccessorsObject *self, gint some_int); |
| 2684 |
|
| 2685 |
GI_TEST_EXTERN |
| 2686 |
void gi_marshalling_tests_properties_accessors_object_set_uint (GIMarshallingTestsPropertiesAccessorsObject *self, guint some_uint); |
| 2687 |
|
| 2688 |
GI_TEST_EXTERN |
| 2689 |
void gi_marshalling_tests_properties_accessors_object_set_long (GIMarshallingTestsPropertiesAccessorsObject *self, glong some_long); |
| 2690 |
|
| 2691 |
GI_TEST_EXTERN |
| 2692 |
void gi_marshalling_tests_properties_accessors_object_set_ulong (GIMarshallingTestsPropertiesAccessorsObject *self, gulong some_ulong); |
| 2693 |
|
| 2694 |
GI_TEST_EXTERN |
| 2695 |
void gi_marshalling_tests_properties_accessors_object_set_int64 (GIMarshallingTestsPropertiesAccessorsObject *self, gint64 some_int64); |
| 2696 |
|
| 2697 |
GI_TEST_EXTERN |
| 2698 |
void gi_marshalling_tests_properties_accessors_object_set_uint64 (GIMarshallingTestsPropertiesAccessorsObject *self, guint64 some_uint64); |
| 2699 |
|
| 2700 |
GI_TEST_EXTERN |
| 2701 |
void gi_marshalling_tests_properties_accessors_object_set_float (GIMarshallingTestsPropertiesAccessorsObject *self, gfloat some_float); |
| 2702 |
|
| 2703 |
GI_TEST_EXTERN |
| 2704 |
void gi_marshalling_tests_properties_accessors_object_set_double (GIMarshallingTestsPropertiesAccessorsObject *self, gdouble some_double); |
| 2705 |
|
| 2706 |
GI_TEST_EXTERN |
| 2707 |
void gi_marshalling_tests_properties_accessors_object_set_string (GIMarshallingTestsPropertiesAccessorsObject *self, gchar *some_string); |
| 2708 |
|
| 2709 |
GI_TEST_EXTERN |
| 2710 |
void gi_marshalling_tests_properties_accessors_object_set_strv (GIMarshallingTestsPropertiesAccessorsObject *self, GStrv some_strv); |
| 2711 |
|
| 2712 |
GI_TEST_EXTERN |
| 2713 |
void gi_marshalling_tests_properties_accessors_object_set_boxed_struct (GIMarshallingTestsPropertiesAccessorsObject *self, GIMarshallingTestsBoxedStruct *some_boxed_struct); |
| 2714 |
|
| 2715 |
GI_TEST_EXTERN |
| 2716 |
void gi_marshalling_tests_properties_accessors_object_set_boxed_glist (GIMarshallingTestsPropertiesAccessorsObject *self, GList *some_boxed_glist); |
| 2717 |
|
| 2718 |
GI_TEST_EXTERN |
| 2719 |
void gi_marshalling_tests_properties_accessors_object_set_gvalue (GIMarshallingTestsPropertiesAccessorsObject *self, GValue *some_gvalue); |
| 2720 |
|
| 2721 |
GI_TEST_EXTERN |
| 2722 |
void gi_marshalling_tests_properties_accessors_object_set_variant (GIMarshallingTestsPropertiesAccessorsObject *self, GVariant *some_variant); |
| 2723 |
|
| 2724 |
GI_TEST_EXTERN |
| 2725 |
void gi_marshalling_tests_properties_accessors_object_set_object (GIMarshallingTestsPropertiesAccessorsObject *self, GObject *some_object); |
| 2726 |
|
| 2727 |
GI_TEST_EXTERN |
| 2728 |
void gi_marshalling_tests_properties_accessors_object_set_flags (GIMarshallingTestsPropertiesAccessorsObject *self, GIMarshallingTestsFlags some_flags); |
| 2729 |
|
| 2730 |
GI_TEST_EXTERN |
| 2731 |
void gi_marshalling_tests_properties_accessors_object_set_enum (GIMarshallingTestsPropertiesAccessorsObject *self, GIMarshallingTestsGEnum some_enum); |
| 2732 |
|
| 2733 |
GI_TEST_EXTERN |
| 2734 |
void gi_marshalling_tests_properties_accessors_object_set_byte_array (GIMarshallingTestsPropertiesAccessorsObject *self, GByteArray *some_byte_array); |
| 2735 |
|
| 2736 |
GI_TEST_EXTERN |
| 2737 |
void gi_marshalling_tests_properties_accessors_object_set_hash_table (GIMarshallingTestsPropertiesAccessorsObject *self, GHashTable *some_hash_table); |
| 2738 |
|
| 2739 |
GI_TEST_EXTERN |
| 2740 |
gboolean gi_marshalling_tests_properties_accessors_object_get_boolean (GIMarshallingTestsPropertiesAccessorsObject *self); |
| 2741 |
|
| 2742 |
GI_TEST_EXTERN |
| 2743 |
gchar gi_marshalling_tests_properties_accessors_object_get_char (GIMarshallingTestsPropertiesAccessorsObject *self); |
| 2744 |
|
| 2745 |
GI_TEST_EXTERN |
| 2746 |
guchar gi_marshalling_tests_properties_accessors_object_get_uchar (GIMarshallingTestsPropertiesAccessorsObject *self); |
| 2747 |
|
| 2748 |
GI_TEST_EXTERN |
| 2749 |
gint gi_marshalling_tests_properties_accessors_object_get_int (GIMarshallingTestsPropertiesAccessorsObject *self); |
| 2750 |
|
| 2751 |
GI_TEST_EXTERN |
| 2752 |
guint gi_marshalling_tests_properties_accessors_object_get_uint (GIMarshallingTestsPropertiesAccessorsObject *self); |
| 2753 |
|
| 2754 |
GI_TEST_EXTERN |
| 2755 |
glong gi_marshalling_tests_properties_accessors_object_get_long (GIMarshallingTestsPropertiesAccessorsObject *self); |
| 2756 |
|
| 2757 |
GI_TEST_EXTERN |
| 2758 |
gulong gi_marshalling_tests_properties_accessors_object_get_ulong (GIMarshallingTestsPropertiesAccessorsObject *self); |
| 2759 |
|
| 2760 |
GI_TEST_EXTERN |
| 2761 |
gint64 gi_marshalling_tests_properties_accessors_object_get_int64 (GIMarshallingTestsPropertiesAccessorsObject *self); |
| 2762 |
|
| 2763 |
GI_TEST_EXTERN |
| 2764 |
guint64 gi_marshalling_tests_properties_accessors_object_get_uint64 (GIMarshallingTestsPropertiesAccessorsObject *self); |
| 2765 |
|
| 2766 |
GI_TEST_EXTERN |
| 2767 |
gfloat gi_marshalling_tests_properties_accessors_object_get_float (GIMarshallingTestsPropertiesAccessorsObject *self); |
| 2768 |
|
| 2769 |
GI_TEST_EXTERN |
| 2770 |
gdouble gi_marshalling_tests_properties_accessors_object_get_double (GIMarshallingTestsPropertiesAccessorsObject *self); |
| 2771 |
|
| 2772 |
GI_TEST_EXTERN |
| 2773 |
const gchar *gi_marshalling_tests_properties_accessors_object_get_string (GIMarshallingTestsPropertiesAccessorsObject *self); |
| 2774 |
|
| 2775 |
GI_TEST_EXTERN |
| 2776 |
gchar **gi_marshalling_tests_properties_accessors_object_get_strv (GIMarshallingTestsPropertiesAccessorsObject *self); |
| 2777 |
|
| 2778 |
GI_TEST_EXTERN |
| 2779 |
GIMarshallingTestsBoxedStruct *gi_marshalling_tests_properties_accessors_object_get_boxed_struct (GIMarshallingTestsPropertiesAccessorsObject *self); |
| 2780 |
|
| 2781 |
GI_TEST_EXTERN |
| 2782 |
GList *gi_marshalling_tests_properties_accessors_object_get_boxed_glist (GIMarshallingTestsPropertiesAccessorsObject *self); |
| 2783 |
|
| 2784 |
GI_TEST_EXTERN |
| 2785 |
GValue *gi_marshalling_tests_properties_accessors_object_get_gvalue (GIMarshallingTestsPropertiesAccessorsObject *self); |
| 2786 |
|
| 2787 |
GI_TEST_EXTERN |
| 2788 |
GVariant *gi_marshalling_tests_properties_accessors_object_get_variant (GIMarshallingTestsPropertiesAccessorsObject *self); |
| 2789 |
|
| 2790 |
GI_TEST_EXTERN |
| 2791 |
GObject *gi_marshalling_tests_properties_accessors_object_get_object (GIMarshallingTestsPropertiesAccessorsObject *self); |
| 2792 |
|
| 2793 |
GI_TEST_EXTERN |
| 2794 |
GIMarshallingTestsFlags gi_marshalling_tests_properties_accessors_object_get_flags (GIMarshallingTestsPropertiesAccessorsObject *self); |
| 2795 |
|
| 2796 |
GI_TEST_EXTERN |
| 2797 |
GIMarshallingTestsGEnum gi_marshalling_tests_properties_accessors_object_get_enum (GIMarshallingTestsPropertiesAccessorsObject *self); |
| 2798 |
|
| 2799 |
GI_TEST_EXTERN |
| 2800 |
GByteArray *gi_marshalling_tests_properties_accessors_object_get_byte_array (GIMarshallingTestsPropertiesAccessorsObject *self); |
| 2801 |
|
| 2802 |
GI_TEST_EXTERN |
| 2803 |
GHashTable *gi_marshalling_tests_properties_accessors_object_get_hash_table (GIMarshallingTestsPropertiesAccessorsObject *self); |
| 2804 |
|
| 2805 |
GI_TEST_EXTERN |
| 2806 |
gint gi_marshalling_tests_properties_accessors_object_get_readonly (GIMarshallingTestsPropertiesAccessorsObject *self); |
| 2807 |
|
| 2808 |
GI_TEST_EXTERN |
| 2809 |
G_DEPRECATED |
| 2810 |
gint gi_marshalling_tests_properties_accessors_object_get_deprecated_int (GIMarshallingTestsPropertiesAccessorsObject *self); |
| 2811 |
|
| 2812 |
GI_TEST_EXTERN |
| 2813 |
G_DEPRECATED |
| 2814 |
void gi_marshalling_tests_properties_accessors_object_set_deprecated_int (GIMarshallingTestsPropertiesAccessorsObject *self, gint some_deprecated_int); |
| 2815 |
|
| 2816 |
/* Signals object */ |
| 2817 |
|
| 2818 |
#define GI_MARSHALLING_TESTS_TYPE_SIGNALS_OBJECT (gi_marshalling_tests_signals_object_get_type ()) |
| 2819 |
#define GI_MARSHALLING_TESTS_SIGNALS_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GI_MARSHALLING_TESTS_TYPE_SIGNALS_OBJECT, GIMarshallingTestsSignalsObject)) |
| 2820 |
#define GI_MARSHALLING_TESTS_SIGNALS_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GI_MARSHALLING_TESTS_TYPE_SIGNALS_OBJECT, GIMarshallingTestsSignalsObjectClass)) |
| 2821 |
#define GI_MARSHALLING_TESTS_IS_SIGNALS_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GI_MARSHALLING_TESTS_TYPE_SIGNALS_OBJECT)) |
| 2822 |
#define GI_MARSHALLING_TESTS_IS_SIGNALS_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GI_MARSHALLING_TESTS_TYPE_SIGNALS_OBJECT)) |
| 2823 |
#define GI_MARSHALLING_TESTS_SIGNALS_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GI_MARSHALLING_TESTS_TYPE_SIGNALS_OBJECT, GIMarshallingTestsSignalsObjectClass)) |
| 2824 |
|
| 2825 |
typedef struct _GIMarshallingTestsSignalsObject GIMarshallingTestsSignalsObject; |
| 2826 |
typedef struct _GIMarshallingTestsSignalsObjectClass GIMarshallingTestsSignalsObjectClass; |
| 2827 |
|
| 2828 |
struct _GIMarshallingTestsSignalsObject |
| 2829 |
{ |
| 2830 |
GObject parent_instance; |
| 2831 |
}; |
| 2832 |
|
| 2833 |
struct _GIMarshallingTestsSignalsObjectClass |
| 2834 |
{ |
| 2835 |
GObjectClass parent_class; |
| 2836 |
}; |
| 2837 |
|
| 2838 |
GI_TEST_EXTERN |
| 2839 |
GType gi_marshalling_tests_signals_object_get_type (void) G_GNUC_CONST; |
| 2840 |
|
| 2841 |
GI_TEST_EXTERN |
| 2842 |
GIMarshallingTestsSignalsObject *gi_marshalling_tests_signals_object_new (void); |
| 2843 |
|
| 2844 |
GI_TEST_EXTERN |
| 2845 |
void gi_marshalling_tests_signals_object_emit_boxed_gptrarray_utf8 (GIMarshallingTestsSignalsObject *object); |
| 2846 |
|
| 2847 |
GI_TEST_EXTERN |
| 2848 |
void gi_marshalling_tests_signals_object_emit_boxed_gptrarray_utf8_container (GIMarshallingTestsSignalsObject *object); |
| 2849 |
|
| 2850 |
GI_TEST_EXTERN |
| 2851 |
void gi_marshalling_tests_signals_object_emit_boxed_gptrarray_utf8_full (GIMarshallingTestsSignalsObject *object); |
| 2852 |
|
| 2853 |
GI_TEST_EXTERN |
| 2854 |
void gi_marshalling_tests_signals_object_emit_boxed_gptrarray_boxed_struct (GIMarshallingTestsSignalsObject *object); |
| 2855 |
|
| 2856 |
GI_TEST_EXTERN |
| 2857 |
void gi_marshalling_tests_signals_object_emit_boxed_gptrarray_boxed_struct_container (GIMarshallingTestsSignalsObject *object); |
| 2858 |
|
| 2859 |
GI_TEST_EXTERN |
| 2860 |
void gi_marshalling_tests_signals_object_emit_boxed_gptrarray_boxed_struct_full (GIMarshallingTestsSignalsObject *object); |
| 2861 |
|
| 2862 |
GI_TEST_EXTERN |
| 2863 |
void gi_marshalling_tests_signals_object_emit_hash_table_utf8_int (GIMarshallingTestsSignalsObject *object); |
| 2864 |
|
| 2865 |
GI_TEST_EXTERN |
| 2866 |
void gi_marshalling_tests_signals_object_emit_hash_table_utf8_int_container (GIMarshallingTestsSignalsObject *object); |
| 2867 |
|
| 2868 |
GI_TEST_EXTERN |
| 2869 |
void gi_marshalling_tests_signals_object_emit_hash_table_utf8_int_full (GIMarshallingTestsSignalsObject *object); |
| 2870 |
|
| 2871 |
GI_TEST_EXTERN |
| 2872 |
void gi_marshalling_tests_signals_object_emit_boxed_struct (GIMarshallingTestsSignalsObject *object); |
| 2873 |
|
| 2874 |
GI_TEST_EXTERN |
| 2875 |
void gi_marshalling_tests_signals_object_emit_boxed_struct_full (GIMarshallingTestsSignalsObject *object); |