rc-plugin.h

00001 /*
00002    librc-plugin.h 
00003    Private instructions to use plugins
00004    Copyright 2007 Gentoo Foundation
00005    Released under the GPLv2
00006    */
00007 
00008 #ifndef __LIBRC_PLUGIN_H__
00009 #define __LIBRC_PLUGIN_H__
00010 
00011 /* A simple flag to say if we're in a plugin proccess or not.
00012  * Mainly used in atexit code. */
00013 extern bool rc_in_plugin;
00014 
00015 void rc_plugin_load ();
00016 void rc_plugin_unload ();
00017 void rc_plugin_run (rc_hook_t, const char *value);
00018 
00019 /* dlfunc defines needed to avoid ISO errors. FreeBSD has this right :) */
00020 #ifndef __FreeBSD__
00021 struct __dlfunc_arg {
00022         int     __dlfunc_dummy;
00023 };
00024 
00025 typedef void (*dlfunc_t) (struct __dlfunc_arg);
00026 
00027 dlfunc_t dlfunc (void * __restrict handle, const char * __restrict symbol);
00028 #endif
00029 
00030 #endif

Generated on Tue Sep 25 16:24:20 2007 for rc by  doxygen 1.5.3