summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/console.c5
-rw-r--r--src/plugins/gui.def (renamed from src/plugins/plugin.def)2
-rw-r--r--src/plugins/pid.def7
-rw-r--r--src/plugins/sample.def11
4 files changed, 23 insertions, 2 deletions
diff --git a/src/plugins/console.c b/src/plugins/console.c
index 5056eafdc..7ea69c637 100644
--- a/src/plugins/console.c
+++ b/src/plugins/console.c
@@ -32,7 +32,8 @@
#define WORKER_FUNC_END(name) } ExitThread(0); return 0; }
#define WORKER_EXECUTE(name,errvar) \
do{ \
- buf.worker = CreateThread(NULL, 0, worker_ ## name, NULL, CREATE_SUSPENDED, NULL); \
+ DWORD dwThreadId; \
+ buf.worker = CreateThread(NULL, 0, worker_ ## name, NULL, CREATE_SUSPENDED, &dwThreadId); \
if( errvar ) \
*errvar = ( buf.worker == NULL ); \
}while(0)
@@ -135,7 +136,7 @@ unsigned int (*gettick)(void);
int (*parse_console)(char* buf);
// Locals
-int tid; // timer id
+int tid = -1; // timer id
BUFFER buf; // input buffer
WORKER_FUNC_DECLARE(getinput); // worker for the input buffer
diff --git a/src/plugins/plugin.def b/src/plugins/gui.def
index 6117bedc6..0a5d6a714 100644
--- a/src/plugins/plugin.def
+++ b/src/plugins/gui.def
@@ -2,3 +2,5 @@ EXPORTS
plugin_info DATA
plugin_event_table DATA
plugin_call_table DATA
+
+ gui_init
diff --git a/src/plugins/pid.def b/src/plugins/pid.def
new file mode 100644
index 000000000..a70cf8127
--- /dev/null
+++ b/src/plugins/pid.def
@@ -0,0 +1,7 @@
+EXPORTS
+ plugin_info DATA
+ plugin_event_table DATA
+ plugin_call_table DATA
+
+ pid_create
+ pid_delete
diff --git a/src/plugins/sample.def b/src/plugins/sample.def
new file mode 100644
index 000000000..f5c4af652
--- /dev/null
+++ b/src/plugins/sample.def
@@ -0,0 +1,11 @@
+EXPORTS
+ ; common exports
+ plugin_info DATA
+ plugin_event_table DATA
+ plugin_call_table DATA
+
+ ; plugin-specific exports
+ test_me
+ do_init
+ do_final
+ some_function