forked from ElektraInitiative/libelektra
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tcl.hpp
35 lines (24 loc) · 773 Bytes
/
tcl.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
29
30
31
32
33
34
35
/**
* @file
*
* @brief
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*/
#ifndef ELEKTRA_PLUGIN_TCL_H
#define ELEKTRA_PLUGIN_TCL_H
#include <kdbplugin.h>
#include <keyset.hpp>
#include <ostream>
namespace elektra
{
void serialise (std::ostream & os, kdb::KeySet & output, kdb::Key & parent);
void unserialise (std::istream & os, kdb::KeySet & output, kdb::Key & parent);
} // namespace elektra
extern "C" {
int elektraTclGet (ckdb::Plugin * handle, ckdb::KeySet * ks, ckdb::Key * parentKey);
int elektraTclSet (ckdb::Plugin * handle, ckdb::KeySet * ks, ckdb::Key * parentKey);
int elektraTclError (ckdb::Plugin * handle, ckdb::KeySet * ks, ckdb::Key * parentKey);
ckdb::Plugin * ELEKTRA_PLUGIN_EXPORT;
} // end extern "C"
#endif