MACSio  0.9
Multi-purpose, Application-Centric, Scalable I/O Proxy App
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
json_util.h
Go to the documentation of this file.
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(const char *filename);
25 extern int json_object_to_file(const char *filename, struct json_object *obj);
26 extern int json_object_to_file_ext(const char *filename, struct json_object *obj, int flags);
27 extern int json_parse_int64(const char *buf, int64_t *retval);
28 extern int json_parse_double(const char *buf, double *retval);
29 
30 
35 extern const char *json_type_to_name(enum json_type o_type);
36 
37 extern const char *json_extarr_type_to_name(enum json_extarr_type o_type);
40 
41 #ifdef __cplusplus
42 }
43 #endif
44 
45 #endif
int json_object_to_file_ext(const char *filename, struct json_object *obj, int flags)
Definition: json_util.c:102
static const char * filename
Definition: macsio_hdf5.c:683
int json_object_to_file(const char *filename, struct json_object *obj)
Definition: json_util.c:144
int json_parse_double(const char *buf, double *retval)
Definition: json_util.c:149
int json_extarr_type_nbits(enum json_extarr_type o_type)
Definition: json_util.c:341
const char * json_type_to_name(enum json_type o_type)
Definition: json_util.c:308
json_extarr_type
Definition: json_object.h:120
enum json_type o_type
const char * json_extarr_type_to_name(enum json_extarr_type o_type)
Definition: json_util.c:330
int json_parse_int64(const char *buf, int64_t *retval)
Definition: json_util.c:188
int json_extarr_type_nbytes(enum json_extarr_type o_type)
Definition: json_util.c:356
struct json_object * json_object_from_file(const char *filename)
Definition: json_util.c:68
json_type
Definition: json_object.h:107