aboutsummaryrefslogtreecommitdiff
path: root/src/rc-plugin.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-07-04 16:02:01 +0000
committerRoy Marples <roy@marples.name>2007-07-04 16:02:01 +0000
commitf28763d4928a5ffb2c288388299ccf69ee26f26e (patch)
treefb84a019286f470bdb41c1370634ef229371e393 /src/rc-plugin.h
parent46156cc8cdfcdcc676d5d5d0a1a753978e412018 (diff)
As we're running each plugin in a fork, we need to call our cleanup code so we don't leak memory. To this extent, we now have the global boolean rc_in_plugin and the cleanup code can act accordingly.
Diffstat (limited to 'src/rc-plugin.h')
-rw-r--r--src/rc-plugin.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rc-plugin.h b/src/rc-plugin.h
index 15d46213..b15a11c7 100644
--- a/src/rc-plugin.h
+++ b/src/rc-plugin.h
@@ -8,6 +8,10 @@
#ifndef __LIBRC_PLUGIN_H__
#define __LIBRC_PLUGIN_H__
+/* A simple flag to say if we're in a plugin proccess or not.
+ * Mainly used in atexit code. */
+extern bool rc_in_plugin;
+
void rc_plugin_load ();
void rc_plugin_unload ();
void rc_plugin_run (rc_hook_t, const char *value);