Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gtypes.h File Reference
#include <glibconfig.h>
#include <glib/gmacros.h>
#include <glib/gversionmacros.h>
#include <glib/glib-visibility.h>
#include <time.h>

Go to the source code of this file.

Data Structures

union  _GFloatIEEE754
 
union  _GDoubleIEEE754
 
struct  _GTimeVal
 

Macros

#define G_MININT8   ((gint8) (-G_MAXINT8 - 1))
 
#define G_MAXINT8   ((gint8) 0x7f)
 
#define G_MAXUINT8   ((guint8) 0xff)
 
#define G_MININT16   ((gint16) (-G_MAXINT16 - 1))
 
#define G_MAXINT16   ((gint16) 0x7fff)
 
#define G_MAXUINT16   ((guint16) 0xffff)
 
#define G_MININT32   ((gint32) (-G_MAXINT32 - 1))
 
#define G_MAXINT32   ((gint32) 0x7fffffff)
 
#define G_MAXUINT32   ((guint32) 0xffffffff)
 
#define G_MININT64   ((gint64) (-G_MAXINT64 - G_GINT64_CONSTANT(1)))
 
#define G_MAXINT64   G_GINT64_CONSTANT(0x7fffffffffffffff)
 
#define G_MAXUINT64   G_GUINT64_CONSTANT(0xffffffffffffffff)
 
#define G_E   2.7182818284590452353602874713526624977572470937000
 
#define G_LN2   0.69314718055994530941723212145817656807550013436026
 
#define G_LN10   2.3025850929940456840179914546843642076011014886288
 
#define G_PI   3.1415926535897932384626433832795028841971693993751
 
#define G_PI_2   1.5707963267948966192313216916397514420985846996876
 
#define G_PI_4   0.78539816339744830961566084581987572104929234984378
 
#define G_SQRT2   1.4142135623730950488016887242096980785696718753769
 
#define G_LITTLE_ENDIAN   1234
 
#define G_BIG_ENDIAN   4321
 
#define G_PDP_ENDIAN   3412 /* unused, need specific PDP check */
 
#define GUINT16_SWAP_LE_BE_CONSTANT(val)
 
#define GUINT32_SWAP_LE_BE_CONSTANT(val)
 
#define GUINT64_SWAP_LE_BE_CONSTANT(val)
 
#define GUINT16_SWAP_LE_BE(val)   (GUINT16_SWAP_LE_BE_CONSTANT (val))
 
#define GUINT32_SWAP_LE_BE(val)   (GUINT32_SWAP_LE_BE_CONSTANT (val))
 
#define GUINT64_SWAP_LE_BE(val)   (GUINT64_SWAP_LE_BE_CONSTANT (val))
 
#define GUINT16_SWAP_LE_PDP(val)   ((guint16) (val))
 
#define GUINT16_SWAP_BE_PDP(val)   (GUINT16_SWAP_LE_BE (val))
 
#define GUINT32_SWAP_LE_PDP(val)
 
#define GUINT32_SWAP_BE_PDP(val)
 
#define GINT16_FROM_LE(val)   (GINT16_TO_LE (val))
 
#define GUINT16_FROM_LE(val)   (GUINT16_TO_LE (val))
 
#define GINT16_FROM_BE(val)   (GINT16_TO_BE (val))
 
#define GUINT16_FROM_BE(val)   (GUINT16_TO_BE (val))
 
#define GINT32_FROM_LE(val)   (GINT32_TO_LE (val))
 
#define GUINT32_FROM_LE(val)   (GUINT32_TO_LE (val))
 
#define GINT32_FROM_BE(val)   (GINT32_TO_BE (val))
 
#define GUINT32_FROM_BE(val)   (GUINT32_TO_BE (val))
 
#define GINT64_FROM_LE(val)   (GINT64_TO_LE (val))
 
#define GUINT64_FROM_LE(val)   (GUINT64_TO_LE (val))
 
#define GINT64_FROM_BE(val)   (GINT64_TO_BE (val))
 
#define GUINT64_FROM_BE(val)   (GUINT64_TO_BE (val))
 
#define GLONG_FROM_LE(val)   (GLONG_TO_LE (val))
 
#define GULONG_FROM_LE(val)   (GULONG_TO_LE (val))
 
#define GLONG_FROM_BE(val)   (GLONG_TO_BE (val))
 
#define GULONG_FROM_BE(val)   (GULONG_TO_BE (val))
 
#define GINT_FROM_LE(val)   (GINT_TO_LE (val))
 
#define GUINT_FROM_LE(val)   (GUINT_TO_LE (val))
 
#define GINT_FROM_BE(val)   (GINT_TO_BE (val))
 
#define GUINT_FROM_BE(val)   (GUINT_TO_BE (val))
 
#define GSIZE_FROM_LE(val)   (GSIZE_TO_LE (val))
 
#define GSSIZE_FROM_LE(val)   (GSSIZE_TO_LE (val))
 
#define GSIZE_FROM_BE(val)   (GSIZE_TO_BE (val))
 
#define GSSIZE_FROM_BE(val)   (GSSIZE_TO_BE (val))
 
#define g_ntohl(val)   (GUINT32_FROM_BE (val))
 
#define g_ntohs(val)   (GUINT16_FROM_BE (val))
 
#define g_htonl(val)   (GUINT32_TO_BE (val))
 
#define g_htons(val)   (GUINT16_TO_BE (val))
 
#define g_uint_checked_add(dest, a, b)    _GLIB_CHECKED_ADD_UINT(dest, a, b)
 
#define g_uint_checked_mul(dest, a, b)    _GLIB_CHECKED_MUL_UINT(dest, a, b)
 
#define g_uint64_checked_add(dest, a, b)    _GLIB_CHECKED_ADD_UINT64(dest, a, b)
 
#define g_uint64_checked_mul(dest, a, b)    _GLIB_CHECKED_MUL_UINT64(dest, a, b)
 
#define g_size_checked_add(dest, a, b)    _GLIB_CHECKED_ADD_SIZE(dest, a, b)
 
#define g_size_checked_mul(dest, a, b)    _GLIB_CHECKED_MUL_SIZE(dest, a, b)
 
#define G_IEEE754_FLOAT_BIAS   (127)
 
#define G_IEEE754_DOUBLE_BIAS   (1023)
 
#define G_LOG_2_BASE_10   (0.30102999566398119521)
 

Typedefs

typedef short gshort
 
typedef long glong
 
typedef int gint
 
typedef gint gboolean
 
typedef unsigned char guchar
 
typedef unsigned short gushort
 
typedef unsigned long gulong
 
typedef unsigned int guint
 
typedef float gfloat
 
typedef double gdouble
 
typedef void * gpointer
 
typedef const void * gconstpointer
 
typedef gint(* GCompareFunc) (gconstpointer a, gconstpointer b)
 
typedef gint(* GCompareDataFunc) (gconstpointer a, gconstpointer b, gpointer user_data)
 
typedef gboolean(* GEqualFunc) (gconstpointer a, gconstpointer b)
 
typedef gboolean(* GEqualFuncFull) (gconstpointer a, gconstpointer b, gpointer user_data)
 
typedef void(* GDestroyNotify) (gpointer data)
 
typedef void(* GFunc) (gpointer data, gpointer user_data)
 
typedef guint(* GHashFunc) (gconstpointer key)
 
typedef void(* GHFunc) (gpointer key, gpointer value, gpointer user_data)
 
typedef gpointer(* GCopyFunc) (gconstpointer src, gpointer data)
 
typedef void(* GFreeFunc) (gpointer data)
 
typedef const gchar *(* GTranslateFunc) (const gchar *str, gpointer data)
 
typedef union _GDoubleIEEE754 GDoubleIEEE754
 
typedef union _GFloatIEEE754 GFloatIEEE754
 
typedef gint grefcount
 
typedef gint gatomicrefcount
 

Functions

static gboolean _GLIB_CHECKED_ADD_UINT (guint *dest, guint a, guint b)
 
static gboolean _GLIB_CHECKED_MUL_UINT (guint *dest, guint a, guint b)
 
static gboolean _GLIB_CHECKED_ADD_UINT64 (guint64 *dest, guint64 a, guint64 b)
 
static gboolean _GLIB_CHECKED_MUL_UINT64 (guint64 *dest, guint64 a, guint64 b)
 
static gboolean _GLIB_CHECKED_ADD_SIZE (gsize *dest, gsize a, gsize b)
 
static gboolean _GLIB_CHECKED_MUL_SIZE (gsize *dest, gsize a, gsize b)
 
struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR (GDateTime)
 

Variables

G_BEGIN_DECLS typedef char gchar
 
glong tv_sec
 
glong tv_usec
 

Macro Definition Documentation

◆ G_BIG_ENDIAN

#define G_BIG_ENDIAN   4321

Definition at line 212 of file gtypes.h.

◆ G_E

#define G_E   2.7182818284590452353602874713526624977572470937000

Definition at line 198 of file gtypes.h.

◆ g_htonl

#define g_htonl ( val)    (GUINT32_TO_BE (val))

Definition at line 445 of file gtypes.h.

◆ g_htons

#define g_htons ( val)    (GUINT16_TO_BE (val))

Definition at line 446 of file gtypes.h.

◆ G_IEEE754_DOUBLE_BIAS

#define G_IEEE754_DOUBLE_BIAS   (1023)

Definition at line 531 of file gtypes.h.

◆ G_IEEE754_FLOAT_BIAS

#define G_IEEE754_FLOAT_BIAS   (127)

Definition at line 530 of file gtypes.h.

◆ G_LITTLE_ENDIAN

#define G_LITTLE_ENDIAN   1234

Definition at line 211 of file gtypes.h.

◆ G_LN10

#define G_LN10   2.3025850929940456840179914546843642076011014886288

Definition at line 200 of file gtypes.h.

◆ G_LN2

#define G_LN2   0.69314718055994530941723212145817656807550013436026

Definition at line 199 of file gtypes.h.

◆ G_LOG_2_BASE_10

#define G_LOG_2_BASE_10   (0.30102999566398119521)

Definition at line 533 of file gtypes.h.

◆ G_MAXINT16

#define G_MAXINT16   ((gint16) 0x7fff)

Definition at line 86 of file gtypes.h.

◆ G_MAXINT32

#define G_MAXINT32   ((gint32) 0x7fffffff)

Definition at line 97 of file gtypes.h.

◆ G_MAXINT64

#define G_MAXINT64   G_GINT64_CONSTANT(0x7fffffffffffffff)

Definition at line 106 of file gtypes.h.

◆ G_MAXINT8

#define G_MAXINT8   ((gint8) 0x7f)

Definition at line 75 of file gtypes.h.

◆ G_MAXUINT16

#define G_MAXUINT16   ((guint16) 0xffff)

Definition at line 87 of file gtypes.h.

◆ G_MAXUINT32

#define G_MAXUINT32   ((guint32) 0xffffffff)

Definition at line 98 of file gtypes.h.

◆ G_MAXUINT64

#define G_MAXUINT64   G_GUINT64_CONSTANT(0xffffffffffffffff)

Definition at line 107 of file gtypes.h.

◆ G_MAXUINT8

#define G_MAXUINT8   ((guint8) 0xff)

Definition at line 76 of file gtypes.h.

◆ G_MININT16

#define G_MININT16   ((gint16) (-G_MAXINT16 - 1))

G_MININT16: (value -32768)

The minimum value which can be held in a gint16.

Since: 2.4

Definition at line 85 of file gtypes.h.

◆ G_MININT32

#define G_MININT32   ((gint32) (-G_MAXINT32 - 1))

G_MININT32: (value -2147483648)

The minimum value which can be held in a gint32.

Since: 2.4

Definition at line 96 of file gtypes.h.

◆ G_MININT64

#define G_MININT64   ((gint64) (-G_MAXINT64 - G_GINT64_CONSTANT(1)))

G_MININT64: (value -9223372036854775808)

The minimum value which can be held in a gint64.

Definition at line 105 of file gtypes.h.

◆ G_MININT8

#define G_MININT8   ((gint8) (-G_MAXINT8 - 1))

G_MININT8: (value -128)

The minimum value which can be held in a gint8.

Since: 2.4

Definition at line 74 of file gtypes.h.

◆ g_ntohl

#define g_ntohl ( val)    (GUINT32_FROM_BE (val))

Definition at line 443 of file gtypes.h.

◆ g_ntohs

#define g_ntohs ( val)    (GUINT16_FROM_BE (val))

Definition at line 444 of file gtypes.h.

◆ G_PDP_ENDIAN

#define G_PDP_ENDIAN   3412 /* unused, need specific PDP check */

Definition at line 213 of file gtypes.h.

◆ G_PI

#define G_PI   3.1415926535897932384626433832795028841971693993751

Definition at line 201 of file gtypes.h.

◆ G_PI_2

#define G_PI_2   1.5707963267948966192313216916397514420985846996876

Definition at line 202 of file gtypes.h.

◆ G_PI_4

#define G_PI_4   0.78539816339744830961566084581987572104929234984378

Definition at line 203 of file gtypes.h.

◆ g_size_checked_add

#define g_size_checked_add ( dest,
a,
b )    _GLIB_CHECKED_ADD_SIZE(dest, a, b)

Definition at line 504 of file gtypes.h.

504#define g_size_checked_add(dest, a, b) \
505 _GLIB_CHECKED_ADD_SIZE(dest, a, b)

◆ g_size_checked_mul

#define g_size_checked_mul ( dest,
a,
b )    _GLIB_CHECKED_MUL_SIZE(dest, a, b)

Definition at line 506 of file gtypes.h.

506#define g_size_checked_mul(dest, a, b) \
507 _GLIB_CHECKED_MUL_SIZE(dest, a, b)

◆ G_SQRT2

#define G_SQRT2   1.4142135623730950488016887242096980785696718753769

Definition at line 204 of file gtypes.h.

◆ g_uint64_checked_add

#define g_uint64_checked_add ( dest,
a,
b )    _GLIB_CHECKED_ADD_UINT64(dest, a, b)

Definition at line 499 of file gtypes.h.

499#define g_uint64_checked_add(dest, a, b) \
500 _GLIB_CHECKED_ADD_UINT64(dest, a, b)

◆ g_uint64_checked_mul

#define g_uint64_checked_mul ( dest,
a,
b )    _GLIB_CHECKED_MUL_UINT64(dest, a, b)

Definition at line 501 of file gtypes.h.

501#define g_uint64_checked_mul(dest, a, b) \
502 _GLIB_CHECKED_MUL_UINT64(dest, a, b)

◆ g_uint_checked_add

#define g_uint_checked_add ( dest,
a,
b )    _GLIB_CHECKED_ADD_UINT(dest, a, b)

Definition at line 494 of file gtypes.h.

494#define g_uint_checked_add(dest, a, b) \
495 _GLIB_CHECKED_ADD_UINT(dest, a, b)

◆ g_uint_checked_mul

#define g_uint_checked_mul ( dest,
a,
b )    _GLIB_CHECKED_MUL_UINT(dest, a, b)

Definition at line 496 of file gtypes.h.

496#define g_uint_checked_mul(dest, a, b) \
497 _GLIB_CHECKED_MUL_UINT(dest, a, b)

◆ GINT16_FROM_BE

#define GINT16_FROM_BE ( val)    (GINT16_TO_BE (val))

Definition at line 414 of file gtypes.h.

◆ GINT16_FROM_LE

#define GINT16_FROM_LE ( val)    (GINT16_TO_LE (val))

Definition at line 412 of file gtypes.h.

◆ GINT32_FROM_BE

#define GINT32_FROM_BE ( val)    (GINT32_TO_BE (val))

Definition at line 418 of file gtypes.h.

◆ GINT32_FROM_LE

#define GINT32_FROM_LE ( val)    (GINT32_TO_LE (val))

Definition at line 416 of file gtypes.h.

◆ GINT64_FROM_BE

#define GINT64_FROM_BE ( val)    (GINT64_TO_BE (val))

Definition at line 423 of file gtypes.h.

◆ GINT64_FROM_LE

#define GINT64_FROM_LE ( val)    (GINT64_TO_LE (val))

Definition at line 421 of file gtypes.h.

◆ GINT_FROM_BE

#define GINT_FROM_BE ( val)    (GINT_TO_BE (val))

Definition at line 433 of file gtypes.h.

◆ GINT_FROM_LE

#define GINT_FROM_LE ( val)    (GINT_TO_LE (val))

Definition at line 431 of file gtypes.h.

◆ GLONG_FROM_BE

#define GLONG_FROM_BE ( val)    (GLONG_TO_BE (val))

Definition at line 428 of file gtypes.h.

◆ GLONG_FROM_LE

#define GLONG_FROM_LE ( val)    (GLONG_TO_LE (val))

Definition at line 426 of file gtypes.h.

◆ GSIZE_FROM_BE

#define GSIZE_FROM_BE ( val)    (GSIZE_TO_BE (val))

Definition at line 438 of file gtypes.h.

◆ GSIZE_FROM_LE

#define GSIZE_FROM_LE ( val)    (GSIZE_TO_LE (val))

Definition at line 436 of file gtypes.h.

◆ GSSIZE_FROM_BE

#define GSSIZE_FROM_BE ( val)    (GSSIZE_TO_BE (val))

Definition at line 439 of file gtypes.h.

◆ GSSIZE_FROM_LE

#define GSSIZE_FROM_LE ( val)    (GSSIZE_TO_LE (val))

Definition at line 437 of file gtypes.h.

◆ GUINT16_FROM_BE

#define GUINT16_FROM_BE ( val)    (GUINT16_TO_BE (val))

Definition at line 415 of file gtypes.h.

◆ GUINT16_FROM_LE

#define GUINT16_FROM_LE ( val)    (GUINT16_TO_LE (val))

Definition at line 413 of file gtypes.h.

◆ GUINT16_SWAP_BE_PDP

#define GUINT16_SWAP_BE_PDP ( val)    (GUINT16_SWAP_LE_BE (val))

Definition at line 401 of file gtypes.h.

◆ GUINT16_SWAP_LE_BE

#define GUINT16_SWAP_LE_BE ( val)    (GUINT16_SWAP_LE_BE_CONSTANT (val))

Definition at line 395 of file gtypes.h.

◆ GUINT16_SWAP_LE_BE_CONSTANT

#define GUINT16_SWAP_LE_BE_CONSTANT ( val)
Value:
((guint16) ( \
(guint16) ((guint16) (val) >> 8) | \
(guint16) ((guint16) (val) << 8)))
unsigned short guint16
Definition glibconfig.h:49

Definition at line 218 of file gtypes.h.

218#define GUINT16_SWAP_LE_BE_CONSTANT(val) ((guint16) ( \
219 (guint16) ((guint16) (val) >> 8) | \
220 (guint16) ((guint16) (val) << 8)))

◆ GUINT16_SWAP_LE_PDP

#define GUINT16_SWAP_LE_PDP ( val)    ((guint16) (val))

Definition at line 400 of file gtypes.h.

◆ GUINT32_FROM_BE

#define GUINT32_FROM_BE ( val)    (GUINT32_TO_BE (val))

Definition at line 419 of file gtypes.h.

◆ GUINT32_FROM_LE

#define GUINT32_FROM_LE ( val)    (GUINT32_TO_LE (val))

Definition at line 417 of file gtypes.h.

◆ GUINT32_SWAP_BE_PDP

#define GUINT32_SWAP_BE_PDP ( val)
Value:
((guint32) ( \
(((guint32) (val) & (guint32) 0x00ff00ffU) << 8) | \
(((guint32) (val) & (guint32) 0xff00ff00U) >> 8)))
unsigned int guint32
Definition glibconfig.h:57

Definition at line 405 of file gtypes.h.

405#define GUINT32_SWAP_BE_PDP(val) ((guint32) ( \
406 (((guint32) (val) & (guint32) 0x00ff00ffU) << 8) | \
407 (((guint32) (val) & (guint32) 0xff00ff00U) >> 8)))

◆ GUINT32_SWAP_LE_BE

#define GUINT32_SWAP_LE_BE ( val)    (GUINT32_SWAP_LE_BE_CONSTANT (val))

Definition at line 396 of file gtypes.h.

◆ GUINT32_SWAP_LE_BE_CONSTANT

#define GUINT32_SWAP_LE_BE_CONSTANT ( val)
Value:
((guint32) ( \
(((guint32) (val) & (guint32) 0x000000ffU) << 24) | \
(((guint32) (val) & (guint32) 0x0000ff00U) << 8) | \
(((guint32) (val) & (guint32) 0x00ff0000U) >> 8) | \
(((guint32) (val) & (guint32) 0xff000000U) >> 24)))

Definition at line 222 of file gtypes.h.

222#define GUINT32_SWAP_LE_BE_CONSTANT(val) ((guint32) ( \
223 (((guint32) (val) & (guint32) 0x000000ffU) << 24) | \
224 (((guint32) (val) & (guint32) 0x0000ff00U) << 8) | \
225 (((guint32) (val) & (guint32) 0x00ff0000U) >> 8) | \
226 (((guint32) (val) & (guint32) 0xff000000U) >> 24)))

◆ GUINT32_SWAP_LE_PDP

#define GUINT32_SWAP_LE_PDP ( val)
Value:
((guint32) ( \
(((guint32) (val) & (guint32) 0x0000ffffU) << 16) | \
(((guint32) (val) & (guint32) 0xffff0000U) >> 16)))

Definition at line 402 of file gtypes.h.

402#define GUINT32_SWAP_LE_PDP(val) ((guint32) ( \
403 (((guint32) (val) & (guint32) 0x0000ffffU) << 16) | \
404 (((guint32) (val) & (guint32) 0xffff0000U) >> 16)))

◆ GUINT64_FROM_BE

#define GUINT64_FROM_BE ( val)    (GUINT64_TO_BE (val))

Definition at line 424 of file gtypes.h.

◆ GUINT64_FROM_LE

#define GUINT64_FROM_LE ( val)    (GUINT64_TO_LE (val))

Definition at line 422 of file gtypes.h.

◆ GUINT64_SWAP_LE_BE

#define GUINT64_SWAP_LE_BE ( val)    (GUINT64_SWAP_LE_BE_CONSTANT (val))

Definition at line 397 of file gtypes.h.

◆ GUINT64_SWAP_LE_BE_CONSTANT

#define GUINT64_SWAP_LE_BE_CONSTANT ( val)
Value:
((guint64) ( \
(((guint64) (val) & \
(guint64) G_GINT64_CONSTANT (0x00000000000000ffU)) << 56) | \
(((guint64) (val) & \
(guint64) G_GINT64_CONSTANT (0x000000000000ff00U)) << 40) | \
(((guint64) (val) & \
(guint64) G_GINT64_CONSTANT (0x0000000000ff0000U)) << 24) | \
(((guint64) (val) & \
(guint64) G_GINT64_CONSTANT (0x00000000ff000000U)) << 8) | \
(((guint64) (val) & \
(guint64) G_GINT64_CONSTANT (0x000000ff00000000U)) >> 8) | \
(((guint64) (val) & \
(guint64) G_GINT64_CONSTANT (0x0000ff0000000000U)) >> 24) | \
(((guint64) (val) & \
(guint64) G_GINT64_CONSTANT (0x00ff000000000000U)) >> 40) | \
(((guint64) (val) & \
(guint64) G_GINT64_CONSTANT (0xff00000000000000U)) >> 56)))
unsigned long guint64
Definition glibconfig.h:67
#define G_GINT64_CONSTANT(val)
Definition glibconfig.h:69

Definition at line 228 of file gtypes.h.

228#define GUINT64_SWAP_LE_BE_CONSTANT(val) ((guint64) ( \
229 (((guint64) (val) & \
230 (guint64) G_GINT64_CONSTANT (0x00000000000000ffU)) << 56) | \
231 (((guint64) (val) & \
232 (guint64) G_GINT64_CONSTANT (0x000000000000ff00U)) << 40) | \
233 (((guint64) (val) & \
234 (guint64) G_GINT64_CONSTANT (0x0000000000ff0000U)) << 24) | \
235 (((guint64) (val) & \
236 (guint64) G_GINT64_CONSTANT (0x00000000ff000000U)) << 8) | \
237 (((guint64) (val) & \
238 (guint64) G_GINT64_CONSTANT (0x000000ff00000000U)) >> 8) | \
239 (((guint64) (val) & \
240 (guint64) G_GINT64_CONSTANT (0x0000ff0000000000U)) >> 24) | \
241 (((guint64) (val) & \
242 (guint64) G_GINT64_CONSTANT (0x00ff000000000000U)) >> 40) | \
243 (((guint64) (val) & \
244 (guint64) G_GINT64_CONSTANT (0xff00000000000000U)) >> 56)))

◆ GUINT_FROM_BE

#define GUINT_FROM_BE ( val)    (GUINT_TO_BE (val))

Definition at line 434 of file gtypes.h.

◆ GUINT_FROM_LE

#define GUINT_FROM_LE ( val)    (GUINT_TO_LE (val))

Definition at line 432 of file gtypes.h.

◆ GULONG_FROM_BE

#define GULONG_FROM_BE ( val)    (GULONG_TO_BE (val))

Definition at line 429 of file gtypes.h.

◆ GULONG_FROM_LE

#define GULONG_FROM_LE ( val)    (GULONG_TO_LE (val))

Definition at line 427 of file gtypes.h.

Typedef Documentation

◆ gatomicrefcount

Definition at line 587 of file gtypes.h.

◆ gboolean

typedef gint gboolean

Definition at line 56 of file gtypes.h.

◆ GCompareDataFunc

typedef gint(* GCompareDataFunc) (gconstpointer a, gconstpointer b, gpointer user_data)

Definition at line 114 of file gtypes.h.

◆ GCompareFunc

typedef gint(* GCompareFunc) (gconstpointer a, gconstpointer b)

Definition at line 112 of file gtypes.h.

◆ gconstpointer

typedef const void* gconstpointer

Definition at line 110 of file gtypes.h.

◆ GCopyFunc

typedef gpointer(* GCopyFunc) (gconstpointer src, gpointer data)

GCopyFunc: @src: (not nullable): A pointer to the data which should be copied @data: Additional data

A function of this signature is used to copy the node data when doing a deep-copy of a tree.

Returns: (not nullable): A pointer to the copy

Since: 2.4

Definition at line 160 of file gtypes.h.

◆ GDestroyNotify

typedef void(* GDestroyNotify) (gpointer data)

Definition at line 140 of file gtypes.h.

◆ gdouble

typedef double gdouble

Definition at line 64 of file gtypes.h.

◆ GDoubleIEEE754

Definition at line 528 of file gtypes.h.

◆ GEqualFunc

typedef gboolean(* GEqualFunc) (gconstpointer a, gconstpointer b)

Definition at line 117 of file gtypes.h.

◆ GEqualFuncFull

typedef gboolean(* GEqualFuncFull) (gconstpointer a, gconstpointer b, gpointer user_data)

GEqualFuncFull: : a value : a value to compare with @user_data: user data provided by the caller

Specifies the type of a function used to test two values for equality. The function should return TRUE if both values are equal and FALSE otherwise.

This is a version of GEqualFunc which provides a @user_data closure from the caller.

Returns: TRUE if = ; FALSE otherwise Since: 2.74

Definition at line 136 of file gtypes.h.

◆ gfloat

typedef float gfloat

Definition at line 63 of file gtypes.h.

◆ GFloatIEEE754

Definition at line 529 of file gtypes.h.

◆ GFreeFunc

typedef void(* GFreeFunc) (gpointer data)

GFreeFunc: @data: a data pointer

Declares a type of function which takes an arbitrary data pointer argument and has no return value. It is not currently used in GLib or GTK.

Definition at line 170 of file gtypes.h.

◆ GFunc

typedef void(* GFunc) (gpointer data, gpointer user_data)

Definition at line 141 of file gtypes.h.

◆ GHashFunc

typedef guint(* GHashFunc) (gconstpointer key)

Definition at line 143 of file gtypes.h.

◆ GHFunc

typedef void(* GHFunc) (gpointer key, gpointer value, gpointer user_data)

Definition at line 144 of file gtypes.h.

◆ gint

typedef int gint

Definition at line 55 of file gtypes.h.

◆ glong

typedef long glong

Definition at line 54 of file gtypes.h.

◆ gpointer

typedef void* gpointer

Definition at line 109 of file gtypes.h.

◆ grefcount

typedef gint grefcount

Definition at line 586 of file gtypes.h.

◆ gshort

typedef short gshort

Definition at line 53 of file gtypes.h.

◆ GTranslateFunc

typedef const gchar *(* GTranslateFunc) (const gchar *str, gpointer data)

GTranslateFunc: @str: the untranslated string @data: user data specified when installing the function, e.g. in g_option_group_set_translate_func()

The type of functions which are used to translate user-visible strings, for <option>–help</option> output.

Returns: a translation of the string for the current locale. The returned string is owned by GLib and must not be freed.

Definition at line 184 of file gtypes.h.

◆ guchar

typedef unsigned char guchar

Definition at line 58 of file gtypes.h.

◆ guint

typedef unsigned int guint

Definition at line 61 of file gtypes.h.

◆ gulong

typedef unsigned long gulong

Definition at line 60 of file gtypes.h.

◆ gushort

typedef unsigned short gushort

Definition at line 59 of file gtypes.h.

Function Documentation

◆ _GLIB_CHECKED_ADD_SIZE()

static gboolean _GLIB_CHECKED_ADD_SIZE ( gsize * dest,
gsize a,
gsize b )
inlinestatic

Definition at line 489 of file gtypes.h.

489 {
490 *dest = a + b; return *dest >= a; }

◆ _GLIB_CHECKED_ADD_UINT()

static gboolean _GLIB_CHECKED_ADD_UINT ( guint * dest,
guint a,
guint b )
inlinestatic

Definition at line 481 of file gtypes.h.

481 {
482 *dest = a + b; return *dest >= a; }

◆ _GLIB_CHECKED_ADD_UINT64()

static gboolean _GLIB_CHECKED_ADD_UINT64 ( guint64 * dest,
guint64 a,
guint64 b )
inlinestatic

Definition at line 485 of file gtypes.h.

485 {
486 *dest = a + b; return *dest >= a; }

◆ _GLIB_CHECKED_MUL_SIZE()

static gboolean _GLIB_CHECKED_MUL_SIZE ( gsize * dest,
gsize a,
gsize b )
inlinestatic

Definition at line 491 of file gtypes.h.

491 {
492 *dest = a * b; return !a || *dest / a == b; }

◆ _GLIB_CHECKED_MUL_UINT()

static gboolean _GLIB_CHECKED_MUL_UINT ( guint * dest,
guint a,
guint b )
inlinestatic

Definition at line 483 of file gtypes.h.

483 {
484 *dest = a * b; return !a || *dest / a == b; }

◆ _GLIB_CHECKED_MUL_UINT64()

static gboolean _GLIB_CHECKED_MUL_UINT64 ( guint64 * dest,
guint64 a,
guint64 b )
inlinestatic

Definition at line 487 of file gtypes.h.

487 {
488 *dest = a * b; return !a || *dest / a == b; }

◆ GLIB_DEPRECATED_TYPE_IN_2_62_FOR()

struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR ( GDateTime )

Variable Documentation

◆ gchar

G_BEGIN_DECLS typedef char gchar

Definition at line 52 of file gtypes.h.

Referenced by on_button_clicked().

◆ tv_sec

glong tv_sec

Definition at line 0 of file gtypes.h.

◆ tv_usec

glong tv_usec

Definition at line 1 of file gtypes.h.