forked from ElektraInitiative/libelektra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
timeofday.h
35 lines (28 loc) · 769 Bytes
/
timeofday.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
/**
* @file
*
* @brief
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*/
#include <kdbplugin.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#define BACKENDNAME "timeofday"
#define BACKENDVERSION "0.0.1"
struct _TimeofdayInfo
{
struct timeval start;
struct timeval last;
int nrget;
int nrset;
int nrerr;
};
typedef struct _TimeofdayInfo TimeofdayInfo;
int elektraTimeofdayOpen (Plugin * handle, Key *);
int elektraTimeofdayClose (Plugin * handle, Key *);
int elektraTimeofdayGet (Plugin * handle, KeySet * ks, Key * parentKey);
int elektraTimeofdaySet (Plugin * handle, KeySet * ks, Key * parentKey);
int elektraTimeofdayError (Plugin * handle, KeySet * ks, Key * parentKey);
Plugin * ELEKTRA_PLUGIN_EXPORT;