| 1 | /* GLIB - Library of useful routines for C programming |
| 2 | * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License version 2 as |
| 6 | * published by the Free Software Foundation. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 11 | * General Public License for more details. |
| 12 | * |
| 13 | * You should have received a copy of the GNU Library General Public |
| 14 | * License along with this library; if not, write to the |
| 15 | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
| 16 | * Boston, MA 02111-1307, USA. |
| 17 | */ |
| 18 | |
| 19 | /* |
| 20 | * Modified by the GLib Team and others 1997-1999. See the AUTHORS |
| 21 | * file for a list of people on the GLib Team. See the ChangeLog |
| 22 | * files for a list of changes. These files are distributed with |
| 23 | * GLib at ftp://ftp.gtk.org/pub/gtk/. |
| 24 | * Modified: Steve Ratcliffe May 1999. File exists so that pmidi |
| 25 | * is not dependant on glib. |
| 26 | */ |
| 27 | |
| 28 | #ifndef __G_LIB_H__ |
| 29 | #define __G_LIB_H__cxx . . $ `src/glib.h:29:9`! |
| 30 | |
| 31 | |
| 32 | #include <stdlib.h> |
| 33 | #include <string.h> |
| 34 | |
| 35 | /* system specific config file glibconfig.h provides definitions for |
| 36 | * the extrema of many of the standard types. These are: |
| 37 | * |
| 38 | * G_MINSHORT, G_MAXSHORT |
| 39 | * G_MININT, G_MAXINT |
| 40 | * G_MINLONG, G_MAXLONG |
| 41 | * G_MINFLOAT, G_MAXFLOAT |
| 42 | * G_MINDOUBLE, G_MAXDOUBLE |
| 43 | * |
| 44 | * It also provides the following typedefs: |
| 45 | * |
| 46 | * gint8, guint8 |
| 47 | * gint16, guint16 |
| 48 | * gint32, guint32 |
| 49 | * gint64, guint64 |
| 50 | * |
| 51 | * It defines the G_BYTE_ORDER symbol to one of G_*_ENDIAN (see later in |
| 52 | * this file). |
| 53 | * |
| 54 | * And it provides a way to store and retrieve a `gint' in/from a `gpointer'. |
| 55 | * This is useful to pass an integer instead of a pointer to a callback. |
| 56 | * |
| 57 | * GINT_TO_POINTER(i), GUINT_TO_POINTER(i) |
| 58 | * GPOINTER_TO_INT(p), GPOINTER_TO_UINT(p) |
| 59 | * |
| 60 | * Finally, it provide the following wrappers to STDC functions: |
| 61 | * |
| 62 | * g_ATEXIT |
| 63 | * To register hooks which are executed on exit(). |
| 64 | * Usually a wrapper for STDC atexit. |
| 65 | * |
| 66 | * void *g_memmove(void *dest, const void *src, guint count); |
| 67 | * A wrapper for STDC memmove, or an implementation, if memmove doesn't |
| 68 | * exist. The prototype looks like the above, give or take a const, |
| 69 | * or size_t. |
| 70 | */ |
| 71 | |
| 72 | typedef signed char gint8cxx . . $ gint8#; |
| 73 | typedef unsigned char guint8cxx . . $ guint8#; |
| 74 | typedef signed short gint16cxx . . $ gint16#; |
| 75 | typedef unsigned short guint16cxx . . $ guint16#; |
| 76 | typedef signed int gint32cxx . . $ gint32#; |
| 77 | typedef unsigned int guint32cxx . . $ guint32#; |
| 78 | |
| 79 | /* include varargs functions for assertment macros |
| 80 | */ |
| 81 | #include <stdarg.h> |
| 82 | |
| 83 | /* optionally feature DMALLOC memory allocation debugger |
| 84 | */ |
| 85 | #ifdef USE_DMALLOC |
| 86 | #include "dmalloc.h" |
| 87 | #endif |
| 88 | |
| 89 | |
| 90 | #ifdef NATIVE_WIN32 |
| 91 | |
| 92 | /* On native Win32, directory separator is the backslash, and search path |
| 93 | * separator is the semicolon. |
| 94 | */ |
| 95 | #define G_DIR_SEPARATOR '\\' |
| 96 | #define G_DIR_SEPARATOR_S "\\" |
| 97 | #define G_SEARCHPATH_SEPARATOR ';' |
| 98 | #define G_SEARCHPATH_SEPARATOR_S ";" |
| 99 | |
| 100 | #else /* !NATIVE_WIN32 */ |
| 101 | |
| 102 | /* Unix */ |
| 103 | |
| 104 | #define G_DIR_SEPARATORcxx . . $ `src/glib.h:104:9`! '/' |
| 105 | #define G_DIR_SEPARATOR_Scxx . . $ `src/glib.h:105:9`! "/" |
| 106 | #define G_SEARCHPATH_SEPARATORcxx . . $ `src/glib.h:106:9`! ':' |
| 107 | #define G_SEARCHPATH_SEPARATOR_Scxx . . $ `src/glib.h:107:9`! ":" |
| 108 | |
| 109 | #endif /* !NATIVE_WIN32 */ |
| 110 | |
| 111 | #ifdef __cplusplus |
| 112 | extern "C" { |
| 113 | #endif /* __cplusplus */ |
| 114 | |
| 115 | |
| 116 | /* Provide definitions for some commonly used macros. |
| 117 | * Some of them are only provided if they haven't already |
| 118 | * been defined. It is assumed that if they are already |
| 119 | * defined then the current definition is correct. |
| 120 | */ |
| 121 | #ifndef NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! |
| 122 | #define NULL ((void*) 0) |
| 123 | #endif |
| 124 | |
| 125 | #ifndef FALSE |
| 126 | #define FALSEcxx . . $ `src/glib.h:126:9`! (0) |
| 127 | #endif |
| 128 | |
| 129 | #ifndef TRUE |
| 130 | #define TRUEcxx . . $ `src/glib.h:130:9`! (!FALSE) |
| 131 | #endif |
| 132 | |
| 133 | #undef MAX |
| 134 | #define MAXcxx . . $ `src/glib.h:134:9`!(a, b) (((a) > (b)) ? (a) : (b)) |
| 135 | |
| 136 | #undef MIN |
| 137 | #define MINcxx . . $ `src/glib.h:137:9`!(a, b) (((a) < (b)) ? (a) : (b)) |
| 138 | |
| 139 | #undef ABS |
| 140 | #define ABScxx . . $ `src/glib.h:140:9`!(a) (((a) < 0) ? -(a) : (a)) |
| 141 | |
| 142 | #undef CLAMP |
| 143 | #define CLAMPcxx . . $ `src/glib.h:143:9`!(x, low, high) (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x))) |
| 144 | |
| 145 | |
| 146 | /* Define G_VA_COPY() to do the right thing for copying va_list variables. |
| 147 | * glibconfig.h may have already defined G_VA_COPY as va_copy or __va_copy. |
| 148 | */ |
| 149 | #if !defined (G_VA_COPY) |
| 150 | # if defined (__GNUC__cxx . . $ `<built-in>:8:9`!) && defined (__PPC__) && (defined (_CALL_SYSV) || defined (_WIN32)) |
| 151 | # define G_VA_COPY(ap1, ap2) (*(ap1) = *(ap2)) |
| 152 | # elif defined (G_VA_COPY_AS_ARRAY) |
| 153 | # define G_VA_COPY(ap1, ap2) g_memmove ((ap1), (ap2), sizeof (va_list)) |
| 154 | # else /* va_list is a pointer */ |
| 155 | # define G_VA_COPYcxx . . $ `src/glib.h:155:11`!(ap1, ap2) ((ap1) = (ap2)) |
| 156 | # endif /* va_list is a pointer */ |
| 157 | #endif /* !G_VA_COPY */ |
| 158 | |
| 159 | |
| 160 | /* Provide convenience macros for handling structure |
| 161 | * fields through their offsets. |
| 162 | */ |
| 163 | #define G_STRUCT_OFFSETcxx . . $ `src/glib.h:163:9`!(struct_type, member) \ |
| 164 | ((gulong) ((gchar*) &((struct_type*) 0)->member)) |
| 165 | #define G_STRUCT_MEMBER_Pcxx . . $ `src/glib.h:165:9`!(struct_p, struct_offset) \ |
| 166 | ((gpointer) ((gchar*) (struct_p) + (gulong) (struct_offset))) |
| 167 | #define G_STRUCT_MEMBERcxx . . $ `src/glib.h:167:9`!(member_type, struct_p, struct_offset) \ |
| 168 | (*(member_type*) G_STRUCT_MEMBER_P ((struct_p), (struct_offset))) |
| 169 | |
| 170 | |
| 171 | /* inlining hassle. for compilers that don't allow the `inline' keyword, |
| 172 | * mostly because of strict ANSI C compliance or dumbness, we try to fall |
| 173 | * back to either `__inline__' or `__inline'. |
| 174 | * we define G_CAN_INLINE, if the compiler seems to be actually |
| 175 | * *capable* to do function inlining, in which case inline function bodys |
| 176 | * do make sense. we also define G_INLINE_FUNC to properly export the |
| 177 | * function prototypes if no inlining can be performed. |
| 178 | * we special case most of the stuff, so inline functions can have a normal |
| 179 | * implementation by defining G_INLINE_FUNC to extern and G_CAN_INLINE to 1. |
| 180 | */ |
| 181 | #ifndef G_INLINE_FUNC |
| 182 | # define G_CAN_INLINEcxx . . $ `src/glib.h:182:11`! 1 |
| 183 | #endif |
| 184 | #ifdef G_HAVE_INLINE |
| 185 | # if defined (__GNUC__) && defined (__STRICT_ANSI__) |
| 186 | # undef inline |
| 187 | # define inline __inline__ |
| 188 | # endif |
| 189 | #else /* !G_HAVE_INLINE */ |
| 190 | # undef inline |
| 191 | # if defined (G_HAVE___INLINE__) |
| 192 | # define inline __inline__ |
| 193 | # else /* !inline && !__inline__ */ |
| 194 | # if defined (G_HAVE___INLINE) |
| 195 | # define inline __inline |
| 196 | # else /* !inline && !__inline__ && !__inline */ |
| 197 | # define inlinecxx . . $ `src/glib.h:197:15`! /* don't inline, then */ |
| 198 | # ifndef G_INLINE_FUNC |
| 199 | # undef G_CAN_INLINEcxx . . $ `src/glib.h:182:11`! |
| 200 | # endif |
| 201 | # endif |
| 202 | # endif |
| 203 | #endif |
| 204 | #ifndef G_INLINE_FUNC |
| 205 | # ifdef __GNUC__cxx . . $ `<built-in>:8:9`! |
| 206 | # ifdef __OPTIMIZE__cxx . . $ `<built-in>:44:9`! |
| 207 | # define G_INLINE_FUNCcxx . . $ `src/glib.h:207:15`! extern inlinecxx . . $ `src/glib.h:197:15`! |
| 208 | # else |
| 209 | # undef G_CAN_INLINE |
| 210 | # define G_INLINE_FUNC extern |
| 211 | # endif |
| 212 | # else /* !__GNUC__ */ |
| 213 | # ifdef G_CAN_INLINE |
| 214 | # define G_INLINE_FUNC static inline |
| 215 | # else |
| 216 | # define G_INLINE_FUNC extern |
| 217 | # endif |
| 218 | # endif /* !__GNUC__ */ |
| 219 | #endif /* !G_INLINE_FUNC */ |
| 220 | |
| 221 | |
| 222 | /* Provide simple macro statement wrappers (adapted from Perl): |
| 223 | * G_STMT_START { statements; } G_STMT_END; |
| 224 | * can be used as a single statement, as in |
| 225 | * if (x) G_STMT_START { ... } G_STMT_END; else ... |
| 226 | * |
| 227 | * For gcc we will wrap the statements within `({' and `})' braces. |
| 228 | * For SunOS they will be wrapped within `if (1)' and `else (void) 0', |
| 229 | * and otherwise within `do' and `while (0)'. |
| 230 | */ |
| 231 | #if !(defined (G_STMT_START) && defined (G_STMT_END)) |
| 232 | # if defined (__GNUC__cxx . . $ `<built-in>:8:9`!) && !defined (__STRICT_ANSI__) && !defined (__cplusplus) |
| 233 | # define G_STMT_STARTcxx . . $ `src/glib.h:233:13`! (void)( |
| 234 | # define G_STMT_ENDcxx . . $ `src/glib.h:234:13`! ) |
| 235 | # else |
| 236 | # if (defined (sun) || defined (__sun__)) |
| 237 | # define G_STMT_START if (1) |
| 238 | # define G_STMT_END else (void)0 |
| 239 | # else |
| 240 | # define G_STMT_START do |
| 241 | # define G_STMT_END while (0) |
| 242 | # endif |
| 243 | # endif |
| 244 | #endif |
| 245 | |
| 246 | |
| 247 | /* Provide macros to feature the GCC function attribute. |
| 248 | */ |
| 249 | #if __GNUC__cxx . . $ `<built-in>:8:9`! > 2 || (__GNUC__cxx . . $ `<built-in>:8:9`! == 2 && __GNUC_MINOR__cxx . . $ `<built-in>:9:9`! > 4) |
| 250 | #define G_GNUC_PRINTFcxx . . $ `src/glib.h:250:9`!( format_idx, arg_idx ) \ |
| 251 | __attribute__((format (printf, format_idx, arg_idx))) |
| 252 | #define G_GNUC_SCANFcxx . . $ `src/glib.h:252:9`!( format_idx, arg_idx ) \ |
| 253 | __attribute__((format (scanf, format_idx, arg_idx))) |
| 254 | #define G_GNUC_FORMATcxx . . $ `src/glib.h:254:9`!( arg_idx ) \ |
| 255 | __attribute__((format_arg (arg_idx))) |
| 256 | #define G_GNUC_NORETURNcxx . . $ `src/glib.h:256:9`! \ |
| 257 | __attribute__((noreturn)) |
| 258 | #define G_GNUC_CONSTcxx . . $ `src/glib.h:258:9`! \ |
| 259 | __attribute__((const)) |
| 260 | #define G_GNUC_UNUSEDcxx . . $ `src/glib.h:260:9`! \ |
| 261 | __attribute__((unused)) |
| 262 | #else /* !__GNUC__ */ |
| 263 | #define G_GNUC_PRINTF( format_idx, arg_idx ) |
| 264 | #define G_GNUC_SCANF( format_idx, arg_idx ) |
| 265 | #define G_GNUC_FORMAT( arg_idx ) |
| 266 | #define G_GNUC_NORETURN |
| 267 | #define G_GNUC_CONST |
| 268 | #define G_GNUC_UNUSED |
| 269 | #endif /* !__GNUC__ */ |
| 270 | |
| 271 | |
| 272 | /* Wrap the gcc __PRETTY_FUNCTION__ and __FUNCTION__ variables with |
| 273 | * macros, so we can refer to them as strings unconditionally. |
| 274 | */ |
| 275 | #ifdef __GNUC__cxx . . $ `<built-in>:8:9`! |
| 276 | #define G_GNUC_FUNCTIONcxx . . $ `src/glib.h:276:9`! __FUNCTION__ |
| 277 | #define G_GNUC_PRETTY_FUNCTIONcxx . . $ `src/glib.h:277:9`! __PRETTY_FUNCTION__ |
| 278 | #else /* !__GNUC__ */ |
| 279 | #define G_GNUC_FUNCTION "" |
| 280 | #define G_GNUC_PRETTY_FUNCTION "" |
| 281 | #endif /* !__GNUC__ */ |
| 282 | |
| 283 | /* we try to provide a usefull equivalent for ATEXIT if it is |
| 284 | * not defined, but use is actually abandoned. people should |
| 285 | * use g_atexit() instead. |
| 286 | */ |
| 287 | #ifndef ATEXIT |
| 288 | # define ATEXITcxx . . $ `src/glib.h:288:10`!(proc) g_ATEXIT(proc) |
| 289 | #else |
| 290 | # define G_NATIVE_ATEXIT |
| 291 | #endif /* ATEXIT */ |
| 292 | |
| 293 | /* Hacker macro to place breakpoints for elected machines. |
| 294 | * Actual use is strongly deprecated of course ;) |
| 295 | */ |
| 296 | #if defined (__i386__) && defined (__GNUC__cxx . . $ `<built-in>:8:9`!) && __GNUC__cxx . . $ `<built-in>:8:9`! >= 2 |
| 297 | #define G_BREAKPOINT() G_STMT_START{ __asm__ __volatile__ ("int $03"); }G_STMT_END |
| 298 | #elif defined (__alpha__) && defined (__GNUC__cxx . . $ `<built-in>:8:9`!) && __GNUC__cxx . . $ `<built-in>:8:9`! >= 2 |
| 299 | #define G_BREAKPOINT() G_STMT_START{ __asm__ __volatile__ ("bpt"); }G_STMT_END |
| 300 | #else /* !__i386__ && !__alpha__ */ |
| 301 | #define G_BREAKPOINTcxx . . $ `src/glib.h:301:9`!() |
| 302 | #endif /* __i386__ */ |
| 303 | |
| 304 | |
| 305 | /* Provide macros for easily allocating memory. The macros |
| 306 | * will cast the allocated memory to the specified type |
| 307 | * in order to avoid compiler warnings. (Makes the code neater). |
| 308 | */ |
| 309 | |
| 310 | # define g_newcxx . . $ `src/glib.h:310:11`!(type, count) \ |
| 311 | ((type *) malloc ((unsigned) sizeof (type) * (count))) |
| 312 | # define g_new0cxx . . $ `src/glib.h:312:11`!(type, count) \ |
| 313 | ((type *) calloc ((unsigned) sizeof (type) * (count), 1)) |
| 314 | # define g_renewcxx . . $ `src/glib.h:314:11`!(type, mem, count) \ |
| 315 | ((type *) realloc (mem, (unsigned) sizeof (type) * (count))) |
| 316 | |
| 317 | #define g_mem_chunk_createcxx . . $ `src/glib.h:317:9`!(type, pre_alloc, alloc_type) ( \ |
| 318 | g_mem_chunk_new (#type " mem chunks (" #pre_alloc ")", \ |
| 319 | sizeof (type), \ |
| 320 | sizeof (type) * (pre_alloc), \ |
| 321 | (alloc_type)) \ |
| 322 | ) |
| 323 | #define g_chunk_newcxx . . $ `src/glib.h:323:9`!(type, chunk) ( \ |
| 324 | (type *) g_mem_chunk_alloc (chunk) \ |
| 325 | ) |
| 326 | #define g_chunk_new0cxx . . $ `src/glib.h:326:9`!(type, chunk) ( \ |
| 327 | (type *) g_mem_chunk_alloc0 (chunk) \ |
| 328 | ) |
| 329 | #define g_chunk_freecxx . . $ `src/glib.h:329:9`!(mem, mem_chunk) G_STMT_START { \ |
| 330 | g_mem_chunk_free ((mem_chunk), (mem)); \ |
| 331 | } G_STMT_END |
| 332 | |
| 333 | |
| 334 | #define g_stringcxx . . $ `src/glib.h:334:9`!(x) #x |
| 335 | |
| 336 | |
| 337 | /* Provide macros for error handling. The "assert" macros will |
| 338 | * exit on failure. The "return" macros will exit the current |
| 339 | * function. Two different definitions are given for the macros |
| 340 | * if G_DISABLE_ASSERT is not defined, in order to support gcc's |
| 341 | * __PRETTY_FUNCTION__ capability. |
| 342 | */ |
| 343 | |
| 344 | #ifdef G_DISABLE_ASSERT |
| 345 | |
| 346 | #define g_assert(expr) |
| 347 | #define g_assert_not_reached() |
| 348 | |
| 349 | #else /* !G_DISABLE_ASSERT */ |
| 350 | |
| 351 | #ifdef __GNUC__cxx . . $ `<built-in>:8:9`! |
| 352 | |
| 353 | #define g_assertcxx . . $ `src/glib.h:353:9`!(expr) G_STMT_START{ \ |
| 354 | if (!(expr)) \ |
| 355 | g_log (G_LOG_DOMAIN, \ |
| 356 | G_LOG_LEVEL_ERROR, \ |
| 357 | "file %s: line %d (%s): assertion failed: (%s)", \ |
| 358 | __FILE__, \ |
| 359 | __LINE__, \ |
| 360 | __PRETTY_FUNCTION__, \ |
| 361 | #expr); }G_STMT_END |
| 362 | |
| 363 | #define g_assert_not_reachedcxx . . $ `src/glib.h:363:9`!() G_STMT_START{ \ |
| 364 | g_log (G_LOG_DOMAIN, \ |
| 365 | G_LOG_LEVEL_ERROR, \ |
| 366 | "file %s: line %d (%s): should not be reached", \ |
| 367 | __FILE__, \ |
| 368 | __LINE__, \ |
| 369 | __PRETTY_FUNCTION__); }G_STMT_END |
| 370 | |
| 371 | #else /* !__GNUC__ */ |
| 372 | |
| 373 | #define g_assert(expr) G_STMT_START{ \ |
| 374 | if (!(expr)) \ |
| 375 | g_log (G_LOG_DOMAIN, \ |
| 376 | G_LOG_LEVEL_ERROR, \ |
| 377 | "file %s: line %d: assertion failed: (%s)", \ |
| 378 | __FILE__, \ |
| 379 | __LINE__, \ |
| 380 | #expr); }G_STMT_END |
| 381 | |
| 382 | #define g_assert_not_reached() G_STMT_START{ \ |
| 383 | g_log (G_LOG_DOMAIN, \ |
| 384 | G_LOG_LEVEL_ERROR, \ |
| 385 | "file %s: line %d: should not be reached", \ |
| 386 | __FILE__, \ |
| 387 | __LINE__); }G_STMT_END |
| 388 | |
| 389 | #endif /* __GNUC__ */ |
| 390 | |
| 391 | #endif /* !G_DISABLE_ASSERT */ |
| 392 | |
| 393 | |
| 394 | #ifdef G_DISABLE_CHECKS |
| 395 | |
| 396 | #define g_return_if_fail(expr) |
| 397 | #define g_return_val_if_fail(expr,val) |
| 398 | |
| 399 | #else /* !G_DISABLE_CHECKS */ |
| 400 | |
| 401 | #ifdef __GNUC__cxx . . $ `<built-in>:8:9`! |
| 402 | |
| 403 | #define g_return_if_failcxx . . $ `src/glib.h:403:9`!(expr) G_STMT_START{ \ |
| 404 | if (!(expr)) \ |
| 405 | { \ |
| 406 | g_log (G_LOG_DOMAIN, \ |
| 407 | G_LOG_LEVEL_CRITICAL, \ |
| 408 | "file %s: line %d (%s): assertion `%s' failed.", \ |
| 409 | __FILE__, \ |
| 410 | __LINE__, \ |
| 411 | __PRETTY_FUNCTION__, \ |
| 412 | #expr); \ |
| 413 | return; \ |
| 414 | }; }G_STMT_END |
| 415 | |
| 416 | #define g_return_val_if_failcxx . . $ `src/glib.h:416:9`!(expr,val) G_STMT_START{ \ |
| 417 | if (!(expr)) \ |
| 418 | { \ |
| 419 | g_log (G_LOG_DOMAIN, \ |
| 420 | G_LOG_LEVEL_CRITICAL, \ |
| 421 | "file %s: line %d (%s): assertion `%s' failed.", \ |
| 422 | __FILE__, \ |
| 423 | __LINE__, \ |
| 424 | __PRETTY_FUNCTION__, \ |
| 425 | #expr); \ |
| 426 | return val; \ |
| 427 | }; }G_STMT_END |
| 428 | |
| 429 | #else /* !__GNUC__ */ |
| 430 | |
| 431 | #define g_return_if_fail(expr) G_STMT_START{ \ |
| 432 | if (!(expr)) \ |
| 433 | { \ |
| 434 | g_log (G_LOG_DOMAIN, \ |
| 435 | G_LOG_LEVEL_CRITICAL, \ |
| 436 | "file %s: line %d: assertion `%s' failed.", \ |
| 437 | __FILE__, \ |
| 438 | __LINE__, \ |
| 439 | #expr); \ |
| 440 | return; \ |
| 441 | }; }G_STMT_END |
| 442 | |
| 443 | #define g_return_val_if_fail(expr, val) G_STMT_START{ \ |
| 444 | if (!(expr)) \ |
| 445 | { \ |
| 446 | g_log (G_LOG_DOMAIN, \ |
| 447 | G_LOG_LEVEL_CRITICAL, \ |
| 448 | "file %s: line %d: assertion `%s' failed.", \ |
| 449 | __FILE__, \ |
| 450 | __LINE__, \ |
| 451 | #expr); \ |
| 452 | return val; \ |
| 453 | }; }G_STMT_END |
| 454 | |
| 455 | #endif /* !__GNUC__ */ |
| 456 | |
| 457 | #endif /* !G_DISABLE_CHECKS */ |
| 458 | |
| 459 | |
| 460 | /* Provide type definitions for commonly used types. |
| 461 | * These are useful because a "gint8" can be adjusted |
| 462 | * to be 1 byte (8 bits) on all platforms. Similarly and |
| 463 | * more importantly, "gint32" can be adjusted to be |
| 464 | * 4 bytes (32 bits) on all platforms. |
| 465 | */ |
| 466 | |
| 467 | typedef char gcharcxx . . $ gchar#; |
| 468 | typedef short gshortcxx . . $ gshort#; |
| 469 | typedef long glongcxx . . $ glong#; |
| 470 | typedef int gintcxx . . $ gint#; |
| 471 | typedef gintcxx . . $ gint# gbooleancxx . . $ gboolean#; |
| 472 | |
| 473 | typedef unsigned char gucharcxx . . $ guchar#; |
| 474 | typedef unsigned short gushortcxx . . $ gushort#; |
| 475 | typedef unsigned long gulongcxx . . $ gulong#; |
| 476 | typedef unsigned int guintcxx . . $ guint#; |
| 477 | |
| 478 | typedef float gfloatcxx . . $ gfloat#; |
| 479 | typedef double gdoublecxx . . $ gdouble#; |
| 480 | |
| 481 | /* HAVE_LONG_DOUBLE doesn't work correctly on all platforms. |
| 482 | * Since gldouble isn't used anywhere, just disable it for now */ |
| 483 | |
| 484 | #if 0 |
| 485 | #ifdef HAVE_LONG_DOUBLE |
| 486 | typedef long double gldouble; |
| 487 | #else /* HAVE_LONG_DOUBLE */ |
| 488 | typedef double gldouble; |
| 489 | #endif /* HAVE_LONG_DOUBLE */ |
| 490 | #endif /* 0 */ |
| 491 | |
| 492 | typedef void* gpointercxx . . $ gpointer#; |
| 493 | typedef const void *gconstpointercxx . . $ gconstpointer#; |
| 494 | |
| 495 | |
| 496 | typedef gint32cxx . . $ gint32# gssizecxx . . $ gssize#; |
| 497 | typedef guint32cxx . . $ guint32# gsizecxx . . $ gsize#; |
| 498 | typedef guint32cxx . . $ guint32# GQuarkcxx . . $ GQuark#; |
| 499 | typedef gint32cxx . . $ gint32# GTimecxx . . $ GTime#; |
| 500 | |
| 501 | |
| 502 | /* Portable endian checks and conversions |
| 503 | * |
| 504 | * glibconfig.h defines G_BYTE_ORDER which expands to one of |
| 505 | * the below macros. |
| 506 | */ |
| 507 | #define G_LITTLE_ENDIANcxx . . $ `src/glib.h:507:9`! 1234 |
| 508 | #define G_BIG_ENDIANcxx . . $ `src/glib.h:508:9`! 4321 |
| 509 | #define G_PDP_ENDIANcxx . . $ `src/glib.h:509:9`! 3412 /* unused, need specific PDP check */ |
| 510 | |
| 511 | |
| 512 | /* Basic bit swapping functions |
| 513 | */ |
| 514 | #define GUINT16_SWAP_LE_BE_CONSTANTcxx . . $ `src/glib.h:514:9`!(val) ((guint16) ( \ |
| 515 | (((guint16) (val) & (guint16) 0x00ffU) << 8) | \ |
| 516 | (((guint16) (val) & (guint16) 0xff00U) >> 8))) |
| 517 | #define GUINT32_SWAP_LE_BE_CONSTANTcxx . . $ `src/glib.h:517:9`!(val) ((guint32) ( \ |
| 518 | (((guint32) (val) & (guint32) 0x000000ffU) << 24) | \ |
| 519 | (((guint32) (val) & (guint32) 0x0000ff00U) << 8) | \ |
| 520 | (((guint32) (val) & (guint32) 0x00ff0000U) >> 8) | \ |
| 521 | (((guint32) (val) & (guint32) 0xff000000U) >> 24))) |
| 522 | |
| 523 | /* Intel specific stuff for speed |
| 524 | */ |
| 525 | #if defined (__i386__) && defined (__GNUC__cxx . . $ `<built-in>:8:9`!) && __GNUC__cxx . . $ `<built-in>:8:9`! >= 2 |
| 526 | # define GUINT16_SWAP_LE_BE_X86(val) \ |
| 527 | (__extension__ \ |
| 528 | ({ register guint16 __v; \ |
| 529 | if (__builtin_constant_p (val)) \ |
| 530 | __v = GUINT16_SWAP_LE_BE_CONSTANT (val); \ |
| 531 | else \ |
| 532 | __asm__ __const__ ("rorw $8, %w0" \ |
| 533 | : "=r" (__v) \ |
| 534 | : "0" ((guint16) (val))); \ |
| 535 | __v; })) |
| 536 | # define GUINT16_SWAP_LE_BE(val) (GUINT16_SWAP_LE_BE_X86 (val)) |
| 537 | # if !defined(__i486__) && !defined(__i586__) \ |
| 538 | && !defined(__pentium__) && !defined(__i686__) && !defined(__pentiumpro__) |
| 539 | # define GUINT32_SWAP_LE_BE_X86(val) \ |
| 540 | (__extension__ \ |
| 541 | ({ register guint32 __v; \ |
| 542 | if (__builtin_constant_p (val)) \ |
| 543 | __v = GUINT32_SWAP_LE_BE_CONSTANT (val); \ |
| 544 | else \ |
| 545 | __asm__ __const__ ("rorw $8, %w0\n\t" \ |
| 546 | "rorl $16, %0\n\t" \ |
| 547 | "rorw $8, %w0" \ |
| 548 | : "=r" (__v) \ |
| 549 | : "0" ((guint32) (val))); \ |
| 550 | __v; })) |
| 551 | # else /* 486 and higher has bswap */ |
| 552 | # define GUINT32_SWAP_LE_BE_X86(val) \ |
| 553 | (__extension__ \ |
| 554 | ({ register guint32 __v; \ |
| 555 | if (__builtin_constant_p (val)) \ |
| 556 | __v = GUINT32_SWAP_LE_BE_CONSTANT (val); \ |
| 557 | else \ |
| 558 | __asm__ __const__ ("bswap %0" \ |
| 559 | : "=r" (__v) \ |
| 560 | : "0" ((guint32) (val))); \ |
| 561 | __v; })) |
| 562 | # endif /* processor specific 32-bit stuff */ |
| 563 | # define GUINT32_SWAP_LE_BE(val) (GUINT32_SWAP_LE_BE_X86 (val)) |
| 564 | #else /* !__i386__ */ |
| 565 | # define GUINT16_SWAP_LE_BEcxx . . $ `src/glib.h:565:11`!(val) (GUINT16_SWAP_LE_BE_CONSTANT (val)) |
| 566 | # define GUINT32_SWAP_LE_BEcxx . . $ `src/glib.h:566:11`!(val) (GUINT32_SWAP_LE_BE_CONSTANT (val)) |
| 567 | #endif /* __i386__ */ |
| 568 | |
| 569 | #ifdef G_HAVE_GINT64 |
| 570 | # define GUINT64_SWAP_LE_BE_CONSTANT(val) ((guint64) ( \ |
| 571 | (((guint64) (val) & \ |
| 572 | (guint64) G_GINT64_CONSTANT(0x00000000000000ffU)) << 56) | \ |
| 573 | (((guint64) (val) & \ |
| 574 | (guint64) G_GINT64_CONSTANT(0x000000000000ff00U)) << 40) | \ |
| 575 | (((guint64) (val) & \ |
| 576 | (guint64) G_GINT64_CONSTANT(0x0000000000ff0000U)) << 24) | \ |
| 577 | (((guint64) (val) & \ |
| 578 | (guint64) G_GINT64_CONSTANT(0x00000000ff000000U)) << 8) | \ |
| 579 | (((guint64) (val) & \ |
| 580 | (guint64) G_GINT64_CONSTANT(0x000000ff00000000U)) >> 8) | \ |
| 581 | (((guint64) (val) & \ |
| 582 | (guint64) G_GINT64_CONSTANT(0x0000ff0000000000U)) >> 24) | \ |
| 583 | (((guint64) (val) & \ |
| 584 | (guint64) G_GINT64_CONSTANT(0x00ff000000000000U)) >> 40) | \ |
| 585 | (((guint64) (val) & \ |
| 586 | (guint64) G_GINT64_CONSTANT(0xff00000000000000U)) >> 56))) |
| 587 | # if defined (__i386__) && defined (__GNUC__) && __GNUC__ >= 2 |
| 588 | # define GUINT64_SWAP_LE_BE_X86(val) \ |
| 589 | (__extension__ \ |
| 590 | ({ union { guint64 __ll; \ |
| 591 | guint32 __l[2]; } __r; \ |
| 592 | if (__builtin_constant_p (val)) \ |
| 593 | __r.__ll = GUINT64_SWAP_LE_BE_CONSTANT (val); \ |
| 594 | else \ |
| 595 | { \ |
| 596 | union { guint64 __ll; \ |
| 597 | guint32 __l[2]; } __w; \ |
| 598 | __w.__ll = ((guint64) val); \ |
| 599 | __r.__l[0] = GUINT32_SWAP_LE_BE (__w.__l[1]); \ |
| 600 | __r.__l[1] = GUINT32_SWAP_LE_BE (__w.__l[0]); \ |
| 601 | } \ |
| 602 | __r.__ll; })) |
| 603 | # define GUINT64_SWAP_LE_BE(val) (GUINT64_SWAP_LE_BE_X86 (val)) |
| 604 | # else /* !__i386__ */ |
| 605 | # define GUINT64_SWAP_LE_BE(val) (GUINT64_SWAP_LE_BE_CONSTANT(val)) |
| 606 | # endif |
| 607 | #endif |
| 608 | |
| 609 | #define GUINT16_SWAP_LE_PDPcxx . . $ `src/glib.h:609:9`!(val) ((guint16) (val)) |
| 610 | #define GUINT16_SWAP_BE_PDPcxx . . $ `src/glib.h:610:9`!(val) (GUINT16_SWAP_LE_BE (val)) |
| 611 | #define GUINT32_SWAP_LE_PDPcxx . . $ `src/glib.h:611:9`!(val) ((guint32) ( \ |
| 612 | (((guint32) (val) & (guint32) 0x0000ffffU) << 16) | \ |
| 613 | (((guint32) (val) & (guint32) 0xffff0000U) >> 16))) |
| 614 | #define GUINT32_SWAP_BE_PDPcxx . . $ `src/glib.h:614:9`!(val) ((guint32) ( \ |
| 615 | (((guint32) (val) & (guint32) 0x00ff00ffU) << 8) | \ |
| 616 | (((guint32) (val) & (guint32) 0xff00ff00U) >> 8))) |
| 617 | |
| 618 | /* The G*_TO_?E() macros are defined in glibconfig.h. |
| 619 | * The transformation is symmetric, so the FROM just maps to the TO. |
| 620 | */ |
| 621 | #define GINT16_FROM_LEcxx . . $ `src/glib.h:621:9`!(val) (GINT16_TO_LE (val)) |
| 622 | #define GUINT16_FROM_LEcxx . . $ `src/glib.h:622:9`!(val) (GUINT16_TO_LE (val)) |
| 623 | #define GINT16_FROM_BEcxx . . $ `src/glib.h:623:9`!(val) (GINT16_TO_BE (val)) |
| 624 | #define GUINT16_FROM_BEcxx . . $ `src/glib.h:624:9`!(val) (GUINT16_TO_BE (val)) |
| 625 | #define GINT32_FROM_LEcxx . . $ `src/glib.h:625:9`!(val) (GINT32_TO_LE (val)) |
| 626 | #define GUINT32_FROM_LEcxx . . $ `src/glib.h:626:9`!(val) (GUINT32_TO_LE (val)) |
| 627 | #define GINT32_FROM_BEcxx . . $ `src/glib.h:627:9`!(val) (GINT32_TO_BE (val)) |
| 628 | #define GUINT32_FROM_BEcxx . . $ `src/glib.h:628:9`!(val) (GUINT32_TO_BE (val)) |
| 629 | |
| 630 | #ifdef G_HAVE_GINT64 |
| 631 | #define GINT64_FROM_LE(val) (GINT64_TO_LE (val)) |
| 632 | #define GUINT64_FROM_LE(val) (GUINT64_TO_LE (val)) |
| 633 | #define GINT64_FROM_BE(val) (GINT64_TO_BE (val)) |
| 634 | #define GUINT64_FROM_BE(val) (GUINT64_TO_BE (val)) |
| 635 | #endif |
| 636 | |
| 637 | #define GLONG_FROM_LEcxx . . $ `src/glib.h:637:9`!(val) (GLONG_TO_LE (val)) |
| 638 | #define GULONG_FROM_LEcxx . . $ `src/glib.h:638:9`!(val) (GULONG_TO_LE (val)) |
| 639 | #define GLONG_FROM_BEcxx . . $ `src/glib.h:639:9`!(val) (GLONG_TO_BE (val)) |
| 640 | #define GULONG_FROM_BEcxx . . $ `src/glib.h:640:9`!(val) (GULONG_TO_BE (val)) |
| 641 | |
| 642 | #define GINT_FROM_LEcxx . . $ `src/glib.h:642:9`!(val) (GINT_TO_LE (val)) |
| 643 | #define GUINT_FROM_LEcxx . . $ `src/glib.h:643:9`!(val) (GUINT_TO_LE (val)) |
| 644 | #define GINT_FROM_BEcxx . . $ `src/glib.h:644:9`!(val) (GINT_TO_BE (val)) |
| 645 | #define GUINT_FROM_BEcxx . . $ `src/glib.h:645:9`!(val) (GUINT_TO_BE (val)) |
| 646 | |
| 647 | |
| 648 | /* Portable versions of host-network order stuff |
| 649 | */ |
| 650 | #define g_ntohlcxx . . $ `src/glib.h:650:9`!(val) (GUINT32_FROM_BE (val)) |
| 651 | #define g_ntohscxx . . $ `src/glib.h:651:9`!(val) (GUINT16_FROM_BE (val)) |
| 652 | #define g_htonlcxx . . $ `src/glib.h:652:9`!(val) (GUINT32_TO_BE (val)) |
| 653 | #define g_htonscxx . . $ `src/glib.h:653:9`!(val) (GUINT16_TO_BE (val)) |
| 654 | |
| 655 | |
| 656 | /* Glib version. |
| 657 | * we prefix variable declarations so they can |
| 658 | * properly get exported in windows dlls. |
| 659 | */ |
| 660 | #ifdef NATIVE_WIN32 |
| 661 | # ifdef GLIB_COMPILATION |
| 662 | # define GUTILS_C_VAR __declspec(dllexport) |
| 663 | # else /* !GLIB_COMPILATION */ |
| 664 | # define GUTILS_C_VAR extern __declspec(dllimport) |
| 665 | # endif /* !GLIB_COMPILATION */ |
| 666 | #else /* !NATIVE_WIN32 */ |
| 667 | # define GUTILS_C_VARcxx . . $ `src/glib.h:667:11`! extern |
| 668 | #endif /* !NATIVE_WIN32 */ |
| 669 | |
| 670 | GUTILS_C_VARcxx . . $ `src/glib.h:667:11`! const guintcxx . . $ guint# glib_major_versioncxx . . $ glib_major_version.; |
| 671 | GUTILS_C_VARcxx . . $ `src/glib.h:667:11`! const guintcxx . . $ guint# glib_minor_versioncxx . . $ glib_minor_version.; |
| 672 | GUTILS_C_VARcxx . . $ `src/glib.h:667:11`! const guintcxx . . $ guint# glib_micro_versioncxx . . $ glib_micro_version.; |
| 673 | GUTILS_C_VARcxx . . $ `src/glib.h:667:11`! const guintcxx . . $ guint# glib_interface_agecxx . . $ glib_interface_age.; |
| 674 | GUTILS_C_VARcxx . . $ `src/glib.h:667:11`! const guintcxx . . $ guint# glib_binary_agecxx . . $ glib_binary_age.; |
| 675 | |
| 676 | #define GLIB_CHECK_VERSIONcxx . . $ `src/glib.h:676:9`!(major,minor,micro) \ |
| 677 | (GLIB_MAJOR_VERSION > (major) || \ |
| 678 | (GLIB_MAJOR_VERSION == (major) && GLIB_MINOR_VERSION > (minor)) || \ |
| 679 | (GLIB_MAJOR_VERSION == (major) && GLIB_MINOR_VERSION == (minor) && \ |
| 680 | GLIB_MICRO_VERSION >= (micro))) |
| 681 | |
| 682 | /* Forward declarations of glib types. |
| 683 | */ |
| 684 | typedef struct _GAllocatorcxx . . $ _GAllocator# GAllocatorcxx . . $ GAllocator#; |
| 685 | typedef struct _GArraycxx . . $ _GArray# GArraycxx . . $ GArray#; |
| 686 | typedef struct _GByteArraycxx . . $ _GByteArray# GByteArraycxx . . $ GByteArray#; |
| 687 | typedef struct _GCachecxx . . $ _GCache# GCachecxx . . $ GCache#; |
| 688 | typedef struct _GCompletioncxx . . $ _GCompletion# GCompletioncxx . . $ GCompletion#; |
| 689 | typedef struct _GDatacxx . . $ _GData# GDatacxx . . $ GData#; |
| 690 | typedef struct _GDebugKeycxx . . $ _GDebugKey# GDebugKeycxx . . $ GDebugKey#; |
| 691 | typedef struct _GHashTablecxx . . $ _GHashTable# GHashTablecxx . . $ GHashTable#; |
| 692 | typedef struct _GHookcxx . . $ _GHook# GHookcxx . . $ GHook#; |
| 693 | typedef struct _GHookListcxx . . $ _GHookList# GHookListcxx . . $ GHookList#; |
| 694 | typedef struct _GListcxx . . $ _GList# GListcxx . . $ GList#; |
| 695 | typedef struct _GMemChunkcxx . . $ _GMemChunk# GMemChunkcxx . . $ GMemChunk#; |
| 696 | typedef struct _GNodecxx . . $ _GNode# GNodecxx . . $ GNode#; |
| 697 | typedef struct _GPtrArraycxx . . $ _GPtrArray# GPtrArraycxx . . $ GPtrArray#; |
| 698 | typedef struct _GRelationcxx . . $ _GRelation# GRelationcxx . . $ GRelation#; |
| 699 | typedef struct _GScannercxx . . $ _GScanner# GScannercxx . . $ GScanner#; |
| 700 | typedef struct _GScannerConfigcxx . . $ _GScannerConfig# GScannerConfigcxx . . $ GScannerConfig#; |
| 701 | typedef struct _GSListcxx . . $ _GSList# GSListcxx . . $ GSList#; |
| 702 | typedef struct _GStringcxx . . $ _GString# GStringcxx . . $ GString#; |
| 703 | typedef struct _GStringChunkcxx . . $ _GStringChunk# GStringChunkcxx . . $ GStringChunk#; |
| 704 | typedef struct _GTimercxx . . $ _GTimer# GTimercxx . . $ GTimer#; |
| 705 | typedef struct _GTreecxx . . $ _GTree# GTreecxx . . $ GTree#; |
| 706 | typedef struct _GTuplescxx . . $ _GTuples# GTuplescxx . . $ GTuples#; |
| 707 | typedef union _GTokenValuecxx . . $ _GTokenValue# GTokenValuecxx . . $ GTokenValue#; |
| 708 | typedef struct _GIOChannelcxx . . $ _GIOChannel# GIOChannelcxx . . $ GIOChannel#; |
| 709 | |
| 710 | typedef enumcxx . . $ $anonymous_type_5f24bfb0b343acaa_0# |
| 711 | { |
| 712 | G_TRAVERSE_LEAFScxx . . $ G_TRAVERSE_LEAFS. = 1 << 0, |
| 713 | G_TRAVERSE_NON_LEAFScxx . . $ G_TRAVERSE_NON_LEAFS. = 1 << 1, |
| 714 | G_TRAVERSE_ALLcxx . . $ G_TRAVERSE_ALL. = G_TRAVERSE_LEAFScxx . . $ G_TRAVERSE_LEAFS. | G_TRAVERSE_NON_LEAFScxx . . $ G_TRAVERSE_NON_LEAFS., |
| 715 | G_TRAVERSE_MASKcxx . . $ G_TRAVERSE_MASK. = 0x03 |
| 716 | } GTraverseFlagscxx . . $ GTraverseFlags#; |
| 717 | |
| 718 | typedef enumcxx . . $ $anonymous_type_5f24bfb0b343acaa_1# |
| 719 | { |
| 720 | G_IN_ORDERcxx . . $ G_IN_ORDER., |
| 721 | G_PRE_ORDERcxx . . $ G_PRE_ORDER., |
| 722 | G_POST_ORDERcxx . . $ G_POST_ORDER., |
| 723 | G_LEVEL_ORDERcxx . . $ G_LEVEL_ORDER. |
| 724 | } GTraverseTypecxx . . $ GTraverseType#; |
| 725 | |
| 726 | /* Log level shift offset for user defined |
| 727 | * log levels (0-7 are used by GLib). |
| 728 | */ |
| 729 | #define G_LOG_LEVEL_USER_SHIFTcxx . . $ `src/glib.h:729:9`! (8) |
| 730 | |
| 731 | /* Glib log levels and flags. |
| 732 | */ |
| 733 | typedef enumcxx . . $ $anonymous_type_5f24bfb0b343acaa_2# |
| 734 | { |
| 735 | /* log flags */ |
| 736 | G_LOG_FLAG_RECURSIONcxx . . $ G_LOG_FLAG_RECURSION. = 1 << 0, |
| 737 | G_LOG_FLAG_FATALcxx . . $ G_LOG_FLAG_FATAL. = 1 << 1, |
| 738 | |
| 739 | /* GLib log levels */ |
| 740 | G_LOG_LEVEL_ERRORcxx . . $ G_LOG_LEVEL_ERROR. = 1 << 2, /* always fatal */ |
| 741 | G_LOG_LEVEL_CRITICALcxx . . $ G_LOG_LEVEL_CRITICAL. = 1 << 3, |
| 742 | G_LOG_LEVEL_WARNINGcxx . . $ G_LOG_LEVEL_WARNING. = 1 << 4, |
| 743 | G_LOG_LEVEL_MESSAGEcxx . . $ G_LOG_LEVEL_MESSAGE. = 1 << 5, |
| 744 | G_LOG_LEVEL_INFOcxx . . $ G_LOG_LEVEL_INFO. = 1 << 6, |
| 745 | G_LOG_LEVEL_DEBUGcxx . . $ G_LOG_LEVEL_DEBUG. = 1 << 7, |
| 746 | |
| 747 | G_LOG_LEVEL_MASKcxx . . $ G_LOG_LEVEL_MASK. = ~(G_LOG_FLAG_RECURSIONcxx . . $ G_LOG_FLAG_RECURSION. | G_LOG_FLAG_FATALcxx . . $ G_LOG_FLAG_FATAL.) |
| 748 | } GLogLevelFlagscxx . . $ GLogLevelFlags#; |
| 749 | |
| 750 | /* GLib log levels that are considered fatal by default */ |
| 751 | #define G_LOG_FATAL_MASKcxx . . $ `src/glib.h:751:9`! (G_LOG_FLAG_RECURSION | G_LOG_LEVEL_ERROR) |
| 752 | |
| 753 | |
| 754 | typedef gpointercxx . . $ gpointer# (*GCacheNewFunccxx . . $ GCacheNewFunc#) (gpointercxx . . $ gpointer# key); |
| 755 | typedef gpointercxx . . $ gpointer# (*GCacheDupFunccxx . . $ GCacheDupFunc#) (gpointercxx . . $ gpointer# value); |
| 756 | typedef void (*GCacheDestroyFunccxx . . $ GCacheDestroyFunc#) (gpointercxx . . $ gpointer# value); |
| 757 | typedef gintcxx . . $ gint# (*GCompareFunccxx . . $ GCompareFunc#) (gconstpointercxx . . $ gconstpointer# a, |
| 758 | gconstpointercxx . . $ gconstpointer# b); |
| 759 | typedef gcharcxx . . $ gchar#* (*GCompletionFunccxx . . $ GCompletionFunc#) (gpointercxx . . $ gpointer#); |
| 760 | typedef void (*GDestroyNotifycxx . . $ GDestroyNotify#) (gpointercxx . . $ gpointer# data); |
| 761 | typedef void (*GDataForeachFunccxx . . $ GDataForeachFunc#) (GQuarkcxx . . $ GQuark# key_id, |
| 762 | gpointercxx . . $ gpointer# data, |
| 763 | gpointercxx . . $ gpointer# user_data); |
| 764 | typedef void (*GFunccxx . . $ GFunc#) (gpointercxx . . $ gpointer# data, |
| 765 | gpointercxx . . $ gpointer# user_data); |
| 766 | typedef guintcxx . . $ guint# (*GHashFunccxx . . $ GHashFunc#) (gconstpointercxx . . $ gconstpointer# key); |
| 767 | typedef void (*GFreeFunccxx . . $ GFreeFunc#) (gpointercxx . . $ gpointer# data); |
| 768 | typedef void (*GHFunccxx . . $ GHFunc#) (gpointercxx . . $ gpointer# key, |
| 769 | gpointercxx . . $ gpointer# value, |
| 770 | gpointercxx . . $ gpointer# user_data); |
| 771 | typedef gbooleancxx . . $ gboolean# (*GHRFunccxx . . $ GHRFunc#) (gpointercxx . . $ gpointer# key, |
| 772 | gpointercxx . . $ gpointer# value, |
| 773 | gpointercxx . . $ gpointer# user_data); |
| 774 | typedef gintcxx . . $ gint# (*GHookCompareFunccxx . . $ GHookCompareFunc#) (GHookcxx . . $ GHook# *new_hook, |
| 775 | GHookcxx . . $ GHook# *sibling); |
| 776 | typedef gbooleancxx . . $ gboolean# (*GHookFindFunccxx . . $ GHookFindFunc#) (GHookcxx . . $ GHook# *hook, |
| 777 | gpointercxx . . $ gpointer# data); |
| 778 | typedef void (*GHookMarshallercxx . . $ GHookMarshaller#) (GHookcxx . . $ GHook# *hook, |
| 779 | gpointercxx . . $ gpointer# data); |
| 780 | typedef gbooleancxx . . $ gboolean# (*GHookCheckMarshallercxx . . $ GHookCheckMarshaller#) (GHookcxx . . $ GHook# *hook, |
| 781 | gpointercxx . . $ gpointer# data); |
| 782 | typedef void (*GHookFunccxx . . $ GHookFunc#) (gpointercxx . . $ gpointer# data); |
| 783 | typedef gbooleancxx . . $ gboolean# (*GHookCheckFunccxx . . $ GHookCheckFunc#) (gpointercxx . . $ gpointer# data); |
| 784 | typedef void (*GHookFreeFunccxx . . $ GHookFreeFunc#) (GHookListcxx . . $ GHookList# *hook_list, |
| 785 | GHookcxx . . $ GHook# *hook); |
| 786 | typedef void (*GLogFunccxx . . $ GLogFunc#) (const gcharcxx . . $ gchar# *log_domain, |
| 787 | GLogLevelFlagscxx . . $ GLogLevelFlags# log_level, |
| 788 | const gcharcxx . . $ gchar# *message, |
| 789 | gpointercxx . . $ gpointer# user_data); |
| 790 | typedef gbooleancxx . . $ gboolean# (*GNodeTraverseFunccxx . . $ GNodeTraverseFunc#) (GNodecxx . . $ GNode# *node, |
| 791 | gpointercxx . . $ gpointer# data); |
| 792 | typedef void (*GNodeForeachFunccxx . . $ GNodeForeachFunc#) (GNodecxx . . $ GNode# *node, |
| 793 | gpointercxx . . $ gpointer# data); |
| 794 | typedef gintcxx . . $ gint# (*GSearchFunccxx . . $ GSearchFunc#) (gpointercxx . . $ gpointer# key, |
| 795 | gpointercxx . . $ gpointer# data); |
| 796 | typedef void (*GScannerMsgFunccxx . . $ GScannerMsgFunc#) (GScannercxx . . $ GScanner# *scanner, |
| 797 | gcharcxx . . $ gchar# *message, |
| 798 | gintcxx . . $ gint# error); |
| 799 | typedef gintcxx . . $ gint# (*GTraverseFunccxx . . $ GTraverseFunc#) (gpointercxx . . $ gpointer# key, |
| 800 | gpointercxx . . $ gpointer# value, |
| 801 | gpointercxx . . $ gpointer# data); |
| 802 | typedef void (*GVoidFunccxx . . $ GVoidFunc#) (void); |
| 803 | |
| 804 | |
| 805 | struct _GListcxx . . $ _GList# |
| 806 | { |
| 807 | gpointercxx . . $ gpointer# datacxx . . $ _GList#data.; |
| 808 | GListcxx . . $ GList# *nextcxx . . $ _GList#next.; |
| 809 | GListcxx . . $ GList# *prevcxx . . $ _GList#prev.; |
| 810 | }; |
| 811 | |
| 812 | struct _GSListcxx . . $ _GSList# |
| 813 | { |
| 814 | gpointercxx . . $ gpointer# datacxx . . $ _GSList#data.; |
| 815 | GSListcxx . . $ GSList# *nextcxx . . $ _GSList#next.; |
| 816 | }; |
| 817 | |
| 818 | struct _GStringcxx . . $ _GString# |
| 819 | { |
| 820 | gcharcxx . . $ gchar# *strcxx . . $ _GString#str.; |
| 821 | gintcxx . . $ gint# lencxx . . $ _GString#len.; |
| 822 | }; |
| 823 | |
| 824 | struct _GArraycxx . . $ _GArray# |
| 825 | { |
| 826 | gcharcxx . . $ gchar# *datacxx . . $ _GArray#data.; |
| 827 | guintcxx . . $ guint# lencxx . . $ _GArray#len.; |
| 828 | }; |
| 829 | |
| 830 | struct _GByteArraycxx . . $ _GByteArray# |
| 831 | { |
| 832 | guint8cxx . . $ guint8# *datacxx . . $ _GByteArray#data.; |
| 833 | guintcxx . . $ guint# lencxx . . $ _GByteArray#len.; |
| 834 | }; |
| 835 | |
| 836 | struct _GPtrArraycxx . . $ _GPtrArray# |
| 837 | { |
| 838 | gpointercxx . . $ gpointer# *pdatacxx . . $ _GPtrArray#pdata.; |
| 839 | guintcxx . . $ guint# lencxx . . $ _GPtrArray#len.; |
| 840 | }; |
| 841 | |
| 842 | struct _GTuplescxx . . $ _GTuples# |
| 843 | { |
| 844 | guintcxx . . $ guint# lencxx . . $ _GTuples#len.; |
| 845 | }; |
| 846 | |
| 847 | struct _GDebugKeycxx . . $ _GDebugKey# |
| 848 | { |
| 849 | gcharcxx . . $ gchar# *keycxx . . $ _GDebugKey#key.; |
| 850 | guintcxx . . $ guint# valuecxx . . $ _GDebugKey#value.; |
| 851 | }; |
| 852 | |
| 853 | |
| 854 | /* Doubly linked lists |
| 855 | */ |
| 856 | void g_list_push_allocatorcxx . . $ g_list_push_allocator(7209962ee68666f1). (GAllocatorcxx . . $ GAllocator# *allocator); |
| 857 | void g_list_pop_allocatorcxx . . $ g_list_pop_allocator(49f6e7a06ebc5aa8). (void); |
| 858 | GListcxx . . $ GList#* g_list_alloccxx . . $ g_list_alloc(56e46de9ce394279). (void); |
| 859 | void g_list_freecxx . . $ g_list_free(d1b6ff1ff9a6d4b6). (GListcxx . . $ GList# *list); |
| 860 | void g_list_free_1cxx . . $ g_list_free_1(d1b6ff1ff9a6d4b6). (GListcxx . . $ GList# *list); |
| 861 | GListcxx . . $ GList#* g_list_appendcxx . . $ g_list_append(35007086a6b2ba1c). (GListcxx . . $ GList# *list, |
| 862 | gpointercxx . . $ gpointer# data); |
| 863 | GListcxx . . $ GList#* g_list_prependcxx . . $ g_list_prepend(35007086a6b2ba1c). (GListcxx . . $ GList# *list, |
| 864 | gpointercxx . . $ gpointer# data); |
| 865 | GListcxx . . $ GList#* g_list_insertcxx . . $ g_list_insert(1a93bf114ae1da4d). (GListcxx . . $ GList# *list, |
| 866 | gpointercxx . . $ gpointer# data, |
| 867 | gintcxx . . $ gint# position); |
| 868 | GListcxx . . $ GList#* g_list_insert_sortedcxx . . $ g_list_insert_sorted(31e9c5be4e6f64c4). (GListcxx . . $ GList# *list, |
| 869 | gpointercxx . . $ gpointer# data, |
| 870 | GCompareFunccxx . . $ GCompareFunc# func); |
| 871 | GListcxx . . $ GList#* g_list_concatcxx . . $ g_list_concat(8f293ee9e7c86892). (GListcxx . . $ GList# *list1, |
| 872 | GListcxx . . $ GList# *list2); |
| 873 | GListcxx . . $ GList#* g_list_removecxx . . $ g_list_remove(35007086a6b2ba1c). (GListcxx . . $ GList# *list, |
| 874 | gpointercxx . . $ gpointer# data); |
| 875 | GListcxx . . $ GList#* g_list_remove_linkcxx . . $ g_list_remove_link(8f293ee9e7c86892). (GListcxx . . $ GList# *list, |
| 876 | GListcxx . . $ GList# *llink); |
| 877 | GListcxx . . $ GList#* g_list_reversecxx . . $ g_list_reverse(e31b64636014b719). (GListcxx . . $ GList# *list); |
| 878 | GListcxx . . $ GList#* g_list_copycxx . . $ g_list_copy(e31b64636014b719). (GListcxx . . $ GList# *list); |
| 879 | GListcxx . . $ GList#* g_list_nthcxx . . $ g_list_nth(a9fdb5fe6cd98ae). (GListcxx . . $ GList# *list, |
| 880 | guintcxx . . $ guint# n); |
| 881 | GListcxx . . $ GList#* g_list_findcxx . . $ g_list_find(35007086a6b2ba1c). (GListcxx . . $ GList# *list, |
| 882 | gpointercxx . . $ gpointer# data); |
| 883 | GListcxx . . $ GList#* g_list_find_customcxx . . $ g_list_find_custom(31e9c5be4e6f64c4). (GListcxx . . $ GList# *list, |
| 884 | gpointercxx . . $ gpointer# data, |
| 885 | GCompareFunccxx . . $ GCompareFunc# func); |
| 886 | gintcxx . . $ gint# g_list_positioncxx . . $ g_list_position(4767a0040f829e60). (GListcxx . . $ GList# *list, |
| 887 | GListcxx . . $ GList# *llink); |
| 888 | gintcxx . . $ gint# g_list_indexcxx . . $ g_list_index(11c8c633afd2b5a3). (GListcxx . . $ GList# *list, |
| 889 | gpointercxx . . $ gpointer# data); |
| 890 | GListcxx . . $ GList#* g_list_lastcxx . . $ g_list_last(e31b64636014b719). (GListcxx . . $ GList# *list); |
| 891 | GListcxx . . $ GList#* g_list_firstcxx . . $ g_list_first(e31b64636014b719). (GListcxx . . $ GList# *list); |
| 892 | guintcxx . . $ guint# g_list_lengthcxx . . $ g_list_length(950b32bff6717769). (GListcxx . . $ GList# *list); |
| 893 | void g_list_foreachcxx . . $ g_list_foreach(c0809167e38acf02). (GListcxx . . $ GList# *list, |
| 894 | GFunccxx . . $ GFunc# func, |
| 895 | gpointercxx . . $ gpointer# user_data); |
| 896 | GListcxx . . $ GList#* g_list_sortcxx . . $ g_list_sort(2f167d9c9a2fdb9c). (GListcxx . . $ GList# *list, |
| 897 | GCompareFunccxx . . $ GCompareFunc# compare_func); |
| 898 | gpointercxx . . $ gpointer# g_list_nth_datacxx . . $ g_list_nth_data(15bf82b9d51fe1f). (GListcxx . . $ GList# *list, |
| 899 | guintcxx . . $ guint# n); |
| 900 | #define g_list_previouscxx . . $ `src/glib.h:900:9`!(list) ((list) ? (((GList *)(list))->prev) : NULL) |
| 901 | #define g_list_nextcxx . . $ `src/glib.h:901:9`!(list) ((list) ? (((GList *)(list))->next) : NULL) |
| 902 | |
| 903 | |
| 904 | /* Singly linked lists |
| 905 | */ |
| 906 | void g_slist_push_allocatorcxx . . $ g_slist_push_allocator(7209962ee68666f1). (GAllocatorcxx . . $ GAllocator# *allocator); |
| 907 | void g_slist_pop_allocatorcxx . . $ g_slist_pop_allocator(49f6e7a06ebc5aa8). (void); |
| 908 | GSListcxx . . $ GSList#* g_slist_alloccxx . . $ g_slist_alloc(ac8c5e3d2c648916). (void); |
| 909 | void g_slist_freecxx . . $ g_slist_free(e7f64dba92841206). (GSListcxx . . $ GSList# *list); |
| 910 | void g_slist_free_1cxx . . $ g_slist_free_1(e7f64dba92841206). (GSListcxx . . $ GSList# *list); |
| 911 | GSListcxx . . $ GSList#* g_slist_appendcxx . . $ g_slist_append(6eb923d8c45a5456). (GSListcxx . . $ GSList# *list, |
| 912 | gpointercxx . . $ gpointer# data); |
| 913 | GSListcxx . . $ GSList#* g_slist_prependcxx . . $ g_slist_prepend(6eb923d8c45a5456). (GSListcxx . . $ GSList# *list, |
| 914 | gpointercxx . . $ gpointer# data); |
| 915 | GSListcxx . . $ GSList#* g_slist_insertcxx . . $ g_slist_insert(a47450bb247f2686). (GSListcxx . . $ GSList# *list, |
| 916 | gpointercxx . . $ gpointer# data, |
| 917 | gintcxx . . $ gint# position); |
| 918 | GSListcxx . . $ GSList#* g_slist_insert_sortedcxx . . $ g_slist_insert_sorted(456a731f1e369639). (GSListcxx . . $ GSList# *list, |
| 919 | gpointercxx . . $ gpointer# data, |
| 920 | GCompareFunccxx . . $ GCompareFunc# func); |
| 921 | GSListcxx . . $ GSList#* g_slist_concatcxx . . $ g_slist_concat(2dea58bd92967320). (GSListcxx . . $ GSList# *list1, |
| 922 | GSListcxx . . $ GSList# *list2); |
| 923 | GSListcxx . . $ GSList#* g_slist_removecxx . . $ g_slist_remove(6eb923d8c45a5456). (GSListcxx . . $ GSList# *list, |
| 924 | gpointercxx . . $ gpointer# data); |
| 925 | GSListcxx . . $ GSList#* g_slist_remove_linkcxx . . $ g_slist_remove_link(2dea58bd92967320). (GSListcxx . . $ GSList# *list, |
| 926 | GSListcxx . . $ GSList# *llink); |
| 927 | GSListcxx . . $ GSList#* g_slist_reversecxx . . $ g_slist_reverse(e6171a83469a530). (GSListcxx . . $ GSList# *list); |
| 928 | GSListcxx . . $ GSList#* g_slist_copycxx . . $ g_slist_copy(e6171a83469a530). (GSListcxx . . $ GSList# *list); |
| 929 | GSListcxx . . $ GSList#* g_slist_nthcxx . . $ g_slist_nth(4e6d1715d8ffd22a). (GSListcxx . . $ GSList# *list, |
| 930 | guintcxx . . $ guint# n); |
| 931 | GSListcxx . . $ GSList#* g_slist_findcxx . . $ g_slist_find(6eb923d8c45a5456). (GSListcxx . . $ GSList# *list, |
| 932 | gpointercxx . . $ gpointer# data); |
| 933 | GSListcxx . . $ GSList#* g_slist_find_customcxx . . $ g_slist_find_custom(456a731f1e369639). (GSListcxx . . $ GSList# *list, |
| 934 | gpointercxx . . $ gpointer# data, |
| 935 | GCompareFunccxx . . $ GCompareFunc# func); |
| 936 | gintcxx . . $ gint# g_slist_positioncxx . . $ g_slist_position(3b22c7520183fa2b). (GSListcxx . . $ GSList# *list, |
| 937 | GSListcxx . . $ GSList# *llink); |
| 938 | gintcxx . . $ gint# g_slist_indexcxx . . $ g_slist_index(9df3688e2805b898). (GSListcxx . . $ GSList# *list, |
| 939 | gpointercxx . . $ gpointer# data); |
| 940 | GSListcxx . . $ GSList#* g_slist_lastcxx . . $ g_slist_last(e6171a83469a530). (GSListcxx . . $ GSList# *list); |
| 941 | guintcxx . . $ guint# g_slist_lengthcxx . . $ g_slist_length(45e8ed29af795520). (GSListcxx . . $ GSList# *list); |
| 942 | void g_slist_foreachcxx . . $ g_slist_foreach(c513a8dae1c27eff). (GSListcxx . . $ GSList# *list, |
| 943 | GFunccxx . . $ GFunc# func, |
| 944 | gpointercxx . . $ gpointer# user_data); |
| 945 | GSListcxx . . $ GSList#* g_slist_sortcxx . . $ g_slist_sort(b043f52b361934e5). (GSListcxx . . $ GSList# *list, |
| 946 | GCompareFunccxx . . $ GCompareFunc# compare_func); |
| 947 | gpointercxx . . $ gpointer# g_slist_nth_datacxx . . $ g_slist_nth_data(358d464c1a947e59). (GSListcxx . . $ GSList# *list, |
| 948 | guintcxx . . $ guint# n); |
| 949 | #define g_slist_nextcxx . . $ `src/glib.h:949:9`!(slist) ((slist) ? (((GSList *)(slist))->next) : NULL) |
| 950 | |
| 951 | |
| 952 | /* Hash tables |
| 953 | */ |
| 954 | GHashTablecxx . . $ GHashTable#* g_hash_table_newcxx . . $ g_hash_table_new(444186de27d60923). (GHashFunccxx . . $ GHashFunc# hash_func, |
| 955 | GCompareFunccxx . . $ GCompareFunc# key_compare_func); |
| 956 | void g_hash_table_destroycxx . . $ g_hash_table_destroy(ce4eddf544b9218). (GHashTablecxx . . $ GHashTable# *hash_table); |
| 957 | void g_hash_table_insertcxx . . $ g_hash_table_insert(7423a480b6f7e040). (GHashTablecxx . . $ GHashTable# *hash_table, |
| 958 | gpointercxx . . $ gpointer# key, |
| 959 | gpointercxx . . $ gpointer# value); |
| 960 | void g_hash_table_removecxx . . $ g_hash_table_remove(5b7262f67ea20831). (GHashTablecxx . . $ GHashTable# *hash_table, |
| 961 | gconstpointercxx . . $ gconstpointer# key); |
| 962 | gpointercxx . . $ gpointer# g_hash_table_lookupcxx . . $ g_hash_table_lookup(8183d62c39a6a245). (GHashTablecxx . . $ GHashTable# *hash_table, |
| 963 | gconstpointercxx . . $ gconstpointer# key); |
| 964 | gbooleancxx . . $ gboolean# g_hash_table_lookup_extendedcxx . . $ g_hash_table_lookup_extended(af2aa9836613954a).(GHashTablecxx . . $ GHashTable# *hash_table, |
| 965 | gconstpointercxx . . $ gconstpointer# lookup_key, |
| 966 | gpointercxx . . $ gpointer# *orig_key, |
| 967 | gpointercxx . . $ gpointer# *value); |
| 968 | void g_hash_table_freezecxx . . $ g_hash_table_freeze(ce4eddf544b9218). (GHashTablecxx . . $ GHashTable# *hash_table); |
| 969 | void g_hash_table_thawcxx . . $ g_hash_table_thaw(ce4eddf544b9218). (GHashTablecxx . . $ GHashTable# *hash_table); |
| 970 | void g_hash_table_foreachcxx . . $ g_hash_table_foreach(73ccd828d1937cc0). (GHashTablecxx . . $ GHashTable# *hash_table, |
| 971 | GHFunccxx . . $ GHFunc# func, |
| 972 | gpointercxx . . $ gpointer# user_data); |
| 973 | guintcxx . . $ guint# g_hash_table_foreach_removecxx . . $ g_hash_table_foreach_remove(63ef7c098f0bd685). (GHashTablecxx . . $ GHashTable# *hash_table, |
| 974 | GHRFunccxx . . $ GHRFunc# func, |
| 975 | gpointercxx . . $ gpointer# user_data); |
| 976 | guintcxx . . $ guint# g_hash_table_sizecxx . . $ g_hash_table_size(4b2d4d194d262c0c). (GHashTablecxx . . $ GHashTable# *hash_table); |
| 977 | |
| 978 | |
| 979 | /* Caches |
| 980 | */ |
| 981 | GCachecxx . . $ GCache#* g_cache_newcxx . . $ g_cache_new(8ad3575b7b1a53ca). (GCacheNewFunccxx . . $ GCacheNewFunc# value_new_func, |
| 982 | GCacheDestroyFunccxx . . $ GCacheDestroyFunc# value_destroy_func, |
| 983 | GCacheDupFunccxx . . $ GCacheDupFunc# key_dup_func, |
| 984 | GCacheDestroyFunccxx . . $ GCacheDestroyFunc# key_destroy_func, |
| 985 | GHashFunccxx . . $ GHashFunc# hash_key_func, |
| 986 | GHashFunccxx . . $ GHashFunc# hash_value_func, |
| 987 | GCompareFunccxx . . $ GCompareFunc# key_compare_func); |
| 988 | void g_cache_destroycxx . . $ g_cache_destroy(f6616836c168ca08). (GCachecxx . . $ GCache# *cache); |
| 989 | gpointercxx . . $ gpointer# g_cache_insertcxx . . $ g_cache_insert(bec5c8b2b88c75ef). (GCachecxx . . $ GCache# *cache, |
| 990 | gpointercxx . . $ gpointer# key); |
| 991 | void g_cache_removecxx . . $ g_cache_remove(912d4d2ea734f583). (GCachecxx . . $ GCache# *cache, |
| 992 | gpointercxx . . $ gpointer# value); |
| 993 | void g_cache_key_foreachcxx . . $ g_cache_key_foreach(716541c81ac4f75e). (GCachecxx . . $ GCache# *cache, |
| 994 | GHFunccxx . . $ GHFunc# func, |
| 995 | gpointercxx . . $ gpointer# user_data); |
| 996 | void g_cache_value_foreachcxx . . $ g_cache_value_foreach(716541c81ac4f75e). (GCachecxx . . $ GCache# *cache, |
| 997 | GHFunccxx . . $ GHFunc# func, |
| 998 | gpointercxx . . $ gpointer# user_data); |
| 999 | |
| 1000 | |
| 1001 | /* Balanced binary trees |
| 1002 | */ |
| 1003 | GTreecxx . . $ GTree#* g_tree_newcxx . . $ g_tree_new(1c4d2ca212903d2b). (GCompareFunccxx . . $ GCompareFunc# key_compare_func); |
| 1004 | void g_tree_destroycxx . . $ g_tree_destroy(e385a34483437f20). (GTreecxx . . $ GTree# *tree); |
| 1005 | void g_tree_insertcxx . . $ g_tree_insert(fc9ce173b03d7647). (GTreecxx . . $ GTree# *tree, |
| 1006 | gpointercxx . . $ gpointer# key, |
| 1007 | gpointercxx . . $ gpointer# value); |
| 1008 | void g_tree_removecxx . . $ g_tree_remove(fa86d7b02ec30e03). (GTreecxx . . $ GTree# *tree, |
| 1009 | gpointercxx . . $ gpointer# key); |
| 1010 | gpointercxx . . $ gpointer# g_tree_lookupcxx . . $ g_tree_lookup(1cc6131ad160f120). (GTreecxx . . $ GTree# *tree, |
| 1011 | gpointercxx . . $ gpointer# key); |
| 1012 | void g_tree_traversecxx . . $ g_tree_traverse(1a7d5c45de5c3ceb). (GTreecxx . . $ GTree# *tree, |
| 1013 | GTraverseFunccxx . . $ GTraverseFunc# traverse_func, |
| 1014 | GTraverseTypecxx . . $ GTraverseType# traverse_type, |
| 1015 | gpointercxx . . $ gpointer# data); |
| 1016 | gpointercxx . . $ gpointer# g_tree_searchcxx . . $ g_tree_search(54798eba53120b6). (GTreecxx . . $ GTree# *tree, |
| 1017 | GSearchFunccxx . . $ GSearchFunc# search_func, |
| 1018 | gpointercxx . . $ gpointer# data); |
| 1019 | gintcxx . . $ gint# g_tree_heightcxx . . $ g_tree_height(a7d407b476d1a00f). (GTreecxx . . $ GTree# *tree); |
| 1020 | gintcxx . . $ gint# g_tree_nnodescxx . . $ g_tree_nnodes(a7d407b476d1a00f). (GTreecxx . . $ GTree# *tree); |
| 1021 | |
| 1022 | |
| 1023 | |
| 1024 | /* N-way tree implementation |
| 1025 | */ |
| 1026 | struct _GNodecxx . . $ _GNode# |
| 1027 | { |
| 1028 | gpointercxx . . $ gpointer# datacxx . . $ _GNode#data.; |
| 1029 | GNodecxx . . $ GNode# *nextcxx . . $ _GNode#next.; |
| 1030 | GNodecxx . . $ GNode# *prevcxx . . $ _GNode#prev.; |
| 1031 | GNodecxx . . $ GNode# *parentcxx . . $ _GNode#parent.; |
| 1032 | GNodecxx . . $ GNode# *childrencxx . . $ _GNode#children.; |
| 1033 | }; |
| 1034 | |
| 1035 | #define G_NODE_IS_ROOTcxx . . $ `src/glib.h:1035:10`!(node) (((GNode*) (node))->parent == NULL && \ |
| 1036 | ((GNode*) (node))->prev == NULL && \ |
| 1037 | ((GNode*) (node))->next == NULL) |
| 1038 | #define G_NODE_IS_LEAFcxx . . $ `src/glib.h:1038:10`!(node) (((GNode*) (node))->children == NULL) |
| 1039 | |
| 1040 | void g_node_push_allocatorcxx . . $ g_node_push_allocator(7209962ee68666f1). (GAllocatorcxx . . $ GAllocator# *allocator); |
| 1041 | void g_node_pop_allocatorcxx . . $ g_node_pop_allocator(49f6e7a06ebc5aa8). (void); |
| 1042 | GNodecxx . . $ GNode#* g_node_newcxx . . $ g_node_new(d36cf0dc028b124f). (gpointercxx . . $ gpointer# data); |
| 1043 | void g_node_destroycxx . . $ g_node_destroy(d78977094183c51e). (GNodecxx . . $ GNode# *root); |
| 1044 | void g_node_unlinkcxx . . $ g_node_unlink(d78977094183c51e). (GNodecxx . . $ GNode# *node); |
| 1045 | GNodecxx . . $ GNode#* g_node_insertcxx . . $ g_node_insert(7672656de3eb9486). (GNodecxx . . $ GNode# *parent, |
| 1046 | gintcxx . . $ gint# position, |
| 1047 | GNodecxx . . $ GNode# *node); |
| 1048 | GNodecxx . . $ GNode#* g_node_insert_beforecxx . . $ g_node_insert_before(8d8fca260f7360b2). (GNodecxx . . $ GNode# *parent, |
| 1049 | GNodecxx . . $ GNode# *sibling, |
| 1050 | GNodecxx . . $ GNode# *node); |
| 1051 | GNodecxx . . $ GNode#* g_node_prependcxx . . $ g_node_prepend(965522c174353dc0). (GNodecxx . . $ GNode# *parent, |
| 1052 | GNodecxx . . $ GNode# *node); |
| 1053 | guintcxx . . $ guint# g_node_n_nodescxx . . $ g_node_n_nodes(aca48c0a8a36b342). (GNodecxx . . $ GNode# *root, |
| 1054 | GTraverseFlagscxx . . $ GTraverseFlags# flags); |
| 1055 | GNodecxx . . $ GNode#* g_node_get_rootcxx . . $ g_node_get_root(bba9048a485479d8). (GNodecxx . . $ GNode# *node); |
| 1056 | gbooleancxx . . $ gboolean# g_node_is_ancestorcxx . . $ g_node_is_ancestor(c4c3e152f22689d6). (GNodecxx . . $ GNode# *node, |
| 1057 | GNodecxx . . $ GNode# *descendant); |
| 1058 | guintcxx . . $ guint# g_node_depthcxx . . $ g_node_depth(2546b65e2024ab9c). (GNodecxx . . $ GNode# *node); |
| 1059 | GNodecxx . . $ GNode#* g_node_findcxx . . $ g_node_find(f80b793c9de30cce). (GNodecxx . . $ GNode# *root, |
| 1060 | GTraverseTypecxx . . $ GTraverseType# order, |
| 1061 | GTraverseFlagscxx . . $ GTraverseFlags# flags, |
| 1062 | gpointercxx . . $ gpointer# data); |
| 1063 | |
| 1064 | /* convenience macros */ |
| 1065 | #define g_node_appendcxx . . $ `src/glib.h:1065:9`!(parent, node) \ |
| 1066 | g_node_insert_before ((parent), NULL, (node)) |
| 1067 | #define g_node_insert_datacxx . . $ `src/glib.h:1067:9`!(parent, position, data) \ |
| 1068 | g_node_insert ((parent), (position), g_node_new (data)) |
| 1069 | #define g_node_insert_data_beforecxx . . $ `src/glib.h:1069:9`!(parent, sibling, data) \ |
| 1070 | g_node_insert_before ((parent), (sibling), g_node_new (data)) |
| 1071 | #define g_node_prepend_datacxx . . $ `src/glib.h:1071:9`!(parent, data) \ |
| 1072 | g_node_prepend ((parent), g_node_new (data)) |
| 1073 | #define g_node_append_datacxx . . $ `src/glib.h:1073:9`!(parent, data) \ |
| 1074 | g_node_insert_before ((parent), NULL, g_node_new (data)) |
| 1075 | |
| 1076 | /* traversal function, assumes that `node' is root |
| 1077 | * (only traverses `node' and its subtree). |
| 1078 | * this function is just a high level interface to |
| 1079 | * low level traversal functions, optimized for speed. |
| 1080 | */ |
| 1081 | void g_node_traversecxx . . $ g_node_traverse(91b6ea02be4795a0). (GNodecxx . . $ GNode# *root, |
| 1082 | GTraverseTypecxx . . $ GTraverseType# order, |
| 1083 | GTraverseFlagscxx . . $ GTraverseFlags# flags, |
| 1084 | gintcxx . . $ gint# max_depth, |
| 1085 | GNodeTraverseFunccxx . . $ GNodeTraverseFunc# func, |
| 1086 | gpointercxx . . $ gpointer# data); |
| 1087 | |
| 1088 | /* return the maximum tree height starting with `node', this is an expensive |
| 1089 | * operation, since we need to visit all nodes. this could be shortened by |
| 1090 | * adding `guint height' to struct _GNode, but then again, this is not very |
| 1091 | * often needed, and would make g_node_insert() more time consuming. |
| 1092 | */ |
| 1093 | guintcxx . . $ guint# g_node_max_heightcxx . . $ g_node_max_height(2546b65e2024ab9c). (GNodecxx . . $ GNode# *root); |
| 1094 | |
| 1095 | void g_node_children_foreachcxx . . $ g_node_children_foreach(b97441040aab5f59). (GNodecxx . . $ GNode# *node, |
| 1096 | GTraverseFlagscxx . . $ GTraverseFlags# flags, |
| 1097 | GNodeForeachFunccxx . . $ GNodeForeachFunc# func, |
| 1098 | gpointercxx . . $ gpointer# data); |
| 1099 | void g_node_reverse_childrencxx . . $ g_node_reverse_children(d78977094183c51e). (GNodecxx . . $ GNode# *node); |
| 1100 | guintcxx . . $ guint# g_node_n_childrencxx . . $ g_node_n_children(2546b65e2024ab9c). (GNodecxx . . $ GNode# *node); |
| 1101 | GNodecxx . . $ GNode#* g_node_nth_childcxx . . $ g_node_nth_child(964e6e9fe23ca080). (GNodecxx . . $ GNode# *node, |
| 1102 | guintcxx . . $ guint# n); |
| 1103 | GNodecxx . . $ GNode#* g_node_last_childcxx . . $ g_node_last_child(bba9048a485479d8). (GNodecxx . . $ GNode# *node); |
| 1104 | GNodecxx . . $ GNode#* g_node_find_childcxx . . $ g_node_find_child(f5334198af83000d). (GNodecxx . . $ GNode# *node, |
| 1105 | GTraverseFlagscxx . . $ GTraverseFlags# flags, |
| 1106 | gpointercxx . . $ gpointer# data); |
| 1107 | gintcxx . . $ gint# g_node_child_positioncxx . . $ g_node_child_position(c4c3e152f22689d6). (GNodecxx . . $ GNode# *node, |
| 1108 | GNodecxx . . $ GNode# *child); |
| 1109 | gintcxx . . $ gint# g_node_child_indexcxx . . $ g_node_child_index(83330ee56ef2033). (GNodecxx . . $ GNode# *node, |
| 1110 | gpointercxx . . $ gpointer# data); |
| 1111 | |
| 1112 | GNodecxx . . $ GNode#* g_node_first_siblingcxx . . $ g_node_first_sibling(bba9048a485479d8). (GNodecxx . . $ GNode# *node); |
| 1113 | GNodecxx . . $ GNode#* g_node_last_siblingcxx . . $ g_node_last_sibling(bba9048a485479d8). (GNodecxx . . $ GNode# *node); |
| 1114 | |
| 1115 | #define g_node_prev_siblingcxx . . $ `src/glib.h:1115:10`!(node) ((node) ? \ |
| 1116 | ((GNode*) (node))->prev : NULL) |
| 1117 | #define g_node_next_siblingcxx . . $ `src/glib.h:1117:10`!(node) ((node) ? \ |
| 1118 | ((GNode*) (node))->next : NULL) |
| 1119 | #define g_node_first_childcxx . . $ `src/glib.h:1119:10`!(node) ((node) ? \ |
| 1120 | ((GNode*) (node))->children : NULL) |
| 1121 | |
| 1122 | |
| 1123 | /* Callback maintenance functions |
| 1124 | */ |
| 1125 | #define G_HOOK_FLAG_USER_SHIFTcxx . . $ `src/glib.h:1125:9`! (4) |
| 1126 | typedef enumcxx . . $ $anonymous_type_5f24bfb0b343acaa_3# |
| 1127 | { |
| 1128 | G_HOOK_FLAG_ACTIVEcxx . . $ G_HOOK_FLAG_ACTIVE. = 1 << 0, |
| 1129 | G_HOOK_FLAG_IN_CALLcxx . . $ G_HOOK_FLAG_IN_CALL. = 1 << 1, |
| 1130 | G_HOOK_FLAG_MASKcxx . . $ G_HOOK_FLAG_MASK. = 0x0f |
| 1131 | } GHookFlagMaskcxx . . $ GHookFlagMask#; |
| 1132 | |
| 1133 | #define G_HOOK_DEFERRED_DESTROYcxx . . $ `src/glib.h:1133:9`! ((GHookFreeFunc) 0x01) |
| 1134 | |
| 1135 | struct _GHookListcxx . . $ _GHookList# |
| 1136 | { |
| 1137 | guintcxx . . $ guint# seq_idcxx . . $ _GHookList#seq_id.; |
| 1138 | guintcxx . . $ guint# hook_sizecxx . . $ _GHookList#hook_size.; |
| 1139 | guintcxx . . $ guint# is_setupcxx . . $ _GHookList#is_setup. : 1; |
| 1140 | GHookcxx . . $ GHook# *hookscxx . . $ _GHookList#hooks.; |
| 1141 | GMemChunkcxx . . $ GMemChunk# *hook_memchunkcxx . . $ _GHookList#hook_memchunk.; |
| 1142 | GHookFreeFunccxx . . $ GHookFreeFunc# hook_freecxx . . $ _GHookList#hook_free.; /* virtual function */ |
| 1143 | GHookFreeFunccxx . . $ GHookFreeFunc# hook_destroycxx . . $ _GHookList#hook_destroy.; /* virtual function */ |
| 1144 | }; |
| 1145 | |
| 1146 | struct _GHookcxx . . $ _GHook# |
| 1147 | { |
| 1148 | gpointercxx . . $ gpointer# datacxx . . $ _GHook#data.; |
| 1149 | GHookcxx . . $ GHook# *nextcxx . . $ _GHook#next.; |
| 1150 | GHookcxx . . $ GHook# *prevcxx . . $ _GHook#prev.; |
| 1151 | guintcxx . . $ guint# ref_countcxx . . $ _GHook#ref_count.; |
| 1152 | guintcxx . . $ guint# hook_idcxx . . $ _GHook#hook_id.; |
| 1153 | guintcxx . . $ guint# flagscxx . . $ _GHook#flags.; |
| 1154 | gpointercxx . . $ gpointer# funccxx . . $ _GHook#func.; |
| 1155 | GDestroyNotifycxx . . $ GDestroyNotify# destroycxx . . $ _GHook#destroy.; |
| 1156 | }; |
| 1157 | |
| 1158 | #define G_HOOK_ACTIVEcxx . . $ `src/glib.h:1158:9`!(hook) ((((GHook*) hook)->flags & \ |
| 1159 | G_HOOK_FLAG_ACTIVE) != 0) |
| 1160 | #define G_HOOK_IN_CALLcxx . . $ `src/glib.h:1160:9`!(hook) ((((GHook*) hook)->flags & \ |
| 1161 | G_HOOK_FLAG_IN_CALL) != 0) |
| 1162 | #define G_HOOK_IS_VALIDcxx . . $ `src/glib.h:1162:9`!(hook) (((GHook*) hook)->hook_id != 0 && \ |
| 1163 | G_HOOK_ACTIVE (hook)) |
| 1164 | #define G_HOOK_IS_UNLINKEDcxx . . $ `src/glib.h:1164:9`!(hook) (((GHook*) hook)->next == NULL && \ |
| 1165 | ((GHook*) hook)->prev == NULL && \ |
| 1166 | ((GHook*) hook)->hook_id == 0 && \ |
| 1167 | ((GHook*) hook)->ref_count == 0) |
| 1168 | |
| 1169 | void g_hook_list_initcxx . . $ g_hook_list_init(770c67c3365052e4). (GHookListcxx . . $ GHookList# *hook_list, |
| 1170 | guintcxx . . $ guint# hook_size); |
| 1171 | void g_hook_list_clearcxx . . $ g_hook_list_clear(b3972e755a5cc40d). (GHookListcxx . . $ GHookList# *hook_list); |
| 1172 | GHookcxx . . $ GHook#* g_hook_alloccxx . . $ g_hook_alloc(9196c266a4b17ff4). (GHookListcxx . . $ GHookList# *hook_list); |
| 1173 | void g_hook_freecxx . . $ g_hook_free(65397ba57945ddda). (GHookListcxx . . $ GHookList# *hook_list, |
| 1174 | GHookcxx . . $ GHook# *hook); |
| 1175 | void g_hook_refcxx . . $ g_hook_ref(65397ba57945ddda). (GHookListcxx . . $ GHookList# *hook_list, |
| 1176 | GHookcxx . . $ GHook# *hook); |
| 1177 | void g_hook_unrefcxx . . $ g_hook_unref(65397ba57945ddda). (GHookListcxx . . $ GHookList# *hook_list, |
| 1178 | GHookcxx . . $ GHook# *hook); |
| 1179 | gbooleancxx . . $ gboolean# g_hook_destroycxx . . $ g_hook_destroy(469446fd39aa4711). (GHookListcxx . . $ GHookList# *hook_list, |
| 1180 | guintcxx . . $ guint# hook_id); |
| 1181 | void g_hook_destroy_linkcxx . . $ g_hook_destroy_link(65397ba57945ddda). (GHookListcxx . . $ GHookList# *hook_list, |
| 1182 | GHookcxx . . $ GHook# *hook); |
| 1183 | void g_hook_prependcxx . . $ g_hook_prepend(65397ba57945ddda). (GHookListcxx . . $ GHookList# *hook_list, |
| 1184 | GHookcxx . . $ GHook# *hook); |
| 1185 | void g_hook_insert_beforecxx . . $ g_hook_insert_before(9ae3997df46bb58b). (GHookListcxx . . $ GHookList# *hook_list, |
| 1186 | GHookcxx . . $ GHook# *sibling, |
| 1187 | GHookcxx . . $ GHook# *hook); |
| 1188 | void g_hook_insert_sortedcxx . . $ g_hook_insert_sorted(d691b691ad27a45b). (GHookListcxx . . $ GHookList# *hook_list, |
| 1189 | GHookcxx . . $ GHook# *hook, |
| 1190 | GHookCompareFunccxx . . $ GHookCompareFunc# func); |
| 1191 | GHookcxx . . $ GHook#* g_hook_getcxx . . $ g_hook_get(6ffbc209b71352c6). (GHookListcxx . . $ GHookList# *hook_list, |
| 1192 | guintcxx . . $ guint# hook_id); |
| 1193 | GHookcxx . . $ GHook#* g_hook_findcxx . . $ g_hook_find(e0a7bba8b5b669af). (GHookListcxx . . $ GHookList# *hook_list, |
| 1194 | gbooleancxx . . $ gboolean# need_valids, |
| 1195 | GHookFindFunccxx . . $ GHookFindFunc# func, |
| 1196 | gpointercxx . . $ gpointer# data); |
| 1197 | GHookcxx . . $ GHook#* g_hook_find_datacxx . . $ g_hook_find_data(c945d613ddef9d79). (GHookListcxx . . $ GHookList# *hook_list, |
| 1198 | gbooleancxx . . $ gboolean# need_valids, |
| 1199 | gpointercxx . . $ gpointer# data); |
| 1200 | GHookcxx . . $ GHook#* g_hook_find_funccxx . . $ g_hook_find_func(c945d613ddef9d79). (GHookListcxx . . $ GHookList# *hook_list, |
| 1201 | gbooleancxx . . $ gboolean# need_valids, |
| 1202 | gpointercxx . . $ gpointer# func); |
| 1203 | GHookcxx . . $ GHook#* g_hook_find_func_datacxx . . $ g_hook_find_func_data(2b404be4f7df4942). (GHookListcxx . . $ GHookList# *hook_list, |
| 1204 | gbooleancxx . . $ gboolean# need_valids, |
| 1205 | gpointercxx . . $ gpointer# func, |
| 1206 | gpointercxx . . $ gpointer# data); |
| 1207 | /* return the first valid hook, and increment its reference count */ |
| 1208 | GHookcxx . . $ GHook#* g_hook_first_validcxx . . $ g_hook_first_valid(964ad294b4b0d12e). (GHookListcxx . . $ GHookList# *hook_list, |
| 1209 | gbooleancxx . . $ gboolean# may_be_in_call); |
| 1210 | /* return the next valid hook with incremented reference count, and |
| 1211 | * decrement the reference count of the original hook |
| 1212 | */ |
| 1213 | GHookcxx . . $ GHook#* g_hook_next_validcxx . . $ g_hook_next_valid(d8795b2439216e0c). (GHookListcxx . . $ GHookList# *hook_list, |
| 1214 | GHookcxx . . $ GHook# *hook, |
| 1215 | gbooleancxx . . $ gboolean# may_be_in_call); |
| 1216 | |
| 1217 | /* GHookCompareFunc implementation to insert hooks sorted by their id */ |
| 1218 | gintcxx . . $ gint# g_hook_compare_idscxx . . $ g_hook_compare_ids(f7b06fb26e05780a). (GHookcxx . . $ GHook# *new_hook, |
| 1219 | GHookcxx . . $ GHook# *sibling); |
| 1220 | |
| 1221 | /* convenience macros */ |
| 1222 | #define g_hook_appendcxx . . $ `src/glib.h:1222:10`!( hook_list, hook ) \ |
| 1223 | g_hook_insert_before ((hook_list), NULL, (hook)) |
| 1224 | |
| 1225 | /* invoke all valid hooks with the (*GHookFunc) signature. |
| 1226 | */ |
| 1227 | void g_hook_list_invokecxx . . $ g_hook_list_invoke(b800b85d4a7526cc). (GHookListcxx . . $ GHookList# *hook_list, |
| 1228 | gbooleancxx . . $ gboolean# may_recurse); |
| 1229 | /* invoke all valid hooks with the (*GHookCheckFunc) signature, |
| 1230 | * and destroy the hook if FALSE is returned. |
| 1231 | */ |
| 1232 | void g_hook_list_invoke_checkcxx . . $ g_hook_list_invoke_check(b800b85d4a7526cc). (GHookListcxx . . $ GHookList# *hook_list, |
| 1233 | gbooleancxx . . $ gboolean# may_recurse); |
| 1234 | /* invoke a marshaller on all valid hooks. |
| 1235 | */ |
| 1236 | void g_hook_list_marshalcxx . . $ g_hook_list_marshal(b84e7096e70180a5). (GHookListcxx . . $ GHookList# *hook_list, |
| 1237 | gbooleancxx . . $ gboolean# may_recurse, |
| 1238 | GHookMarshallercxx . . $ GHookMarshaller# marshaller, |
| 1239 | gpointercxx . . $ gpointer# data); |
| 1240 | void g_hook_list_marshal_checkcxx . . $ g_hook_list_marshal_check(10c57e663972a4db). (GHookListcxx . . $ GHookList# *hook_list, |
| 1241 | gbooleancxx . . $ gboolean# may_recurse, |
| 1242 | GHookCheckMarshallercxx . . $ GHookCheckMarshaller# marshaller, |
| 1243 | gpointercxx . . $ gpointer# data); |
| 1244 | |
| 1245 | |
| 1246 | /* Fatal error handlers. |
| 1247 | * g_on_error_query() will prompt the user to either |
| 1248 | * [E]xit, [H]alt, [P]roceed or show [S]tack trace. |
| 1249 | * g_on_error_stack_trace() invokes gdb, which attaches to the current |
| 1250 | * process and shows a stack trace. |
| 1251 | * These function may cause different actions on non-unix platforms. |
| 1252 | * The prg_name arg is required by gdb to find the executable, if it is |
| 1253 | * passed as NULL, g_on_error_query() will try g_get_prgname(). |
| 1254 | */ |
| 1255 | void g_on_error_querycxx . . $ g_on_error_query(85c52e162fed56f9). (const gcharcxx . . $ gchar# *prg_name); |
| 1256 | void g_on_error_stack_tracecxx . . $ g_on_error_stack_trace(85c52e162fed56f9). (const gcharcxx . . $ gchar# *prg_name); |
| 1257 | |
| 1258 | |
| 1259 | /* Logging mechanism |
| 1260 | */ |
| 1261 | extern const gcharcxx . . $ gchar# *g_log_domain_glibcxx . . $ g_log_domain_glib.; |
| 1262 | guintcxx . . $ guint# g_log_set_handlercxx . . $ g_log_set_handler(aed59fa540478fb). (const gcharcxx . . $ gchar# *log_domain, |
| 1263 | GLogLevelFlagscxx . . $ GLogLevelFlags# log_levels, |
| 1264 | GLogFunccxx . . $ GLogFunc# log_func, |
| 1265 | gpointercxx . . $ gpointer# user_data); |
| 1266 | void g_log_remove_handlercxx . . $ g_log_remove_handler(b51963283f2467a4). (const gcharcxx . . $ gchar# *log_domain, |
| 1267 | guintcxx . . $ guint# handler_id); |
| 1268 | void g_log_default_handlercxx . . $ g_log_default_handler(bb9ba2a667c00213). (const gcharcxx . . $ gchar# *log_domain, |
| 1269 | GLogLevelFlagscxx . . $ GLogLevelFlags# log_level, |
| 1270 | const gcharcxx . . $ gchar# *message, |
| 1271 | gpointercxx . . $ gpointer# unused_data); |
| 1272 | void g_logcxx . . $ g_log(c869931302e1b48c). (const gcharcxx . . $ gchar# *log_domain, |
| 1273 | GLogLevelFlagscxx . . $ GLogLevelFlags# log_level, |
| 1274 | const gcharcxx . . $ gchar# *format, |
| 1275 | ...) G_GNUC_PRINTFcxx . . $ `src/glib.h:250:9`! (3, 4); |
| 1276 | void g_logvcxx . . $ g_logv(3f586508b7eaa51c). (const gcharcxx . . $ gchar# *log_domain, |
| 1277 | GLogLevelFlagscxx . . $ GLogLevelFlags# log_level, |
| 1278 | const gcharcxx . . $ gchar# *format, |
| 1279 | va_listcxx . . $ va_list# args); |
| 1280 | GLogLevelFlagscxx . . $ GLogLevelFlags# g_log_set_fatal_maskcxx . . $ g_log_set_fatal_mask(6b1f081b562d03b9). (const gcharcxx . . $ gchar# *log_domain, |
| 1281 | GLogLevelFlagscxx . . $ GLogLevelFlags# fatal_mask); |
| 1282 | GLogLevelFlagscxx . . $ GLogLevelFlags# g_log_set_always_fatalcxx . . $ g_log_set_always_fatal(f23d8d97f43b2360). (GLogLevelFlagscxx . . $ GLogLevelFlags# fatal_mask); |
| 1283 | #ifndef G_LOG_DOMAIN |
| 1284 | #define G_LOG_DOMAINcxx . . $ `src/glib.h:1284:9`! ((gchar*) 0) |
| 1285 | #endif /* G_LOG_DOMAIN */ |
| 1286 | |
| 1287 | #define g_errorcxx . . $ `src/glib.h:1287:9`!(format, args...) g_log (G_LOG_DOMAIN, \ |
| 1288 | G_LOG_LEVEL_ERROR, \ |
| 1289 | format, ##args) |
| 1290 | #define g_messagecxx . . $ `src/glib.h:1290:9`!(format, args...) g_log (G_LOG_DOMAIN, \ |
| 1291 | G_LOG_LEVEL_MESSAGE, \ |
| 1292 | format, ##args) |
| 1293 | #define g_warningcxx . . $ `src/glib.h:1293:9`! printf |
| 1294 | |
| 1295 | |
| 1296 | |
| 1297 | /* Memory allocation and debugging |
| 1298 | */ |
| 1299 | #define g_malloccxx . . $ `src/glib.h:1299:9`!(size) ((gpointer)malloc(size)) |
| 1300 | #define g_malloc0cxx . . $ `src/glib.h:1300:9`!(size) ((gpointer)calloc(size, 1)) |
| 1301 | #define g_realloccxx . . $ `src/glib.h:1301:9`!(mem,size) ((gpointer)realloc(mem, size)) |
| 1302 | #define g_freecxx . . $ `src/glib.h:1302:9`!(mem) free(mem) |
| 1303 | |
| 1304 | |
| 1305 | void g_mem_profilecxx . . $ g_mem_profile(49f6e7a06ebc5aa8). (void); |
| 1306 | void g_mem_checkcxx . . $ g_mem_check(5d22bdacc48458e8). (gpointercxx . . $ gpointer# mem); |
| 1307 | |
| 1308 | |
| 1309 | /* String utility functions that modify a string argument or |
| 1310 | * return a constant string that must not be freed. |
| 1311 | */ |
| 1312 | #define G_STR_DELIMITERScxx . . $ `src/glib.h:1312:10`! "_-|> <." |
| 1313 | gcharcxx . . $ gchar#* g_strdelimitcxx . . $ g_strdelimit(9db9b3dbeaa7a83a). (gcharcxx . . $ gchar# *string, |
| 1314 | const gcharcxx . . $ gchar# *delimiters, |
| 1315 | gcharcxx . . $ gchar# new_delimiter); |
| 1316 | gdoublecxx . . $ gdouble# g_strtodcxx . . $ g_strtod(3dfe5620a0d3160e). (const gcharcxx . . $ gchar# *nptr, |
| 1317 | gcharcxx . . $ gchar# **endptr); |
| 1318 | gcharcxx . . $ gchar#* g_strerrorcxx . . $ g_strerror(ff224f080444ee45). (gintcxx . . $ gint# errnum); |
| 1319 | gcharcxx . . $ gchar#* g_strsignalcxx . . $ g_strsignal(ff224f080444ee45). (gintcxx . . $ gint# signum); |
| 1320 | gintcxx . . $ gint# g_strcasecmpcxx . . $ g_strcasecmp(5ae29d726ae57f88). (const gcharcxx . . $ gchar# *s1, |
| 1321 | const gcharcxx . . $ gchar# *s2); |
| 1322 | gintcxx . . $ gint# g_strncasecmpcxx . . $ g_strncasecmp(54fb1e1f0004e0cf). (const gcharcxx . . $ gchar# *s1, |
| 1323 | const gcharcxx . . $ gchar# *s2, |
| 1324 | guintcxx . . $ guint# n); |
| 1325 | void g_strdowncxx . . $ g_strdown(fda57c8427c60377). (gcharcxx . . $ gchar# *string); |
| 1326 | void g_strupcxx . . $ g_strup(fda57c8427c60377). (gcharcxx . . $ gchar# *string); |
| 1327 | void g_strreversecxx . . $ g_strreverse(fda57c8427c60377). (gcharcxx . . $ gchar# *string); |
| 1328 | /* removes leading spaces */ |
| 1329 | gcharcxx . . $ gchar#* g_strchugcxx . . $ g_strchug(7a9722d75b371431). (gcharcxx . . $ gchar# *string); |
| 1330 | /* removes trailing spaces */ |
| 1331 | gcharcxx . . $ gchar#* g_strchompcxx . . $ g_strchomp(7a9722d75b371431). (gcharcxx . . $ gchar# *string); |
| 1332 | /* removes leading & trailing spaces */ |
| 1333 | #define g_strstripcxx . . $ `src/glib.h:1333:9`!( string ) g_strchomp (g_strchug (string)) |
| 1334 | |
| 1335 | /* String utility functions that return a newly allocated string which |
| 1336 | * ought to be freed from the caller at some point. |
| 1337 | */ |
| 1338 | gcharcxx . . $ gchar#* g_strdupcxx . . $ g_strdup(a8b8e32347182212). (const gcharcxx . . $ gchar# *str); |
| 1339 | gcharcxx . . $ gchar#* g_strdup_printfcxx . . $ g_strdup_printf(a849077ff1b8d812). (const gcharcxx . . $ gchar# *format, |
| 1340 | ...) G_GNUC_PRINTFcxx . . $ `src/glib.h:250:9`! (1, 2); |
| 1341 | gcharcxx . . $ gchar#* g_strdup_vprintfcxx . . $ g_strdup_vprintf(db813db1ba4aba5a). (const gcharcxx . . $ gchar# *format, |
| 1342 | va_listcxx . . $ va_list# args); |
| 1343 | gcharcxx . . $ gchar#* g_strndupcxx . . $ g_strndup(cf893fee19605dd5). (const gcharcxx . . $ gchar# *str, |
| 1344 | guintcxx . . $ guint# n); |
| 1345 | gcharcxx . . $ gchar#* g_strnfillcxx . . $ g_strnfill(db475c699e0ea40d). (guintcxx . . $ guint# length, |
| 1346 | gcharcxx . . $ gchar# fill_char); |
| 1347 | gcharcxx . . $ gchar#* g_strconcatcxx . . $ g_strconcat(a849077ff1b8d812). (const gcharcxx . . $ gchar# *string1, |
| 1348 | ...); /* NULL terminated */ |
| 1349 | gcharcxx . . $ gchar#* g_strjoincxx . . $ g_strjoin(a849077ff1b8d812). (const gcharcxx . . $ gchar# *separator, |
| 1350 | ...); /* NULL terminated */ |
| 1351 | gcharcxx . . $ gchar#* g_strescapecxx . . $ g_strescape(7a9722d75b371431). (gcharcxx . . $ gchar# *string); |
| 1352 | gpointercxx . . $ gpointer# g_memdupcxx . . $ g_memdup(5143350e6dfaca20). (gconstpointercxx . . $ gconstpointer# mem, |
| 1353 | guintcxx . . $ guint# byte_size); |
| 1354 | |
| 1355 | /* NULL terminated string arrays. |
| 1356 | * g_strsplit() splits up string into max_tokens tokens at delim and |
| 1357 | * returns a newly allocated string array. |
| 1358 | * g_strjoinv() concatenates all of str_array's strings, sliding in an |
| 1359 | * optional separator, the returned string is newly allocated. |
| 1360 | * g_strfreev() frees the array itself and all of its strings. |
| 1361 | */ |
| 1362 | gcharcxx . . $ gchar#** g_strsplitcxx . . $ g_strsplit(656a2b498280081). (const gcharcxx . . $ gchar# *string, |
| 1363 | const gcharcxx . . $ gchar# *delimiter, |
| 1364 | gintcxx . . $ gint# max_tokens); |
| 1365 | gcharcxx . . $ gchar#* g_strjoinvcxx . . $ g_strjoinv(3bdede71480c687a). (const gcharcxx . . $ gchar# *separator, |
| 1366 | gcharcxx . . $ gchar# **str_array); |
| 1367 | void g_strfreevcxx . . $ g_strfreev(3ed91490e421178f). (gcharcxx . . $ gchar# **str_array); |
| 1368 | |
| 1369 | |
| 1370 | |
| 1371 | /* calculate a string size, guarranteed to fit format + args. |
| 1372 | */ |
| 1373 | guintcxx . . $ guint# g_printf_string_upper_boundcxx . . $ g_printf_string_upper_bound(f35248b2713f2e). (const gcharcxx . . $ gchar#* format, |
| 1374 | va_listcxx . . $ va_list# args); |
| 1375 | |
| 1376 | |
| 1377 | /* Retrive static string info |
| 1378 | */ |
| 1379 | gcharcxx . . $ gchar#* g_get_user_namecxx . . $ g_get_user_name(41208ce6ca65dd58). (void); |
| 1380 | gcharcxx . . $ gchar#* g_get_real_namecxx . . $ g_get_real_name(41208ce6ca65dd58). (void); |
| 1381 | gcharcxx . . $ gchar#* g_get_home_dircxx . . $ g_get_home_dir(41208ce6ca65dd58). (void); |
| 1382 | gcharcxx . . $ gchar#* g_get_tmp_dircxx . . $ g_get_tmp_dir(41208ce6ca65dd58). (void); |
| 1383 | gcharcxx . . $ gchar#* g_get_prgnamecxx . . $ g_get_prgname(41208ce6ca65dd58). (void); |
| 1384 | void g_set_prgnamecxx . . $ g_set_prgname(85c52e162fed56f9). (const gcharcxx . . $ gchar# *prgname); |
| 1385 | |
| 1386 | |
| 1387 | /* Miscellaneous utility functions |
| 1388 | */ |
| 1389 | guintcxx . . $ guint# g_parse_debug_stringcxx . . $ g_parse_debug_string(90fb2344ee5d7ace). (const gcharcxx . . $ gchar# *string, |
| 1390 | GDebugKeycxx . . $ GDebugKey# *keys, |
| 1391 | guintcxx . . $ guint# nkeys); |
| 1392 | gintcxx . . $ gint# g_snprintfcxx . . $ g_snprintf(ea502d73e74c754c). (gcharcxx . . $ gchar# *string, |
| 1393 | gulongcxx . . $ gulong# n, |
| 1394 | gcharcxx . . $ gchar# const *format, |
| 1395 | ...) G_GNUC_PRINTFcxx . . $ `src/glib.h:250:9`! (3, 4); |
| 1396 | gintcxx . . $ gint# g_vsnprintfcxx . . $ g_vsnprintf(a85eea89d1bd834f). (gcharcxx . . $ gchar# *string, |
| 1397 | gulongcxx . . $ gulong# n, |
| 1398 | gcharcxx . . $ gchar# const *format, |
| 1399 | va_listcxx . . $ va_list# args); |
| 1400 | gcharcxx . . $ gchar#* g_basenamecxx . . $ g_basename(a8b8e32347182212). (const gcharcxx . . $ gchar# *file_name); |
| 1401 | /* Check if a file name is an absolute path */ |
| 1402 | gbooleancxx . . $ gboolean# g_path_is_absolutecxx . . $ g_path_is_absolute(5c4306d8553b3696). (const gcharcxx . . $ gchar# *file_name); |
| 1403 | /* In case of absolute paths, skip the root part */ |
| 1404 | gcharcxx . . $ gchar#* g_path_skip_rootcxx . . $ g_path_skip_root(7a9722d75b371431). (gcharcxx . . $ gchar# *file_name); |
| 1405 | |
| 1406 | /* strings are newly allocated with g_malloc() */ |
| 1407 | gcharcxx . . $ gchar#* g_dirnamecxx . . $ g_dirname(a8b8e32347182212). (const gcharcxx . . $ gchar# *file_name); |
| 1408 | gcharcxx . . $ gchar#* g_get_current_dircxx . . $ g_get_current_dir(41208ce6ca65dd58). (void); |
| 1409 | gcharcxx . . $ gchar#* g_getenvcxx . . $ g_getenv(a8b8e32347182212). (const gcharcxx . . $ gchar# *variable); |
| 1410 | |
| 1411 | |
| 1412 | /* we use a GLib function as a replacement for ATEXIT, so |
| 1413 | * the programmer is not required to check the return value |
| 1414 | * (if there is any in the implementation) and doesn't encounter |
| 1415 | * missing include files. |
| 1416 | */ |
| 1417 | void g_atexitcxx . . $ g_atexit(964b12a25712bdc3). (GVoidFunccxx . . $ GVoidFunc# func); |
| 1418 | |
| 1419 | |
| 1420 | /* Bit tests |
| 1421 | */ |
| 1422 | G_INLINE_FUNCcxx . . $ `src/glib.h:207:15`! gintcxx . . $ gint# g_bit_nth_lsfcxx . . $ g_bit_nth_lsf(1cb9ad283036edc7). (guint32cxx . . $ guint32# mask, |
| 1423 | gintcxx . . $ gint# nth_bit); |
| 1424 | #ifdef G_CAN_INLINE |
| 1425 | G_INLINE_FUNC gint |
| 1426 | g_bit_nth_lsf (guint32 mask, |
| 1427 | gint nth_bit) |
| 1428 | { |
| 1429 | do |
| 1430 | { |
| 1431 | nth_bit++; |
| 1432 | if (mask & (1 << (guint) nth_bit)) |
| 1433 | return nth_bit; |
| 1434 | } |
| 1435 | while (nth_bit < 32); |
| 1436 | return -1; |
| 1437 | } |
| 1438 | #endif /* G_CAN_INLINE */ |
| 1439 | |
| 1440 | G_INLINE_FUNCcxx . . $ `src/glib.h:207:15`! gintcxx . . $ gint# g_bit_nth_msfcxx . . $ g_bit_nth_msf(1cb9ad283036edc7). (guint32cxx . . $ guint32# mask, |
| 1441 | gintcxx . . $ gint# nth_bit); |
| 1442 | #ifdef G_CAN_INLINE |
| 1443 | G_INLINE_FUNC gint |
| 1444 | g_bit_nth_msf (guint32 mask, |
| 1445 | gint nth_bit) |
| 1446 | { |
| 1447 | if (nth_bit < 0) |
| 1448 | nth_bit = 32; |
| 1449 | do |
| 1450 | { |
| 1451 | nth_bit--; |
| 1452 | if (mask & (1 << (guint) nth_bit)) |
| 1453 | return nth_bit; |
| 1454 | } |
| 1455 | while (nth_bit > 0); |
| 1456 | return -1; |
| 1457 | } |
| 1458 | #endif /* G_CAN_INLINE */ |
| 1459 | |
| 1460 | G_INLINE_FUNCcxx . . $ `src/glib.h:207:15`! guintcxx . . $ guint# g_bit_storagecxx . . $ g_bit_storage(2141b656ce2cc063). (guintcxx . . $ guint# number); |
| 1461 | #ifdef G_CAN_INLINE |
| 1462 | G_INLINE_FUNC guint |
| 1463 | g_bit_storage (guint number) |
| 1464 | { |
| 1465 | register guint n_bits = 0; |
| 1466 | |
| 1467 | do |
| 1468 | { |
| 1469 | n_bits++; |
| 1470 | number >>= 1; |
| 1471 | } |
| 1472 | while (number); |
| 1473 | return n_bits; |
| 1474 | } |
| 1475 | #endif /* G_CAN_INLINE */ |
| 1476 | |
| 1477 | /* String Chunks |
| 1478 | */ |
| 1479 | GStringChunkcxx . . $ GStringChunk#* g_string_chunk_newcxx . . $ g_string_chunk_new(71997a07056064b6). (gintcxx . . $ gint# size); |
| 1480 | void g_string_chunk_freecxx . . $ g_string_chunk_free(20de504f7e26e9cd). (GStringChunkcxx . . $ GStringChunk# *chunk); |
| 1481 | gcharcxx . . $ gchar#* g_string_chunk_insertcxx . . $ g_string_chunk_insert(a461aecdf7c652de). (GStringChunkcxx . . $ GStringChunk# *chunk, |
| 1482 | const gcharcxx . . $ gchar# *string); |
| 1483 | gcharcxx . . $ gchar#* g_string_chunk_insert_constcxx . . $ g_string_chunk_insert_const(a461aecdf7c652de). (GStringChunkcxx . . $ GStringChunk# *chunk, |
| 1484 | const gcharcxx . . $ gchar# *string); |
| 1485 | |
| 1486 | |
| 1487 | /* Strings |
| 1488 | */ |
| 1489 | GStringcxx . . $ GString#* g_string_newcxx . . $ g_string_new(e8737c02110bb79b). (const gcharcxx . . $ gchar# *init); |
| 1490 | GStringcxx . . $ GString#* g_string_sized_newcxx . . $ g_string_sized_new(156343d3d02580ab). (guintcxx . . $ guint# dfl_size); |
| 1491 | void g_string_freecxx . . $ g_string_free(737b75be346929f6). (GStringcxx . . $ GString# *string, |
| 1492 | gintcxx . . $ gint# free_segment); |
| 1493 | GStringcxx . . $ GString#* g_string_assigncxx . . $ g_string_assign(21b17dd616be5ffe). (GStringcxx . . $ GString# *lval, |
| 1494 | const gcharcxx . . $ gchar# *rval); |
| 1495 | GStringcxx . . $ GString#* g_string_truncatecxx . . $ g_string_truncate(1b197001b5945414). (GStringcxx . . $ GString# *string, |
| 1496 | gintcxx . . $ gint# len); |
| 1497 | GStringcxx . . $ GString#* g_string_appendcxx . . $ g_string_append(21b17dd616be5ffe). (GStringcxx . . $ GString# *string, |
| 1498 | const gcharcxx . . $ gchar# *val); |
| 1499 | GStringcxx . . $ GString#* g_string_append_ccxx . . $ g_string_append_c(c6dc91f8b2a774cb). (GStringcxx . . $ GString# *string, |
| 1500 | gcharcxx . . $ gchar# c); |
| 1501 | GStringcxx . . $ GString#* g_string_prependcxx . . $ g_string_prepend(21b17dd616be5ffe). (GStringcxx . . $ GString# *string, |
| 1502 | const gcharcxx . . $ gchar# *val); |
| 1503 | GStringcxx . . $ GString#* g_string_prepend_ccxx . . $ g_string_prepend_c(c6dc91f8b2a774cb). (GStringcxx . . $ GString# *string, |
| 1504 | gcharcxx . . $ gchar# c); |
| 1505 | GStringcxx . . $ GString#* g_string_insertcxx . . $ g_string_insert(ff3003d8ba024115). (GStringcxx . . $ GString# *string, |
| 1506 | gintcxx . . $ gint# pos, |
| 1507 | const gcharcxx . . $ gchar# *val); |
| 1508 | GStringcxx . . $ GString#* g_string_insert_ccxx . . $ g_string_insert_c(9946ca3ed6b2d9e8). (GStringcxx . . $ GString# *string, |
| 1509 | gintcxx . . $ gint# pos, |
| 1510 | gcharcxx . . $ gchar# c); |
| 1511 | GStringcxx . . $ GString#* g_string_erasecxx . . $ g_string_erase(62a3cc081e5b9e01). (GStringcxx . . $ GString# *string, |
| 1512 | gintcxx . . $ gint# pos, |
| 1513 | gintcxx . . $ gint# len); |
| 1514 | GStringcxx . . $ GString#* g_string_downcxx . . $ g_string_down(d9beeb8cc64b194c). (GStringcxx . . $ GString# *string); |
| 1515 | GStringcxx . . $ GString#* g_string_upcxx . . $ g_string_up(d9beeb8cc64b194c). (GStringcxx . . $ GString# *string); |
| 1516 | void g_string_sprintfcxx . . $ g_string_sprintf(eeccf837eb821d11). (GStringcxx . . $ GString# *string, |
| 1517 | const gcharcxx . . $ gchar# *format, |
| 1518 | ...) G_GNUC_PRINTFcxx . . $ `src/glib.h:250:9`! (2, 3); |
| 1519 | void g_string_sprintfacxx . . $ g_string_sprintfa(eeccf837eb821d11). (GStringcxx . . $ GString# *string, |
| 1520 | const gcharcxx . . $ gchar# *format, |
| 1521 | ...) G_GNUC_PRINTFcxx . . $ `src/glib.h:250:9`! (2, 3); |
| 1522 | |
| 1523 | |
| 1524 | /* Resizable arrays, remove fills any cleared spot and shortens the |
| 1525 | * array, while preserving the order. remove_fast will distort the |
| 1526 | * order by moving the last element to the position of the removed |
| 1527 | */ |
| 1528 | |
| 1529 | #define g_array_append_valcxx . . $ `src/glib.h:1529:9`!(a,v) g_array_append_vals (a, &v, 1) |
| 1530 | #define g_array_prepend_valcxx . . $ `src/glib.h:1530:9`!(a,v) g_array_prepend_vals (a, &v, 1) |
| 1531 | #define g_array_insert_valcxx . . $ `src/glib.h:1531:9`!(a,i,v) g_array_insert_vals (a, i, &v, 1) |
| 1532 | #define g_array_indexcxx . . $ `src/glib.h:1532:9`!(a,t,i) (((t*) (a)->data) [(i)]) |
| 1533 | |
| 1534 | GArraycxx . . $ GArray#* g_array_newcxx . . $ g_array_new(fe898421933afc00). (gbooleancxx . . $ gboolean# zero_terminated, |
| 1535 | gbooleancxx . . $ gboolean# clear, |
| 1536 | guintcxx . . $ guint# element_size); |
| 1537 | void g_array_freecxx . . $ g_array_free(9bafc62c18d894b8). (GArraycxx . . $ GArray# *array, |
| 1538 | gbooleancxx . . $ gboolean# free_segment); |
| 1539 | GArraycxx . . $ GArray#* g_array_append_valscxx . . $ g_array_append_vals(59466536300baf72). (GArraycxx . . $ GArray# *array, |
| 1540 | gconstpointercxx . . $ gconstpointer# data, |
| 1541 | guintcxx . . $ guint# len); |
| 1542 | GArraycxx . . $ GArray#* g_array_prepend_valscxx . . $ g_array_prepend_vals(59466536300baf72). (GArraycxx . . $ GArray# *array, |
| 1543 | gconstpointercxx . . $ gconstpointer# data, |
| 1544 | guintcxx . . $ guint# len); |
| 1545 | GArraycxx . . $ GArray#* g_array_insert_valscxx . . $ g_array_insert_vals(a15a43d200dfdd19). (GArraycxx . . $ GArray# *array, |
| 1546 | guintcxx . . $ guint# index, |
| 1547 | gconstpointercxx . . $ gconstpointer# data, |
| 1548 | guintcxx . . $ guint# len); |
| 1549 | GArraycxx . . $ GArray#* g_array_set_sizecxx . . $ g_array_set_size(7887fa1264b468b8). (GArraycxx . . $ GArray# *array, |
| 1550 | guintcxx . . $ guint# length); |
| 1551 | GArraycxx . . $ GArray#* g_array_remove_indexcxx . . $ g_array_remove_index(7887fa1264b468b8). (GArraycxx . . $ GArray# *array, |
| 1552 | guintcxx . . $ guint# index); |
| 1553 | GArraycxx . . $ GArray#* g_array_remove_index_fastcxx . . $ g_array_remove_index_fast(7887fa1264b468b8). (GArraycxx . . $ GArray# *array, |
| 1554 | guintcxx . . $ guint# index); |
| 1555 | |
| 1556 | /* Resizable pointer array. This interface is much less complicated |
| 1557 | * than the above. Add appends appends a pointer. Remove fills any |
| 1558 | * cleared spot and shortens the array. remove_fast will again distort |
| 1559 | * order. |
| 1560 | */ |
| 1561 | #define g_ptr_array_indexcxx . . $ `src/glib.h:1561:13`!(array,index) (array->pdata)[index] |
| 1562 | GPtrArraycxx . . $ GPtrArray#* g_ptr_array_newcxx . . $ g_ptr_array_new(61b5db61367ab387). (void); |
| 1563 | void g_ptr_array_freecxx . . $ g_ptr_array_free(a9bf79c3455f9f51). (GPtrArraycxx . . $ GPtrArray# *array, |
| 1564 | gbooleancxx . . $ gboolean# free_seg); |
| 1565 | void g_ptr_array_set_sizecxx . . $ g_ptr_array_set_size(a9bf79c3455f9f51). (GPtrArraycxx . . $ GPtrArray# *array, |
| 1566 | gintcxx . . $ gint# length); |
| 1567 | gpointercxx . . $ gpointer# g_ptr_array_remove_indexcxx . . $ g_ptr_array_remove_index(1e8ea8549f363c82). (GPtrArraycxx . . $ GPtrArray# *array, |
| 1568 | guintcxx . . $ guint# index); |
| 1569 | gpointercxx . . $ gpointer# g_ptr_array_remove_index_fastcxx . . $ g_ptr_array_remove_index_fast(1e8ea8549f363c82). (GPtrArraycxx . . $ GPtrArray# *array, |
| 1570 | guintcxx . . $ guint# index); |
| 1571 | gbooleancxx . . $ gboolean# g_ptr_array_removecxx . . $ g_ptr_array_remove(2f3f3865374235c6). (GPtrArraycxx . . $ GPtrArray# *array, |
| 1572 | gpointercxx . . $ gpointer# data); |
| 1573 | gbooleancxx . . $ gboolean# g_ptr_array_remove_fastcxx . . $ g_ptr_array_remove_fast(2f3f3865374235c6). (GPtrArraycxx . . $ GPtrArray# *array, |
| 1574 | gpointercxx . . $ gpointer# data); |
| 1575 | void g_ptr_array_addcxx . . $ g_ptr_array_add(3cd73f70a4ada9). (GPtrArraycxx . . $ GPtrArray# *array, |
| 1576 | gpointercxx . . $ gpointer# data); |
| 1577 | |
| 1578 | /* Byte arrays, an array of guint8. Implemented as a GArray, |
| 1579 | * but type-safe. |
| 1580 | */ |
| 1581 | |
| 1582 | GByteArraycxx . . $ GByteArray#* g_byte_array_newcxx . . $ g_byte_array_new(982bbe80ade9beda). (void); |
| 1583 | void g_byte_array_freecxx . . $ g_byte_array_free(e50c675290f84a14). (GByteArraycxx . . $ GByteArray# *array, |
| 1584 | gbooleancxx . . $ gboolean# free_segment); |
| 1585 | GByteArraycxx . . $ GByteArray#* g_byte_array_appendcxx . . $ g_byte_array_append(5f6c852276b82844). (GByteArraycxx . . $ GByteArray# *array, |
| 1586 | const guint8cxx . . $ guint8# *data, |
| 1587 | guintcxx . . $ guint# len); |
| 1588 | GByteArraycxx . . $ GByteArray#* g_byte_array_prependcxx . . $ g_byte_array_prepend(5f6c852276b82844). (GByteArraycxx . . $ GByteArray# *array, |
| 1589 | const guint8cxx . . $ guint8# *data, |
| 1590 | guintcxx . . $ guint# len); |
| 1591 | GByteArraycxx . . $ GByteArray#* g_byte_array_set_sizecxx . . $ g_byte_array_set_size(501fb2bc7af6e583). (GByteArraycxx . . $ GByteArray# *array, |
| 1592 | guintcxx . . $ guint# length); |
| 1593 | GByteArraycxx . . $ GByteArray#* g_byte_array_remove_indexcxx . . $ g_byte_array_remove_index(501fb2bc7af6e583). (GByteArraycxx . . $ GByteArray# *array, |
| 1594 | guintcxx . . $ guint# index); |
| 1595 | GByteArraycxx . . $ GByteArray#* g_byte_array_remove_index_fastcxx . . $ g_byte_array_remove_index_fast(501fb2bc7af6e583). (GByteArraycxx . . $ GByteArray# *array, |
| 1596 | guintcxx . . $ guint# index); |
| 1597 | |
| 1598 | #endif /* __G_LIB_H__ */ |