Swadge 2024 2.0.0
APIs to develop games for the Magfest Swadge
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
json_processor.c File Reference

Functions

bool process_json (processorInput_t *arg)
 

Variables

const assetProcessor_t jsonProcessor
 The JSON processor validates JSON files and compresses them with heatshrink.
 

Function Documentation

◆ process_json()

bool process_json ( processorInput_t * arg)

Variable Documentation

◆ jsonProcessor

const assetProcessor_t jsonProcessor
Initial value:
= {
.name = "json",
.type = FUNCTION,
.function = process_json,
.inFmt = FMT_TEXT,
.outFmt = FMT_FILE_BIN,
}
@ FMT_FILE_BIN
An opened file handle (in binary mode) is passed for the file.
Definition assets_preprocessor.h:621
@ FMT_TEXT
A text file's data is passed as an ordinary string.
Definition assets_preprocessor.h:625
@ FUNCTION
Processor that calls a function pointer to process assets.
Definition assets_preprocessor.h:607
bool process_json(processorInput_t *arg)
Definition json_processor.c:23

The JSON processor validates JSON files and compresses them with heatshrink.