Basic Types

Basic Types — Basic types used in Glk

Types and Values

typedef glui32
typedef glsi32

Includes

#include <libchimara/glk.h>

Description

For simplicity, all the arguments used in Glk calls are of a very few types.

32-bit unsigned integer

Unsigned integers are used wherever possible, which is nearly everywhere. This type is called glui32.

32-bit signed integer

This type is called glsi32. Rarely used.

References to library objects

These are pointers to opaque C structures; each library will use different structures, so you can not and should not try to manipulate their contents. See Opaque Objects.

Pointer to one of the above types

Pointer to a structure which consists entirely of the above types.

unsigned char

This is used only for Latin-1 text characters; see Character Encoding.

Pointer to char

Sometimes this means a null-terminated string; sometimes an unterminated buffer, with length as a separate glui32 argument. The documentation says which.

Pointer to void

When nothing else will do.

Functions

Types and Values

glui32

typedef uint32_t glui32;

A 32-bit unsigned integer type, used wherever possible in Glk.


glsi32

typedef int32_t glsi32;

A 32-bit signed integer type, rarely used.