/[baselayout]/trunk/src/rc-plugin.h
Gentoo

Contents of /trunk/src/rc-plugin.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2704 - (show annotations) (download) (as text)
Mon May 14 19:50:13 2007 UTC (7 years, 2 months ago) by uberlord
File MIME type: text/x-chdr
File size: 571 byte(s)
Implement FreeBSD's dlfunc function to avoid ISO warnings on dlsym - thanks to drizztbsd for find public domain code :)
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

  ViewVC Help
Powered by ViewVC 1.1.20