Initial Release

This commit is contained in:
CJ van den Berg 2024-02-08 22:23:40 +01:00
commit 5a00e06cb9
81 changed files with 12670 additions and 0 deletions

26
include/cbor/c/cbor.h Normal file
View file

@ -0,0 +1,26 @@
#pragma once
#include <thespian/c/string_view.h>
#include <stddef.h> // NOLINT
#include <stdint.h> // NOLINT
#ifdef __cplusplus
extern "C" {
#endif
struct cbor_buffer_t {
const uint8_t *base;
size_t len;
};
typedef struct // NOLINT
cbor_buffer_t cbor_buffer;
typedef // NOLINT
void (*cbor_to_json_callback)(c_string_view);
void cbor_to_json(cbor_buffer, cbor_to_json_callback);
#ifdef __cplusplus
}
#endif