- Lauri
>From 2b48f992ad97c56424b82e8afdf2487af191a8d7 Mon Sep 17 00:00:00 2001
From: Lauri Kasanen <[email protected]>
Date: Thu, 14 Jun 2012 11:49:22 +0300
Subject: [PATCH 2/3] plugin: Export worker_spawn_arg


Signed-off-by: Lauri Kasanen <[email protected]>
---
 src/include/mk_plugin.h |    1 +
 src/mk_plugin.c         |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/include/mk_plugin.h b/src/include/mk_plugin.h
index 68ef7fc..0a9e285 100644
--- a/src/include/mk_plugin.h
+++ b/src/include/mk_plugin.h
@@ -270,6 +270,7 @@ struct plugin_api
 
     /* worker's functions */
     pthread_t (*worker_spawn) (void (*func) (void *));
+    pthread_t (*worker_spawn_arg) (void (*func) (void *), void *);
     int (*worker_rename) (const char *);
 
     /* event's functions */
diff --git a/src/mk_plugin.c b/src/mk_plugin.c
index 4d64cab..30fc9f5 100644
--- a/src/mk_plugin.c
+++ b/src/mk_plugin.c
@@ -397,6 +397,7 @@ void mk_plugin_init()
 
     /* Worker functions */
     api->worker_spawn = mk_utils_worker_spawn;
+    api->worker_spawn_arg = mk_utils_worker_spawn_arg;
     api->worker_rename = mk_utils_worker_rename;
 
     /* Time functions */
-- 
1.7.2.1

_______________________________________________
Monkey mailing list
[email protected]
http://lists.monkey-project.com/listinfo/monkey

Reply via email to