/usr/include/elektra/kdbplugin.h is in libelektra-dev 0.8.7-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | /***************************************************************************
kdbplugin.h - Methods for plugin programing
-------------------
* begin : Wed 19 May, 2010
* copyright : (C) 2010 by Markus Raab
* email : elektra@markus-raab.org
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the BSD License (revised). *
* *
***************************************************************************/
/*
* You have to include this file in order to write plugins.
* You do not need this functions to use elektra otherwise!
*/
#ifndef KDBPLUGIN_H
#define KDBPLUGIN_H
#include <kdb.h>
#ifdef ELEKTRA_STATIC
#define ELEKTRA_PLUGIN_EXPORT(module) libelektra_##module##_LTX_elektraPluginSymbol(void)
#else
#define ELEKTRA_PLUGIN_EXPORT(module) elektraPluginSymbol(void)
#endif
/**
* Switches to denote the backend methods. Used in calls to elektraPluginExport().
*
* @ingroup backend
*/
typedef enum {
ELEKTRA_PLUGIN_OPEN=1, /*!< Next arg is backend for kdbOpen() */
ELEKTRA_PLUGIN_CLOSE=1<<1, /*!< Next arg is backend for kdbClose() */
ELEKTRA_PLUGIN_GET=1<<2, /*!< Next arg is backend for kdbGet() */
ELEKTRA_PLUGIN_SET=1<<3, /*!< Next arg is backend for kdbSet() */
ELEKTRA_PLUGIN_ERROR=1<<4, /*!< Next arg is backend for kdbError() */
ELEKTRA_PLUGIN_END=0 /*!< End of arguments */
} plugin_t;
#ifdef __cplusplus
namespace ckdb {
extern "C" {
#endif
typedef struct _Plugin Plugin;
Plugin *elektraPluginExport(const char *pluginName, ...);
KeySet *elektraPluginGetConfig(Plugin *handle);
void elektraPluginSetData(Plugin *plugin, void *handle);
void* elektraPluginGetData(Plugin *plugin);
#define PLUGINVERSION "1"
#ifdef __cplusplus
}
}
#endif
#endif
|