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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3049 - (show annotations) (download) (as text)
Mon Oct 22 19:33:42 2007 UTC (6 years, 9 months ago) by uberlord
File MIME type: text/x-chdr
File size: 722 byte(s)
Wait for plugins to finish before moving on.
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 /* A simple flag to say if we're in a plugin proccess or not.
12 * Mainly used in atexit code. */
13 extern bool rc_in_plugin;
14
15 int rc_waitpid (pid_t pid);
16 void rc_plugin_load ();
17 void rc_plugin_unload ();
18 void rc_plugin_run (rc_hook_t, const char *value);
19
20 /* dlfunc defines needed to avoid ISO errors. FreeBSD has this right :) */
21 #ifndef __FreeBSD__
22 struct __dlfunc_arg {
23 int __dlfunc_dummy;
24 };
25
26 typedef void (*dlfunc_t) (struct __dlfunc_arg);
27
28 dlfunc_t dlfunc (void * __restrict handle, const char * __restrict symbol);
29 #endif
30
31 #endif

  ViewVC Help
Powered by ViewVC 1.1.20