-
Notifications
You must be signed in to change notification settings - Fork 17
/
json_write.h
43 lines (37 loc) · 2.3 KB
/
json_write.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/***************************************************************************
* Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, *
* Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. *
* *
* Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael *
* Chastain, Michael Quan, and Mitchell Tse. *
* *
* In order to use any part of this Merc Diku Mud, you must comply with *
* both the original Diku license in 'license.doc' as well the Merc *
* license in 'license.txt'. In particular, you may not remove either of *
* these copyright notices. *
* *
* Much time and thought has gone into this software and you are *
* benefitting. We hope that you share your changes too. What goes *
* around, comes around. *
***************************************************************************/
/***************************************************************************
* ROM 2.4 is copyright 1993-1998 Russ Taylor *
* ROM has been brought to you by the ROM consortium *
* Russ Taylor ([email protected]) *
* Gabrielle Taylor ([email protected]) *
* Brian Moore ([email protected]) *
* By using this code, you have agreed to follow the terms of the *
* ROM license, in the file Rom24/doc/rom.license *
***************************************************************************/
#ifndef __ROM_JSON_WRITE_H
#define __ROM_JSON_WRITE_H
#include "merc.h"
#include <stdio.h>
/* Writing functions. */
const char *json_escaped_string (const char *value, int newline_pos);
void json_print_real (JSON_T *json, FILE *fp, int new_line);
void json_print (JSON_T *json, FILE *fp);
void json_fwrite (JSON_T *json, const char *filename);
int json_mkdir (const char *dir);
int json_mkdir_to (const char *filename);
#endif