/usr/include/kdbloader.h is in libelektra-dev 0.7.1-1.
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 | /* $Id$ */
#ifndef KDBLIBLOADER_H
#define KDBLIBLOADER_H
#ifdef ELEKTRA_STATIC
/* The static case
*
* Struct which contain export symbols
* Format :
* --------
*
* filename, NULL
* symbol1, &func1,
* symbol2, &func2,
* filename2, NULL
* symbol3, &func3,
* symboln, &funcn,
* NULL, NULL
*/
typedef struct {
const char *name;
void (*function)(void);
} kdblib_symbol;
typedef kdblib_symbol* kdbLibHandle;
extern kdblib_symbol kdb_exported_syms[];
#else
# ifdef WIN32
/* Windows case, non static */
# include <windows.h>
typedef HMODULE kdbLibHandle;
# else
/* Default case */
# include <ltdl.h>
typedef lt_dlhandle kdbLibHandle;
# endif
#endif
/* General pointer to kdbLib Functions and pointer to kdbLibBackend function */
typedef void (*kdbLibFunc)(void);
/* Functions */
int kdbLibInit(void);
kdbLibHandle kdbLibLoad(const char *backendName);
kdbLibFunc kdbLibSym(kdbLibHandle handle, const char *symbol);
int kdbLibClose(kdbLibHandle handle);
const char *kdbLibError(void);
#endif /* KDBLIBLOADER_H */
|