summaryrefslogtreecommitdiff
path: root/library/quickexec_p.h
Side-by-side diff
Diffstat (limited to 'library/quickexec_p.h') (more/less context) (ignore whitespace changes)
-rw-r--r--library/quickexec_p.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/library/quickexec_p.h b/library/quickexec_p.h
new file mode 100644
index 0000000..79f58af
--- a/dev/null
+++ b/library/quickexec_p.h
@@ -0,0 +1,17 @@
+#ifndef QUICKEXEC_H
+#define QUICKEXEC_H
+
+#define HAVE_QUICKEXEC
+/*
+ A special version of execl that opens a shared library and executes the main() function in
+ the lib. Requires the quickexec daemon to run.
+
+ Note: You do not need to call fork() before calling quickexec, the function actually returns.
+
+ WARNING: path has to be a shared library, otherwise quickexec will hang
+*/
+
+extern int quickexecl( const char *path, const char *, ...);
+extern int quickexecv( const char *path, const char *argv[] );
+
+#endif