head 1.1; branch 1.1.1; access; symbols netbsd-11-0-RC4:1.1.1.1 netbsd-11-0-RC3:1.1.1.1 netbsd-11-0-RC2:1.1.1.1 netbsd-11-0-RC1:1.1.1.1 perseant-exfatfs-base-20250801:1.1.1.1 netbsd-11:1.1.1.1.0.12 netbsd-11-base:1.1.1.1 netbsd-10-1-RELEASE:1.1.1.1 perseant-exfatfs-base-20240630:1.1.1.1 perseant-exfatfs:1.1.1.1.0.10 perseant-exfatfs-base:1.1.1.1 netbsd-10-0-RELEASE:1.1.1.1 netbsd-10-0-RC6:1.1.1.1 netbsd-10-0-RC5:1.1.1.1 netbsd-10-0-RC4:1.1.1.1 netbsd-10-0-RC3:1.1.1.1 netbsd-10-0-RC2:1.1.1.1 netbsd-10-0-RC1:1.1.1.1 netbsd-10:1.1.1.1.0.8 netbsd-10-base:1.1.1.1 cjep_sun2x-base1:1.1.1.1 cjep_sun2x:1.1.1.1.0.6 cjep_sun2x-base:1.1.1.1 cjep_staticlib_x-base1:1.1.1.1 cjep_staticlib_x:1.1.1.1.0.4 cjep_staticlib_x-base:1.1.1.1 phil-wifi-20200421:1.1.1.1 phil-wifi:1.1.1.1.0.2 phil-wifi-20200411:1.1.1.1 phil-wifi-20200406:1.1.1.1 libcbor-3b41770ab0ca408d242041dddb3b75811345573f:1.1.1.1 PJK:1.1.1; locks; strict; comment @# @; 1.1 date 2020.03.03.00.34.29; author christos; state Exp; branches 1.1.1.1; next ; commitid CsDukytrNgtSbTYB; 1.1.1.1 date 2020.03.03.00.34.29; author christos; state Exp; branches 1.1.1.1.2.1; next ; commitid CsDukytrNgtSbTYB; 1.1.1.1.2.1 date 2020.03.03.00.34.29; author martin; state dead; branches; next 1.1.1.1.2.2; commitid X01YhRUPVUDaec4C; 1.1.1.1.2.2 date 2020.04.13.08.02.25; author martin; state Exp; branches; next ; commitid X01YhRUPVUDaec4C; desc @@ 1.1 log @Initial revision @ text @ libcbor: src/cbor/callbacks.h File Reference
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.

@ 1.1.1.1 log @Import libcbor from: https://github.com/PJK/libcbor.git @ text @@ 1.1.1.1.2.1 log @file callbacks_8h.html was added on branch phil-wifi on 2020-04-13 08:02:25 +0000 @ text @d1 1070 @ 1.1.1.1.2.2 log @Mostly merge changes from HEAD upto 20200411 @ text @a0 1070 libcbor: src/cbor/callbacks.h File Reference
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.

@