forked from ElektraInitiative/libelektra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
recorder.h
34 lines (27 loc) · 861 Bytes
/
recorder.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
/**
* @file
*
* @brief Header for recorder plugin
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*
*/
#ifndef ELEKTRA_PLUGIN_RECORDER_H
#define ELEKTRA_PLUGIN_RECORDER_H
#include <kdbplugin.h>
#define ELEKTRA_RECORDER_DEFAULT_LOCK_FILE_PATH "/tmp/elektra_record.lock"
int elektraRecorderOpen (Plugin * handle, Key * errorKey);
int elektraRecorderClose (Plugin * handle, Key * errorKey);
int elektraRecorderGet (Plugin * handle, KeySet * ks, Key * parentKey);
int elektraRecorderLock (Plugin * handle, Key * parentKey);
int elektraRecorderUnlock (Plugin * handle, Key * parentKey);
int elektraRecorderRecord (Plugin * handle, KeySet * returned, Key * parentKey);
Plugin * ELEKTRA_PLUGIN_EXPORT;
struct recorderData
{
char * lockFilePath;
int lockFileFd;
Key * recordingSessionKey;
Key * recordingConfigKey;
};
#endif