6.3. Data Definitions for libglib-2.0

This section defines global identifiers and their values that are associated with interfaces contained in libglib-2.0. These definitions are organized into groups that correspond to system headers. This convention is used as a convenience for the reader, and does not imply the existence of these headers, or their content. Where an interface is defined as requiring a particular system header file all of the data definitions for that system header file presented here shall be in effect.

This section gives data definitions to promote binary application portability, not to repeat source interface definitions available elsewhere. System providers and application developers should use this ABI to supplement - not to replace - source interface definition specifications.

This specification uses the ISO C (1999) C Language as the reference programming language, and data definitions are specified in ISO C format. The C language is used here as a convenient notation. Using a C language description of these data objects does not preclude their use by other programming languages.

6.3.1. glib-2.0/glib.h


#define G_STATIC_MUTEX_INIT	 \
	{ NULL, { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0} } }
#define GPOINTER_TO_INT(p)	((gint) (glong) (p))
#define GLONG_TO_BE(val)	((glong) GINT64_TO_BE (val))
#define GLONG_TO_LE(val)	((glong) GINT64_TO_LE (val))
#define GINT_TO_POINTER(i)	((gpointer) (glong) (i))
#define GUINT_TO_POINTER(u)	((gpointer) (gulong) (u))
#define GPOINTER_TO_UINT(p)	((guint) (gulong) (p))
#define GULONG_TO_BE(val)	((gulong) GUINT64_TO_BE (val))
#define GULONG_TO_LE(val)	((gulong) GUINT64_TO_LE (val))
#define G_GINT64_CONSTANT(val)	(G_GNUC_EXTENSION (val ##L))
#define G_VA_COPY_AS_ARRAY	1
#define GLIB_LSB_PADDING_SIZE	40
#define GLIB_LSB_DATA_SIZE	8
#define GLIB_SIZEOF_LONG	8
#define GLIB_SIZEOF_SIZE_T	8
#define GLIB_SIZEOF_VOID_P	8
#define G_BYTE_ORDER	G_LITTLE_ENDIAN
#define G_MAXSIZE	G_MAXULONG
#define G_BREAKPOINT()	G_STMT_START{ __asm__ __volatile__ ("int $03"); }G_STMT_END
#define G_GINT64_MODIFIER	"l"
#define G_GSIZE_MODIFIER	"l"
#define G_GINT64_FORMAT	"li"
#define G_GSSIZE_FORMAT	"li"
#define G_GSIZE_FORMAT	"lu"
#define G_GUINT64_FORMAT	"lu"

typedef long int gssize;
typedef long int gint64;
typedef unsigned long int guint64;

typedef unsigned long int gsize;

6.3.2. glib-2.0/glib/gi18n.h


/*
 * This header is architecture neutral
 * Please refer to the generic specification for details
 */

6.3.3. glib-2.0/glib/gstdio.h


/*
 * This header is architecture neutral
 * Please refer to the generic specification for details
 */