mirror of
https://github.com/mauiaaron/apple2.git
synced 2024-09-27 09:56:08 +00:00
26 lines
646 B
C
26 lines
646 B
C
|
/*
|
||
|
* Apple // emulator for *nix
|
||
|
*
|
||
|
* This software package is subject to the GNU General Public License
|
||
|
* version 2 or later (your choice) as published by the Free Software
|
||
|
* Foundation.
|
||
|
*
|
||
|
* THERE ARE NO WARRANTIES WHATSOEVER.
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
#include "common.h"
|
||
|
#include "../externals/jsmn/jsmn.h"
|
||
|
|
||
|
typedef struct JSON_s {
|
||
|
char *jsonString;
|
||
|
jsmntok_t *jsonTokens;
|
||
|
} JSON_s;
|
||
|
|
||
|
// parses file into string and tokens. returns positive token count or negative jsmnerr_t error code.
|
||
|
int json_createFromFile(const char *filePath, INOUT JSON_s *parsedData);
|
||
|
|
||
|
// destroys internal allocated memory (if any)
|
||
|
void json_destroy(JSON_s *parsedData);
|
||
|
|