summaryrefslogtreecommitdiffhomepage
path: root/src/factory.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/factory.h')
-rw-r--r--src/factory.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/factory.h b/src/factory.h
new file mode 100644
index 0000000..a72afef
--- /dev/null
+++ b/src/factory.h
@@ -0,0 +1,13 @@
+/* This file is dedicated to the public domain. */
+
+#ifndef INC_FACTORY_H
+#define INC_FACTORY_H
+
+/* Access to game and engine factories obtained on plugin load */
+
+typedef void *(*ifacefactory)(const char *name, int *ret);
+extern ifacefactory factory_client, factory_server, factory_engine;
+
+#endif
+
+// vi: sw=4 ts=4 noet tw=80 cc=80