forked from tom-wa/libelektra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
python.hpp
28 lines (21 loc) · 961 Bytes
/
python.hpp
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
/**
* @file
*
* @brief
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*/
#ifndef ELEKTRA_PLUGIN_PYTHON_H
#define PYTHON_PLUGIN_FUNCTION(func) PYTHON_PLUGIN_FUNCTION2 (PYTHON_PLUGIN_SYMBOL_NAME, func)
#define PYTHON_PLUGIN_FUNCTION2(module, func) ELEKTRA_PLUGIN_FUNCTION (module, func)
#define PYTHON_PLUGIN_EXPORT(module) ELEKTRA_PLUGIN_EXPORT (module)
extern "C" {
#include <kdbplugin.h>
int PYTHON_PLUGIN_FUNCTION (Open) (ckdb::Plugin * handle, ckdb::Key * errorKey);
int PYTHON_PLUGIN_FUNCTION (Close) (ckdb::Plugin * handle, ckdb::Key * errorKey);
int PYTHON_PLUGIN_FUNCTION (Get) (ckdb::Plugin * handle, ckdb::KeySet * ks, ckdb::Key * parentKey);
int PYTHON_PLUGIN_FUNCTION (Set) (ckdb::Plugin * handle, ckdb::KeySet * ks, ckdb::Key * parentKey);
int PYTHON_PLUGIN_FUNCTION (Error) (ckdb::Plugin * handle, ckdb::KeySet * ks, ckdb::Key * parentKey);
ckdb::Plugin * PYTHON_PLUGIN_EXPORT (PYTHON_PLUGIN_NAME);
}
#endif