libcbor  0.5.0
libcbor is a C library for parsing and generating CBOR, the general-purpose schema-less binary data format.
builder_callbacks.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014-2017 Pavel Kalvoda <me@pavelkalvoda.com>
3  *
4  * libcbor is free software; you can redistribute it and/or modify
5  * it under the terms of the MIT license. See LICENSE for details.
6  */
7 
8 #ifndef LIBCBOR_BUILDER_CALLBACKS_H
9 #define LIBCBOR_BUILDER_CALLBACKS_H
10 
11 #include "cbor/common.h"
12 #include "../callbacks.h"
13 #include "stack.h"
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
26  struct _cbor_stack *stack;
27 };
28 
29 void cbor_builder_uint8_callback(void *, uint8_t);
30 
31 void cbor_builder_uint16_callback(void *, uint16_t);
32 
33 void cbor_builder_uint32_callback(void *, uint32_t);
34 
35 void cbor_builder_uint64_callback(void *, uint64_t);
36 
37 void cbor_builder_negint8_callback(void *, uint8_t);
38 
39 void cbor_builder_negint16_callback(void *, uint16_t);
40 
41 void cbor_builder_negint32_callback(void *, uint32_t);
42 
43 void cbor_builder_negint64_callback(void *, uint64_t);
44 
45 void cbor_builder_string_callback(void *, cbor_data, size_t);
46 
48 
49 void cbor_builder_byte_string_callback(void *, cbor_data, size_t);
50 
52 
53 void cbor_builder_array_start_callback(void *, size_t);
54 
56 
57 void cbor_builder_map_start_callback(void *, size_t);
58 
60 
61 void cbor_builder_tag_callback(void *, uint64_t);
62 
63 void cbor_builder_float2_callback(void *, float);
64 
65 void cbor_builder_float4_callback(void *, float);
66 
67 void cbor_builder_float8_callback(void *, double);
68 
69 void cbor_builder_null_callback(void *);
70 
72 
73 void cbor_builder_boolean_callback(void *, bool);
74 
76 
77 #ifdef __cplusplus
78 }
79 #endif
80 
81 #endif //LIBCBOR_BUILDER_CALLBACKS_H
void cbor_builder_negint64_callback(void *, uint64_t)
void cbor_builder_negint32_callback(void *, uint32_t)
bool syntax_error
Stack expectation mismatch.
void cbor_builder_null_callback(void *)
Stack handle - contents and size.
Definition: stack.h:25
void cbor_builder_array_start_callback(void *, size_t)
void cbor_builder_uint32_callback(void *, uint32_t)
void cbor_builder_indef_array_start_callback(void *)
void cbor_builder_indef_break_callback(void *)
void cbor_builder_tag_callback(void *, uint64_t)
void cbor_builder_uint16_callback(void *, uint16_t)
High-level decoding context.
void cbor_builder_string_start_callback(void *)
void cbor_builder_indef_map_start_callback(void *)
void cbor_builder_float2_callback(void *, float)
void cbor_builder_byte_string_callback(void *, cbor_data, size_t)
void cbor_builder_byte_string_start_callback(void *)
void cbor_builder_float8_callback(void *, double)
void cbor_builder_undefined_callback(void *)
const unsigned char * cbor_data
Definition: data.h:20
struct _cbor_stack * stack
void cbor_builder_string_callback(void *, cbor_data, size_t)
void cbor_builder_uint8_callback(void *, uint8_t)
void cbor_builder_negint16_callback(void *, uint16_t)
void cbor_builder_boolean_callback(void *, bool)
void cbor_builder_map_start_callback(void *, size_t)
void cbor_builder_float4_callback(void *, float)
The item handle.
Definition: data.h:149
void cbor_builder_uint64_callback(void *, uint64_t)
void cbor_builder_negint8_callback(void *, uint8_t)
bool creation_failed
Callback creating the last item has failed.