forked from ElektraInitiative/libelektra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathyajl.h.in
54 lines (41 loc) · 1.66 KB
/
yajl.h.in
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
44
45
46
47
48
49
50
51
52
53
54
/**
* @file
*
* @brief
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*/
// clang-format off
@DISCLAMER@
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the BSD License (revised). *
* *
***************************************************************************/
/***************************************************************************
* *
* This is the skeleton of the methods you'll have to implement in order *
* to provide a valid plugin. *
* Simple fill the empty functions with your code and you are *
* ready to go. *
* *
***************************************************************************/
#ifndef ELEKTRA_PLUGIN_YAJL_H
#define ELEKTRA_PLUGIN_YAJL_H
#include <kdbplugin.h>
#cmakedefine YAJL_NO_VERSION
#ifdef YAJL_NO_VERSION
# define YAJL_MAJOR 1
#else
# include <yajl/yajl_version.h>
#endif
#if YAJL_MAJOR == 1
typedef unsigned int yajl_size_type;
#else
typedef size_t yajl_size_type;
#endif
int elektraYajlGet(Plugin *handle, KeySet *ks, Key *parentKey);
int elektraYajlSet(Plugin *handle, KeySet *ks, Key *parentKey);
Plugin *ELEKTRA_PLUGIN_EXPORT;
#endif