From bd82e0ebd6db7ab7a9577c9ec6d9a9a9c2d73db8 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sat, 25 Feb 2012 09:43:05 +1000 Subject: Beat the script messsage passing into shape, mostly by knocking large chunks off. lol --- LuaSL/src/LuaSL_main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'LuaSL/src/LuaSL_main.c') diff --git a/LuaSL/src/LuaSL_main.c b/LuaSL/src/LuaSL_main.c index c03a827..f15ae4a 100644 --- a/LuaSL/src/LuaSL_main.c +++ b/LuaSL/src/LuaSL_main.c @@ -12,7 +12,7 @@ static Eina_Bool _sleep_timer_cb(void *data) gameGlobals *game = script->game; PD("Waking up %s", script->SID); - sendToChannel(game, script->SID, "return 0.0", NULL, NULL); + sendToChannel(game, script->SID, "return 0.0"); return ECORE_CALLBACK_CANCEL; } @@ -22,7 +22,7 @@ static Eina_Bool _timer_timer_cb(void *data) gameGlobals *game = script->game; PD("Timer for %s", script->SID); - sendToChannel(game, script->SID, "events.timer()", NULL, NULL); + sendToChannel(game, script->SID, "events.timer()"); return ECORE_CALLBACK_RENEW; } @@ -82,9 +82,9 @@ void scriptSendBack(void * data) while (isspace(*temp)) temp++; if ('1' == *temp) - sendToChannel(game, them->SID, "start()", NULL, NULL); + sendToChannel(game, them->SID, "start()"); else - sendToChannel(game, them->SID, "stop()", NULL, NULL); + sendToChannel(game, them->SID, "stop()"); PD("Stopped %s", them->fileName); } else @@ -191,7 +191,7 @@ static Eina_Bool _data(void *data, int type __UNUSED__, Ecore_Con_Event_Client_D { const char *status = NULL; - status = sendToChannel(game, SID, command, NULL, NULL); + status = sendToChannel(game, SID, command); if (status) PE("Error sending command %s to script %s : %s", command, SID, status); } -- cgit v1.1