libcbor
0.5.0
libcbor is a C library for parsing and generating CBOR, the general-purpose schema-less binary data format.
src
cbor
streaming.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_STREAMING_H
9
#define LIBCBOR_STREAMING_H
10
11
#include "
cbor/common.h
"
12
#include "
callbacks.h
"
13
14
#ifdef __cplusplus
15
extern
"C"
{
16
#endif
17
28
struct
cbor_decoder_result
cbor_stream_decode
(
cbor_data
buffer,
29
size_t buffer_size,
30
const struct
cbor_callbacks
* callbacks,
31
void
* context);
32
33
34
#ifdef __cplusplus
35
}
36
#endif
37
38
#endif //LIBCBOR_STREAMING_H
cbor_decoder_result
Streaming decoder result.
Definition:
data.h:201
cbor_data
const unsigned char * cbor_data
Definition:
data.h:20
cbor_callbacks
Callback bundle – passed to the decoder.
Definition:
callbacks.h:48
common.h
cbor_stream_decode
struct cbor_decoder_result cbor_stream_decode(cbor_data buffer, size_t buffer_size, const struct cbor_callbacks *callbacks, void *context)
Stateless decoder.
Definition:
streaming.c:26
callbacks.h
Generated on Mon Feb 6 2017 00:26:19 for libcbor by
1.8.12