forked from ElektraInitiative/libelektra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fcrypt.h
29 lines (22 loc) · 873 Bytes
/
fcrypt.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
/**
* @file
*
* @brief filter plugin providing cryptographic operations
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*
*/
#ifndef ELEKTRA_PLUGIN_FCRYPT_H
#define ELEKTRA_PLUGIN_FCRYPT_H
#include <kdbplugin.h>
// kdb functions
int ELEKTRA_PLUGIN_FUNCTION (open) (Plugin * handle, KeySet * ks, Key * parentKey);
int ELEKTRA_PLUGIN_FUNCTION (close) (Plugin * handle, KeySet * ks, Key * parentKey);
int ELEKTRA_PLUGIN_FUNCTION (get) (Plugin * handle, KeySet * ks, Key * parentKey);
int ELEKTRA_PLUGIN_FUNCTION (set) (Plugin * handle, KeySet * ks, Key * parentKey);
int ELEKTRA_PLUGIN_FUNCTION (checkconf) (Key * errorKey, KeySet * conf);
Plugin * ELEKTRA_PLUGIN_EXPORT;
#define ELEKTRA_FCRYPT_DEFAULT_TMPDIR "/tmp"
#define ELEKTRA_FCRYPT_CONFIG_TEXTMODE "/fcrypt/textmode"
#define ELEKTRA_FCRYPT_CONFIG_TMPDIR "/fcrypt/tmpdir"
#endif