aboutsummaryrefslogtreecommitdiff
path: root/doc/source/streaming
diff options
context:
space:
mode:
Diffstat (limited to 'doc/source/streaming')
-rw-r--r--doc/source/streaming/decoding.rst40
-rw-r--r--doc/source/streaming/encoding.rst4
2 files changed, 44 insertions, 0 deletions
diff --git a/doc/source/streaming/decoding.rst b/doc/source/streaming/decoding.rst
new file mode 100644
index 000000000000..70174aa2715d
--- /dev/null
+++ b/doc/source/streaming/decoding.rst
@@ -0,0 +1,40 @@
+Decoding
+=============================
+
+Another way to decode data using libcbor is to specify a callbacks that will be invoked when upon finding certain items in the input. This API is provided by
+
+.. doxygenfunction:: cbor_stream_decode
+
+Usage example: https://github.com/PJK/libcbor/blob/master/examples/streaming_parser.c
+
+The callbacks are defined by
+
+.. doxygenstruct:: cbor_callbacks
+ :members:
+
+When building custom sets of callbacks, feel free to start from
+
+.. doxygenvariable:: cbor_empty_callbacks
+
+Related structures
+~~~~~~~~~~~~~~~~~~~~~
+
+.. doxygenenum:: cbor_decoder_status
+.. doxygenstruct:: cbor_decoder_result
+ :members:
+
+
+Callback types definition
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+
+.. doxygentypedef:: cbor_int8_callback
+.. doxygentypedef:: cbor_int16_callback
+.. doxygentypedef:: cbor_int32_callback
+.. doxygentypedef:: cbor_int64_callback
+.. doxygentypedef:: cbor_simple_callback
+.. doxygentypedef:: cbor_string_callback
+.. doxygentypedef:: cbor_collection_callback
+.. doxygentypedef:: cbor_float_callback
+.. doxygentypedef:: cbor_double_callback
+.. doxygentypedef:: cbor_bool_callback
diff --git a/doc/source/streaming/encoding.rst b/doc/source/streaming/encoding.rst
new file mode 100644
index 000000000000..8a56461d3584
--- /dev/null
+++ b/doc/source/streaming/encoding.rst
@@ -0,0 +1,4 @@
+Encoding
+=============================
+
+TODO