root/src/json-lib/json_util.h

Revision efa9375336eec306ede14a9a1032985a71482810, 0.6 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 4 years ago)

refs #294 resmon no support arbitrary json objects

  • Property mode set to 100644
Line 
1 /*
2  * $Id: json_util.h,v 1.4 2006/01/30 23:07:57 mclark Exp $
3  *
4  * Copyright (c) 2004, 2005 Metaparadigm Pte. Ltd.
5  * Michael Clark <michael@metaparadigm.com>
6  *
7  * This library is free software; you can redistribute it and/or modify
8  * it under the terms of the MIT license. See COPYING for details.
9  *
10  */
11
12 #ifndef _json_util_h_
13 #define _json_util_h_
14
15 #include "json_object.h"
16
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20
21 #define JSON_FILE_BUF_SIZE 4096
22
23 /* utility functions */
24 extern struct json_object* json_object_from_file(char *filename);
25 extern int json_object_to_file(char *filename, struct json_object *obj);
26
27 #ifdef __cplusplus
28 }
29 #endif
30
31 #endif
Note: See TracBrowser for help on using the browser.