Debian Codegraph @

source/cbor.h

raw symbols SCIP
1 #ifndef AWS_CRT_PYTHON_CBOR_H
2 #define AWS_CRT_PYTHON_CBOR_H
3 /**
4 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
5 * SPDX-License-Identifier: Apache-2.0.
6 */
7 #include "module.h"
8
9 /*******************************************************************************
10 * ENCODE
11 ******************************************************************************/
12
13 PyObject *aws_py_cbor_encoder_new(PyObject *self, PyObject *args);
14 PyObject *aws_py_cbor_encoder_get_encoded_data(PyObject *self, PyObject *args);
15
16 PyObject *aws_py_cbor_encoder_write_uint(PyObject *self, PyObject *args);
17 PyObject *aws_py_cbor_encoder_write_negint(PyObject *self, PyObject *args);
18 PyObject *aws_py_cbor_encoder_write_float(PyObject *self, PyObject *args);
19 PyObject *aws_py_cbor_encoder_write_bytes(PyObject *self, PyObject *args);
20 PyObject *aws_py_cbor_encoder_write_text(PyObject *self, PyObject *args);
21 PyObject *aws_py_cbor_encoder_write_array_start(PyObject *self, PyObject *args);
22 PyObject *aws_py_cbor_encoder_write_map_start(PyObject *self, PyObject *args);
23 PyObject *aws_py_cbor_encoder_write_tag(PyObject *self, PyObject *args);
24 PyObject *aws_py_cbor_encoder_write_bool(PyObject *self, PyObject *args);
25
26 /* Encode the types without value needed. The arg is the type to encode. */
27 PyObject *aws_py_cbor_encoder_write_simple_types(PyObject *self, PyObject *args);
28
29 PyObject *aws_py_cbor_encoder_write_py_list(PyObject *self, PyObject *args);
30 PyObject *aws_py_cbor_encoder_write_py_dict(PyObject *self, PyObject *args);
31 PyObject *aws_py_cbor_encoder_write_data_item(PyObject *self, PyObject *args);
32
33 /*******************************************************************************
34 * DECODE
35 ******************************************************************************/
36
37 PyObject *aws_py_cbor_decoder_new(PyObject *self, PyObject *args);
38 PyObject *aws_py_cbor_decoder_peek_type(PyObject *self, PyObject *args);
39 PyObject *aws_py_cbor_decoder_get_remaining_bytes_len(PyObject *self, PyObject *args);
40 PyObject *aws_py_cbor_decoder_consume_next_element(PyObject *self, PyObject *args);
41 PyObject *aws_py_cbor_decoder_consume_next_data_item(PyObject *self, PyObject *args);
42 PyObject *aws_py_cbor_decoder_pop_next_unsigned_int(PyObject *self, PyObject *args);
43 PyObject *aws_py_cbor_decoder_pop_next_negative_int(PyObject *self, PyObject *args);
44 PyObject *aws_py_cbor_decoder_pop_next_float(PyObject *self, PyObject *args);
45 PyObject *aws_py_cbor_decoder_pop_next_boolean(PyObject *self, PyObject *args);
46 PyObject *aws_py_cbor_decoder_pop_next_bytes(PyObject *self, PyObject *args);
47 PyObject *aws_py_cbor_decoder_pop_next_text(PyObject *self, PyObject *args);
48 PyObject *aws_py_cbor_decoder_pop_next_array_start(PyObject *self, PyObject *args);
49 PyObject *aws_py_cbor_decoder_pop_next_map_start(PyObject *self, PyObject *args);
50 PyObject *aws_py_cbor_decoder_pop_next_tag(PyObject *self, PyObject *args);
51
52 PyObject *aws_py_cbor_decoder_pop_next_py_list(PyObject *self, PyObject *args);
53 PyObject *aws_py_cbor_decoder_pop_next_py_dict(PyObject *self, PyObject *args);
54 PyObject *aws_py_cbor_decoder_pop_next_data_item(PyObject *self, PyObject *args);
55
56 #endif /* AWS_CRT_PYTHON_CBOR_H */