diff options
| author | frosty <gabriel@bwaaa.monster> | 2026-03-13 13:33:30 -0400 |
|---|---|---|
| committer | frosty <gabriel@bwaaa.monster> | 2026-03-13 13:33:30 -0400 |
| commit | 4539593e6ad442dc2547ccab38a3c642ccd635e1 (patch) | |
| tree | f291a5f603e0468650167f8aaba82d8c8135028e /src/Utility/JsonHelper.h | |
| parent | ef1cd7cc6060df0f5dcfada136dd99a695e8a0fc (diff) | |
| download | omnisearch-4539593e6ad442dc2547ccab38a3c642ccd635e1.tar.gz | |
feature: added currency conversion infobox
Diffstat (limited to 'src/Utility/JsonHelper.h')
| -rw-r--r-- | src/Utility/JsonHelper.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/Utility/JsonHelper.h b/src/Utility/JsonHelper.h new file mode 100644 index 0000000..62034b8 --- /dev/null +++ b/src/Utility/JsonHelper.h @@ -0,0 +1,17 @@ +#ifndef JSONHELPER_H +#define JSONHELPER_H + +#include <stddef.h> + +typedef struct { + double values[256]; + char keys[256][32]; + size_t count; +} JsonFloatMap; + +int json_parse_float_map(const char *json, const char *target_key, + JsonFloatMap *result); +double json_get_float(const char *json, const char *key); +char *json_get_string(const char *json, const char *key); + +#endif |
