forked from ElektraInitiative/libelektra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
contract.h
62 lines (60 loc) · 2.71 KB
/
contract.h
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
55
56
57
58
59
60
61
62
/**
* @file
*
* @brief
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*/
// clang-format off
ksNew (50,
keyNew ("system:/elektra/modules/" ELEKTRA_PLUGIN_NAME "",
KEY_VALUE, "" ELEKTRA_PLUGIN_NAME " plugin waits for your orders", KEY_END),
keyNew ("system:/elektra/modules/" ELEKTRA_PLUGIN_NAME "/constants", KEY_END),
keyNew ("system:/elektra/modules/" ELEKTRA_PLUGIN_NAME "/constants/KDB_DB_SYSTEM",
KEY_VALUE, KDB_DB_SYSTEM, KEY_END),
keyNew ("system:/elektra/modules/" ELEKTRA_PLUGIN_NAME "/constants/KDB_DB_HOME",
KEY_VALUE, KDB_DB_HOME, KEY_END),
keyNew ("system:/elektra/modules/" ELEKTRA_PLUGIN_NAME "/constants/KDB_DB_USER",
KEY_VALUE, KDB_DB_USER, KEY_END),
keyNew ("system:/elektra/modules/" ELEKTRA_PLUGIN_NAME "/constants/KDB_DB_SPEC",
KEY_VALUE, KDB_DB_SPEC, KEY_END),
keyNew ("system:/elektra/modules/" ELEKTRA_PLUGIN_NAME "/constants/KDB_DB_DIR",
KEY_VALUE, KDB_DB_DIR, KEY_END),
keyNew ("system:/elektra/modules/" ELEKTRA_PLUGIN_NAME "/constants/ELEKTRA_VARIANT_SYSTEM",
KEY_VALUE, ELEKTRA_VARIANT_SYSTEM, KEY_END),
keyNew ("system:/elektra/modules/" ELEKTRA_PLUGIN_NAME "/constants/ELEKTRA_VARIANT_USER",
KEY_VALUE, ELEKTRA_VARIANT_USER, KEY_END),
keyNew ("system:/elektra/modules/" ELEKTRA_PLUGIN_NAME "/constants/ELEKTRA_VARIANT_BASE",
KEY_VALUE, ELEKTRA_VARIANT_BASE, KEY_END),
keyNew ("system:/elektra/modules/" ELEKTRA_PLUGIN_NAME "/exports", KEY_END),
keyNew ("system:/elektra/modules/" ELEKTRA_PLUGIN_NAME "/exports/open",
KEY_FUNC, ELEKTRA_PLUGIN_FUNCTION(open),
KEY_END),
keyNew ("system:/elektra/modules/" ELEKTRA_PLUGIN_NAME "/exports/close",
KEY_FUNC, ELEKTRA_PLUGIN_FUNCTION(close),
KEY_END),
keyNew ("system:/elektra/modules/" ELEKTRA_PLUGIN_NAME "/exports/get",
KEY_FUNC, ELEKTRA_PLUGIN_FUNCTION(get),
KEY_END),
keyNew ("system:/elektra/modules/" ELEKTRA_PLUGIN_NAME "/exports/set",
KEY_FUNC, ELEKTRA_PLUGIN_FUNCTION(set),
KEY_END),
keyNew ("system:/elektra/modules/" ELEKTRA_PLUGIN_NAME "/exports/commit",
KEY_FUNC, ELEKTRA_PLUGIN_FUNCTION(commit),
KEY_END),
keyNew ("system:/elektra/modules/" ELEKTRA_PLUGIN_NAME "/exports/error",
KEY_FUNC, ELEKTRA_PLUGIN_FUNCTION(error),
KEY_END),
keyNew ("system:/elektra/modules/" ELEKTRA_PLUGIN_NAME "/exports/checkfile",
KEY_FUNC, ELEKTRA_PLUGIN_FUNCTION(checkFile),
KEY_END),
keyNew ("system:/elektra/modules/" ELEKTRA_PLUGIN_NAME "/exports/filename",
KEY_FUNC, ELEKTRA_PLUGIN_FUNCTION(filename),
KEY_END),
keyNew ("system:/elektra/modules/" ELEKTRA_PLUGIN_NAME "/exports/freeHandle",
KEY_FUNC, ELEKTRA_PLUGIN_FUNCTION(freeHandle),
KEY_END),
#include ELEKTRA_README
keyNew ("system:/elektra/modules/" ELEKTRA_PLUGIN_NAME "/infos/version",
KEY_VALUE, PLUGINVERSION, KEY_END),
KS_END);