Add flags argument to WeaselJsonParser_create
This commit is contained in:
@@ -36,13 +36,18 @@ enum WeaselJsonStatus {
|
||||
|
||||
typedef struct WeaselJsonParser WeaselJsonParser;
|
||||
|
||||
enum WeaselJsonFlags {
|
||||
/** Do not unescape strings or write to the supplied buffer at all. */
|
||||
WeaselJsonRaw = 1,
|
||||
};
|
||||
|
||||
/** Create a parser. Increasing stack size increases memory usage but also
|
||||
* increases the depth of nested json accepted. `callbacks` and `userdata` must
|
||||
* outlive the returned parser. Returns null if there's insufficient available
|
||||
* memory */
|
||||
WeaselJsonParser *WeaselJsonParser_create(int stackSize,
|
||||
const WeaselJsonCallbacks *callbacks,
|
||||
void *userdata);
|
||||
void *userdata, int flags);
|
||||
|
||||
/** Restore the parser to its newly-created state */
|
||||
void WeaselJsonParser_reset(WeaselJsonParser *parser);
|
||||
|
||||
Reference in New Issue
Block a user