| 1 |
/*
|
| 2 |
librc-plugin.h
|
| 3 |
Private instructions to use plugins
|
| 4 |
Copyright 2007 Gentoo Foundation
|
| 5 |
Released under the GPLv2
|
| 6 |
*/
|
| 7 |
|
| 8 |
#ifndef __LIBRC_PLUGIN_H__
|
| 9 |
#define __LIBRC_PLUGIN_H__
|
| 10 |
|
| 11 |
void rc_plugin_load ();
|
| 12 |
void rc_plugin_unload ();
|
| 13 |
void rc_plugin_run (rc_hook_t, const char *value);
|
| 14 |
|
| 15 |
/* dlfunc defines needed to avoid ISO errors. FreeBSD has this right :) */
|
| 16 |
#ifndef __FreeBSD__
|
| 17 |
struct __dlfunc_arg {
|
| 18 |
int __dlfunc_dummy;
|
| 19 |
};
|
| 20 |
|
| 21 |
typedef void (*dlfunc_t) (struct __dlfunc_arg);
|
| 22 |
|
| 23 |
dlfunc_t dlfunc (void * __restrict handle, const char * __restrict symbol);
|
| 24 |
#endif
|
| 25 |
|
| 26 |
#endif
|