5 #ifndef OPENTITAN_SW_DEVICE_LIB_UJSON_UJSON_H_
6 #define OPENTITAN_SW_DEVICE_LIB_UJSON_UJSON_H_
9 #include "sw/device/lib/base/status.h"
31 #define UJSON_INIT(context_, getc_, putbuf_) \
33 .io_context = (void*)(context_), \
34 .putbuf_ = (putbuf_), \
37 .crc32 = UINT32_MAX, \
50 status_t (*putbuf)(
void *,
const char *,
size_t));
84 void ujson_crc32_reset(
ujson_t *uj);
95 uint32_t ujson_crc32_finish(
ujson_t *uj);
104 bool ujson_streq(
const char *a,
const char *b);