General base library functionality.
More...
|
#define | ua_byte_compare(a, b) ua_uint8_compare(a, b) |
|
#define | ua_sbyte_compare(a, b) ua_int8_compare(a, b) |
|
#define | INT_COMPARE(name, type) |
|
|
typedef int(* | encode_t )(struct ua_encoder_context *, const void *) |
| Interface for encode functions.
|
|
typedef int(* | decode_t )(struct ua_decoder_context *, void *) |
| Interface for decode functions.
|
|
typedef int(* | compare_t )(const void *, const void *) |
| Interface for compare functions.
|
|
typedef int(* | copy_t )(void *, const void *) |
| Interface for copy functions.
|
|
typedef void(* | clear_t )(void *) |
| Interface for clear functions.
|
|
typedef int(* | service_handler_t )(void *request_header, void *request, void *msg_ctx) |
| Interface for service handler functions.
|
|
|
static int | ua_boolean_compare (const bool *a, const bool *b) |
|
static int | ua_float_compare (const float *a, const float *b) |
|
static int | ua_double_compare (const double *a, const double *b) |
|
int | ua_base_init (void) |
| Initialize the base library. More...
|
|
void | ua_base_cleanup (void) |
| Clear the base library. More...
|
|
General base library functionality.
#define INT_COMPARE |
( |
|
name, |
|
|
|
type |
|
) |
| |
Value:static inline int ua_##name##_compare(
const type *a,
const type *b) \
{ \
if (*a == *b) return 0; \
if (*a < *b) return -1; \
return 1; \
}
enum ua_identifiertype type
The format and data type of the identifier.
Definition: nodeid.h:179
void ua_base_cleanup |
( |
void |
| ) |
|
Clear the base library.
Clear resources allocated in ua_base_init.
int ua_base_init |
( |
void |
| ) |
|
Initialize the base library.
- Returns
- Zero on success or errorcode on failure.