EPICS Base  7.0.6.1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
yajl_common.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2007-2011, Lloyd Hilaiel <[email protected]>
3  *
4  * Permission to use, copy, modify, and/or distribute this software for any
5  * purpose with or without fee is hereby granted, provided that the above
6  * copyright notice and this permission notice appear in all copies.
7  *
8  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15  */
16 
17 #ifndef __YAJL_COMMON_H__
18 #define __YAJL_COMMON_H__
19 
20 #include <stddef.h>
21 #include <libComAPI.h>
22 
23 #include <epicsVersion.h>
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
55 #define EPICS_YAJL_VERSION VERSION_INT(2,2,0,0)
56 
60 #define HAS_JSON5
61 
65 #define YAJL_MAX_DEPTH 128
66 
68 #define YAJL_API LIBCOM_API
69 
72 typedef void * (*yajl_malloc_func)(void *ctx, size_t sz);
73 
76 typedef void (*yajl_free_func)(void *ctx, void * ptr);
77 
79 typedef void * (*yajl_realloc_func)(void *ctx, void * ptr, size_t sz);
80 
83 typedef struct
84 {
93  void * ctx;
95 
96 #ifdef __cplusplus
97 }
98 #endif
99 
100 #endif
yajl_free_func free
Definition: yajl_common.h:91
void *(* yajl_realloc_func)(void *ctx, void *ptr, size_t sz)
Definition: yajl_common.h:79
yajl_realloc_func realloc
Definition: yajl_common.h:88
void(* yajl_free_func)(void *ctx, void *ptr)
Definition: yajl_common.h:76
void *(* yajl_malloc_func)(void *ctx, size_t sz)
Definition: yajl_common.h:72
yajl_malloc_func malloc
Definition: yajl_common.h:86