libcbor  0.5.0
libcbor is a C library for parsing and generating CBOR, the general-purpose schema-less binary data format.
Data Structures | Typedefs | Functions | Variables
callbacks.h File Reference
#include "cbor/common.h"

Go to the source code of this file.

Data Structures

struct  cbor_callbacks
 Callback bundle – passed to the decoder. More...
 

Typedefs

typedef void(* cbor_int8_callback) (void *, uint8_t)
 Callback prototype. More...
 
typedef void(* cbor_int16_callback) (void *, uint16_t)
 Callback prototype. More...
 
typedef void(* cbor_int32_callback) (void *, uint32_t)
 Callback prototype. More...
 
typedef void(* cbor_int64_callback) (void *, uint64_t)
 Callback prototype. More...
 
typedef void(* cbor_simple_callback) (void *)
 Callback prototype. More...
 
typedef void(* cbor_string_callback) (void *, cbor_data, size_t)
 Callback prototype. More...
 
typedef void(* cbor_collection_callback) (void *, size_t)
 Callback prototype. More...
 
typedef void(* cbor_float_callback) (void *, float)
 Callback prototype. More...
 
typedef void(* cbor_double_callback) (void *, double)
 Callback prototype. More...
 
typedef void(* cbor_bool_callback) (void *, bool)
 Callback prototype. More...
 

Functions

void cbor_null_uint8_callback (void *, uint8_t)
 Dummy callback implementation - does nothing. More...
 
void cbor_null_uint16_callback (void *, uint16_t)
 Dummy callback implementation - does nothing. More...
 
void cbor_null_uint32_callback (void *, uint32_t)
 Dummy callback implementation - does nothing. More...
 
void cbor_null_uint64_callback (void *, uint64_t)
 Dummy callback implementation - does nothing. More...
 
void cbor_null_negint8_callback (void *, uint8_t)
 Dummy callback implementation - does nothing. More...
 
void cbor_null_negint16_callback (void *, uint16_t)
 Dummy callback implementation - does nothing. More...
 
void cbor_null_negint32_callback (void *, uint32_t)
 Dummy callback implementation - does nothing. More...
 
void cbor_null_negint64_callback (void *, uint64_t)
 Dummy callback implementation - does nothing. More...
 
void cbor_null_string_callback (void *, cbor_data, size_t)
 Dummy callback implementation - does nothing. More...
 
void cbor_null_string_start_callback (void *)
 Dummy callback implementation - does nothing. More...
 
void cbor_null_byte_string_callback (void *, cbor_data, size_t)
 Dummy callback implementation - does nothing. More...
 
void cbor_null_byte_string_start_callback (void *)
 Dummy callback implementation - does nothing. More...
 
void cbor_null_array_start_callback (void *, size_t)
 Dummy callback implementation - does nothing. More...
 
void cbor_null_indef_array_start_callback (void *)
 Dummy callback implementation - does nothing. More...
 
void cbor_null_map_start_callback (void *, size_t)
 Dummy callback implementation - does nothing. More...
 
void cbor_null_indef_map_start_callback (void *)
 Dummy callback implementation - does nothing. More...
 
void cbor_null_tag_callback (void *, uint64_t)
 Dummy callback implementation - does nothing. More...
 
void cbor_null_float2_callback (void *, float)
 Dummy callback implementation - does nothing. More...
 
void cbor_null_float4_callback (void *, float)
 Dummy callback implementation - does nothing. More...
 
void cbor_null_float8_callback (void *, double)
 Dummy callback implementation - does nothing. More...
 
void cbor_null_null_callback (void *)
 Dummy callback implementation - does nothing. More...
 
void cbor_null_undefined_callback (void *)
 Dummy callback implementation - does nothing. More...
 
void cbor_null_boolean_callback (void *, bool)
 Dummy callback implementation - does nothing. More...
 
void cbor_null_indef_break_callback (void *)
 Dummy callback implementation - does nothing. More...
 

Variables

const struct cbor_callbacks cbor_empty_callbacks
 Dummy callback bundle - does nothing. More...
 

Typedef Documentation

§ cbor_bool_callback

typedef void(* cbor_bool_callback) (void *, bool)

Callback prototype.

Definition at line 45 of file callbacks.h.

§ cbor_collection_callback

typedef void(* cbor_collection_callback) (void *, size_t)

Callback prototype.

Definition at line 36 of file callbacks.h.

§ cbor_double_callback

typedef void(* cbor_double_callback) (void *, double)

Callback prototype.

Definition at line 42 of file callbacks.h.

§ cbor_float_callback

typedef void(* cbor_float_callback) (void *, float)

Callback prototype.

Definition at line 39 of file callbacks.h.

§ cbor_int16_callback

typedef void(* cbor_int16_callback) (void *, uint16_t)

Callback prototype.

Definition at line 21 of file callbacks.h.

§ cbor_int32_callback

typedef void(* cbor_int32_callback) (void *, uint32_t)

Callback prototype.

Definition at line 24 of file callbacks.h.

§ cbor_int64_callback

typedef void(* cbor_int64_callback) (void *, uint64_t)

Callback prototype.

Definition at line 27 of file callbacks.h.

§ cbor_int8_callback

typedef void(* cbor_int8_callback) (void *, uint8_t)

Callback prototype.

Definition at line 18 of file callbacks.h.

§ cbor_simple_callback

typedef void(* cbor_simple_callback) (void *)

Callback prototype.

Definition at line 30 of file callbacks.h.

§ cbor_string_callback

typedef void(* cbor_string_callback) (void *, cbor_data, size_t)

Callback prototype.

Definition at line 33 of file callbacks.h.

Function Documentation

§ cbor_null_array_start_callback()

void cbor_null_array_start_callback ( void *  ,
size_t   
)

Dummy callback implementation - does nothing.

§ cbor_null_boolean_callback()

void cbor_null_boolean_callback ( void *  ,
bool   
)

Dummy callback implementation - does nothing.

§ cbor_null_byte_string_callback()

void cbor_null_byte_string_callback ( void *  ,
cbor_data  ,
size_t   
)

Dummy callback implementation - does nothing.

§ cbor_null_byte_string_start_callback()

void cbor_null_byte_string_start_callback ( void *  )

Dummy callback implementation - does nothing.

§ cbor_null_float2_callback()

void cbor_null_float2_callback ( void *  ,
float   
)

Dummy callback implementation - does nothing.

§ cbor_null_float4_callback()

void cbor_null_float4_callback ( void *  ,
float   
)

Dummy callback implementation - does nothing.

§ cbor_null_float8_callback()

void cbor_null_float8_callback ( void *  ,
double   
)

Dummy callback implementation - does nothing.

§ cbor_null_indef_array_start_callback()

void cbor_null_indef_array_start_callback ( void *  )

Dummy callback implementation - does nothing.

§ cbor_null_indef_break_callback()

void cbor_null_indef_break_callback ( void *  )

Dummy callback implementation - does nothing.

§ cbor_null_indef_map_start_callback()

void cbor_null_indef_map_start_callback ( void *  )

Dummy callback implementation - does nothing.

§ cbor_null_map_start_callback()

void cbor_null_map_start_callback ( void *  ,
size_t   
)

Dummy callback implementation - does nothing.

§ cbor_null_negint16_callback()

void cbor_null_negint16_callback ( void *  ,
uint16_t   
)

Dummy callback implementation - does nothing.

§ cbor_null_negint32_callback()

void cbor_null_negint32_callback ( void *  ,
uint32_t   
)

Dummy callback implementation - does nothing.

§ cbor_null_negint64_callback()

void cbor_null_negint64_callback ( void *  ,
uint64_t   
)

Dummy callback implementation - does nothing.

§ cbor_null_negint8_callback()

void cbor_null_negint8_callback ( void *  ,
uint8_t   
)

Dummy callback implementation - does nothing.

§ cbor_null_null_callback()

void cbor_null_null_callback ( void *  )

Dummy callback implementation - does nothing.

§ cbor_null_string_callback()

void cbor_null_string_callback ( void *  ,
cbor_data  ,
size_t   
)

Dummy callback implementation - does nothing.

§ cbor_null_string_start_callback()

void cbor_null_string_start_callback ( void *  )

Dummy callback implementation - does nothing.

§ cbor_null_tag_callback()

void cbor_null_tag_callback ( void *  ,
uint64_t   
)

Dummy callback implementation - does nothing.

§ cbor_null_uint16_callback()

void cbor_null_uint16_callback ( void *  ,
uint16_t   
)

Dummy callback implementation - does nothing.

§ cbor_null_uint32_callback()

void cbor_null_uint32_callback ( void *  ,
uint32_t   
)

Dummy callback implementation - does nothing.

§ cbor_null_uint64_callback()

void cbor_null_uint64_callback ( void *  ,
uint64_t   
)

Dummy callback implementation - does nothing.

§ cbor_null_uint8_callback()

void cbor_null_uint8_callback ( void *  ,
uint8_t   
)

Dummy callback implementation - does nothing.

§ cbor_null_undefined_callback()

void cbor_null_undefined_callback ( void *  )

Dummy callback implementation - does nothing.

Variable Documentation

§ cbor_empty_callbacks

const struct cbor_callbacks cbor_empty_callbacks

Dummy callback bundle - does nothing.