diff options
author | David Walter Seikel | 2014-05-17 08:21:26 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-05-17 08:21:26 +1000 |
commit | 8f67113ada10d14bae784f80ea81a64d1e4bd1a9 (patch) | |
tree | 3e7eeded21137728f0596de4afa9893f0dad1932 /src/libraries/Runnr.c | |
parent | Move the new pcall stuff to Runnr.c. (diff) | |
download | SledjHamr-8f67113ada10d14bae784f80ea81a64d1e4bd1a9.zip SledjHamr-8f67113ada10d14bae784f80ea81a64d1e4bd1a9.tar.gz SledjHamr-8f67113ada10d14bae784f80ea81a64d1e4bd1a9.tar.bz2 SledjHamr-8f67113ada10d14bae784f80ea81a64d1e4bd1a9.tar.xz |
Rearrange things in the libraries.
Diffstat (limited to 'src/libraries/Runnr.c')
-rw-r--r-- | src/libraries/Runnr.c | 34 |
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 | |||
406 | void 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 | |||
423 | void 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 | } | ||