aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/libraries/Runnr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libraries/Runnr.c')
-rw-r--r--src/libraries/Runnr.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/libraries/Runnr.c b/src/libraries/Runnr.c
index 238bfb2..b775e19 100644
--- a/src/libraries/Runnr.c
+++ b/src/libraries/Runnr.c
@@ -402,37 +402,3 @@ int push_lua(lua_State *L, char *params, ...) // Stack usage [-0, +n, em]
402 free(f); 402 free(f);
403 return n; 403 return n;
404} 404}
405
406void sendBack(Ecore_Con_Client *client, const char *SID, const char *message, ...)
407{
408 va_list args;
409 char buf[PATH_MAX];
410 int length = strlen(SID);
411
412 strncpy(buf, SID, length);
413 buf[length++] = '.';
414 va_start(args, message);
415 length += vsprintf(&buf[length], message, args);
416 va_end(args);
417 buf[length++] = '\n';
418 buf[length++] = '\0';
419 ecore_con_client_send(client, buf, strlen(buf));
420 ecore_con_client_flush(client);
421}
422
423void sendForth(Ecore_Con_Server *server, const char *SID, const char *message, ...)
424{
425 va_list args;
426 char buf[PATH_MAX];
427 int length = strlen(SID);
428
429 strncpy(buf, SID, length);
430 buf[length++] = '.';
431 va_start(args, message);
432 length += vsprintf(&buf[length], message, args);
433 va_end(args);
434 buf[length++] = '\n';
435 buf[length++] = '\0';
436 ecore_con_server_send(server, buf, strlen(buf));
437 ecore_con_server_flush(server);
438}