26 lines
957 B
C++
26 lines
957 B
C++
#include "parser3.h"
|
|
#include "weaseljson.h"
|
|
|
|
extern "C" {
|
|
|
|
/** Create a parser. Increasing stack size increases memory usage but also
|
|
* increases the depth of nested json accepted. `callbacks` and `data` must
|
|
* outlive the returned parser. */
|
|
__attribute__((visibility("default"))) WeaselJsonParser *
|
|
WeaselJsonParser_create(int stackSize, const WeaselJsonCallbacks *callbacks,
|
|
void *data) {}
|
|
|
|
/** Restore the parser to its newly-created state */
|
|
__attribute__((visibility("default"))) void
|
|
WeaselJsonParser_reset(WeaselJsonParser *parser) {}
|
|
|
|
/** Destroy the parser */
|
|
__attribute__((visibility("default"))) void
|
|
WeaselJsonParser_destroy(WeaselJsonParser *parser) {}
|
|
|
|
/** Incrementally parse `len` more bytes starting at `buf`. `buf` may be
|
|
* modified. Call with `len` 0 to indicate end of data */
|
|
__attribute__((visibility("default"))) WeaselJsonStatus
|
|
WeaselJsonParser_parse(WeaselJsonParser *parser, char *buf, int len) {}
|
|
}
|