Macros | |
#define | MAXUINT64 UINT64_MAX |
Maximum value of 64-bit unsigned integer. | |
#define | MAXINT64 INT64_MAX |
Maximum value of 64-bit signed integer. | |
#define | MININT64 INT64_MIN |
Minimum value of 64-bit signed integer. | |
#define | HQN_INT64 int64_t |
Assume that 64-bit integers are supported from C99 onwards. | |
#define | MAXUINT8 ((uint8)255) |
Maximum value of 8-bit unsigned integer. | |
#define | MAXINT8 ((int8)127) |
Maximum value of 8-bit signed integer. | |
#define | MININT8 ((int8)-128) |
Minimum value of 8-bit signed integer. | |
#define | MAXUINT16 ((uint16)65535) |
Maximum value of 16-bit unsigned integer. | |
#define | MAXINT16 ((int16)32767) |
Maximum value of 16-bit signed integer. | |
#define | MININT16 ((int16)-32768) |
Minimum value of 16-bit signed integer. | |
#define | MAXUINT32 0xffffffffU |
Maximum value of 32-bit unsigned integer. | |
#define | MAXINT32 ((int32)0x7fffffff) |
Maximum value of 32-bit signed integer. | |
#define | MININT32 ((int32)0x80000000) |
Minimum value of 32-bit signed integer. | |
#define | MAXINT MAXINT32 |
Maximum value of signed integer. More... | |
#define | MININT MININT32 |
Minimum value of signed integer. More... | |
#define | MAXUINT MAXUINT32 |
Minimum value of unsigned integer. More... | |
#define | SIZE_MAX MAXUINT64 |
Maximum value of size_t. | |
#define | UINTPTR_MAX MAXUINT64 |
Maximum value of uintptr_t. | |
#define | TRUE 1 |
HqBool boolean true value. More... | |
#define | FALSE 0 |
HqBool boolean false value. More... | |
#define | BOOL_IS_VALID(bool_) ((bool_) == TRUE || (bool_) == FALSE) |
Validate boolean values. More... | |
#define | HQNIDENT_MAX MAXINT32 |
Maximum value of an HqnIdent before wrap-around. | |
#define | HQNIDENT_MIN MININT32 |
Minimum value of an HqnIdent after wrap-around. | |
Typedefs | |
typedef int8_t | int8 |
8-bit signed integer | |
typedef uint8_t | uint8 |
8-bit unsigned integer | |
typedef int16_t | int16 |
16-bit signed integer | |
typedef uint16_t | uint16 |
16-bit unsigned integer | |
typedef int32_t | int32 |
32-bit signed integer | |
typedef uint32_t | uint32 |
32-bit unsigned integer | |
typedef int64_t | int64 |
64-bit signed integer | |
typedef uint64_t | uint64 |
64-bit unsigned integer | |
typedef int | HqBool |
Harlequin standard boolean type. More... | |
typedef intptr_t | HqnFileDescriptor |
The type of a file descriptor on a device. More... | |
typedef int32 | HqnIdent |
HqnIdent identifiers. More... | |
typedef int32 | HqnResult |
HqnResult return types. More... | |
Enumerations | |
enum | { HQN_RESULT_SUCCESS = 0 } |
Integer and Bool types for specific sizes.
These types were created before C99, and so use Harlequin-specific names rather than those from <stdint.h>.
Validate boolean values.
Check a boolean value to make sure it is true or false. This should only be used for Bool variables. C language conventions are normally used, so non-zero values are true and zero values are false.
#define FALSE 0 |
HqBool boolean false value.
C boolean conventions are used. Zero values are false.
#define MAXINT MAXINT32 |
Maximum value of signed integer.
This is a compatibility definition. Please use the explicitly-sized maximum/minimum values instead of this define.
#define MAXUINT MAXUINT32 |
Minimum value of unsigned integer.
This is a compatibility definition. Please use the explicitly-sized maximum/minimum values instead of this define.
#define MININT MININT32 |
Minimum value of signed integer.
This is a compatibility definition. Please use the explicitly-sized maximum/minimum values instead of this define.
#define TRUE 1 |
HqBool boolean true value.
C boolean conventions are used. Any non-zero value is true.
typedef int HqBool |
Harlequin standard boolean type.
Note that we do not use the C++ or C99 definitions of boolean types, because we want the type to have the same size in function prototypes and structures linked between the different languages. We use the native machine integer rather than give it an explicit size for efficiency.
The type of a file descriptor on a device.
Device file descriptors on 64 bit platforms are 64 bits wide.
HqnIdent identifiers.
HqnIdent is a superclass of identifiers used by the RDR, Event and Timeline APIs and are defined to be interworkable. It is therefore possible to use a Timeline reference as an RDR ID within some Class and Type, for example. HqnIdent is also typedeffed for monitor and error UIDs (as sw_mon_type).
HqnResult return types.
HqnResult is used as a return type for some API functions in the core and Harlequin SDK. Declaring HqnResult as a return type or out parameter for a function indicates that the function follows these semantics:
HqnResult is assignment-compatible with the monitor UID type (sw_mon_type).
anonymous enum |
Standard values for HqnResult type.
Enumerator | |
---|---|
HQN_RESULT_SUCCESS | Operation succeeded. |