This is Unofficial EPICS BASE Doxygen Site
yajl_common.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2007-2011, Lloyd Hilaiel <lloyd@hilaiel.com>
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 
46 #define EPICS_YAJL_VERSION VERSION_INT(2,1,0,0)
47 
49 #define YAJL_MAX_DEPTH 128
50 
52 #define YAJL_API LIBCOM_API
53 
56 typedef void * (*yajl_malloc_func)(void *ctx, size_t sz);
57 
60 typedef void (*yajl_free_func)(void *ctx, void * ptr);
61 
63 typedef void * (*yajl_realloc_func)(void *ctx, void * ptr, size_t sz);
64 
67 typedef struct
68 {
77  void * ctx;
79 
80 #ifdef __cplusplus
81 }
82 #endif
83 
84 #endif
yajl_free_func free
Definition: yajl_common.h:75
yajl_realloc_func realloc
Definition: yajl_common.h:72
void *(* yajl_malloc_func)(void *ctx, size_t sz)
Definition: yajl_common.h:56
void(* yajl_free_func)(void *ctx, void *ptr)
Definition: yajl_common.h:60
void *(* yajl_realloc_func)(void *ctx, void *ptr, size_t sz)
Definition: yajl_common.h:63
yajl_malloc_func malloc
Definition: yajl_common.h:70