Path: blob/main/contrib/libcbor/src/cbor/callbacks.c
39507 views
/*1* Copyright (c) 2014-2020 Pavel Kalvoda <[email protected]>2*3* libcbor is free software; you can redistribute it and/or modify4* it under the terms of the MIT license. See LICENSE for details.5*/67#include "callbacks.h"89void cbor_null_uint8_callback(void *_CBOR_UNUSED(_ctx),10uint8_t _CBOR_UNUSED(_val)) {}1112void cbor_null_uint16_callback(void *_CBOR_UNUSED(_ctx),13uint16_t _CBOR_UNUSED(_val)) {}1415void cbor_null_uint32_callback(void *_CBOR_UNUSED(_ctx),16uint32_t _CBOR_UNUSED(_val)) {}1718void cbor_null_uint64_callback(void *_CBOR_UNUSED(_ctx),19uint64_t _CBOR_UNUSED(_val)) {}2021void cbor_null_negint8_callback(void *_CBOR_UNUSED(_ctx),22uint8_t _CBOR_UNUSED(_val)) {}2324void cbor_null_negint16_callback(void *_CBOR_UNUSED(_ctx),25uint16_t _CBOR_UNUSED(_val)) {}2627void cbor_null_negint32_callback(void *_CBOR_UNUSED(_ctx),28uint32_t _CBOR_UNUSED(_val)) {}2930void cbor_null_negint64_callback(void *_CBOR_UNUSED(_ctx),31uint64_t _CBOR_UNUSED(_val)) {}3233void cbor_null_string_callback(void *_CBOR_UNUSED(_ctx),34cbor_data _CBOR_UNUSED(_val),35uint64_t _CBOR_UNUSED(_val2)) {}3637void cbor_null_string_start_callback(void *_CBOR_UNUSED(_ctx)) {}3839void cbor_null_byte_string_callback(void *_CBOR_UNUSED(_ctx),40cbor_data _CBOR_UNUSED(_val),41uint64_t _CBOR_UNUSED(_val2)) {}4243void cbor_null_byte_string_start_callback(void *_CBOR_UNUSED(_ctx)) {}4445void cbor_null_array_start_callback(void *_CBOR_UNUSED(_ctx),46uint64_t _CBOR_UNUSED(_val)) {}4748void cbor_null_indef_array_start_callback(void *_CBOR_UNUSED(_ctx)) {}4950void cbor_null_map_start_callback(void *_CBOR_UNUSED(_ctx),51uint64_t _CBOR_UNUSED(_val)) {}5253void cbor_null_indef_map_start_callback(void *_CBOR_UNUSED(_ctx)) {}5455void cbor_null_tag_callback(void *_CBOR_UNUSED(_ctx),56uint64_t _CBOR_UNUSED(_val)) {}5758void cbor_null_float2_callback(void *_CBOR_UNUSED(_ctx),59float _CBOR_UNUSED(_val)) {}6061void cbor_null_float4_callback(void *_CBOR_UNUSED(_ctx),62float _CBOR_UNUSED(_val)) {}6364void cbor_null_float8_callback(void *_CBOR_UNUSED(_ctx),65double _CBOR_UNUSED(_val)) {}6667void cbor_null_null_callback(void *_CBOR_UNUSED(_ctx)) {}6869void cbor_null_undefined_callback(void *_CBOR_UNUSED(_ctx)) {}7071void cbor_null_boolean_callback(void *_CBOR_UNUSED(_ctx),72bool _CBOR_UNUSED(_val)) {}7374void cbor_null_indef_break_callback(void *_CBOR_UNUSED(_ctx)) {}7576CBOR_EXPORT const struct cbor_callbacks cbor_empty_callbacks = {77/* Type 0 - Unsigned integers */78.uint8 = cbor_null_uint8_callback,79.uint16 = cbor_null_uint16_callback,80.uint32 = cbor_null_uint32_callback,81.uint64 = cbor_null_uint64_callback,8283/* Type 1 - Negative integers */84.negint8 = cbor_null_negint8_callback,85.negint16 = cbor_null_negint16_callback,86.negint32 = cbor_null_negint32_callback,87.negint64 = cbor_null_negint64_callback,8889/* Type 2 - Byte strings */90.byte_string_start = cbor_null_byte_string_start_callback,91.byte_string = cbor_null_byte_string_callback,9293/* Type 3 - Strings */94.string_start = cbor_null_string_start_callback,95.string = cbor_null_string_callback,9697/* Type 4 - Arrays */98.indef_array_start = cbor_null_indef_array_start_callback,99.array_start = cbor_null_array_start_callback,100101/* Type 5 - Maps */102.indef_map_start = cbor_null_indef_map_start_callback,103.map_start = cbor_null_map_start_callback,104105/* Type 6 - Tags */106.tag = cbor_null_tag_callback,107108/* Type 7 - Floats & misc */109/* Type names cannot be member names */110.float2 = cbor_null_float2_callback,111/* 2B float is not supported in standard C */112.float4 = cbor_null_float4_callback,113.float8 = cbor_null_float8_callback,114.undefined = cbor_null_undefined_callback,115.null = cbor_null_null_callback,116.boolean = cbor_null_boolean_callback,117118/* Shared indefinites */119.indef_break = cbor_null_indef_break_callback,120};121122123