From a8da6dba7ddc5e3d31a1914597e7b38fbc2d197c Mon Sep 17 00:00:00 2001 From: Alexis211 Date: Fri, 10 Sep 2010 19:35:31 +0200 Subject: Removed all old object/request/... stuff (that was crap) --- src/library/gm/call/manager.c | 44 ------------------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 src/library/gm/call/manager.c (limited to 'src/library/gm/call') diff --git a/src/library/gm/call/manager.c b/src/library/gm/call/manager.c deleted file mode 100644 index f4cef90..0000000 --- a/src/library/gm/call/manager.c +++ /dev/null @@ -1,44 +0,0 @@ -#include -#include -#include -#include -#include - -Object c_open(_CHP, char *c) { - struct user_sendrequest sr; - sr.func = M_OPEN_OMVV; - void* ptr = shm_allocNew(strlen(c) + 1); - strcpy(ptr, c); - sr.a = (uint32_t)ptr; - _CHC; - shm_freeDel(ptr); - if (sr.errcode) return -1; - return sr.answeri; -} - -Object open(char *c) { - return c_open(1, 1, c); -} - -void c_registerSvc(char *name) { - struct user_sendrequest sr; - sr.func = M_REGISTERSVC_VMOV; - void* ptr = shm_allocNew(strlen(name) + 1); - strcpy(ptr, name); - sr.a = (uint32_t)ptr; - sr.b = 0; - send_msg(1, &sr); - shm_freeDel(ptr); -} - -void c_logSvc(char *log, int level) { - struct user_sendrequest sr; - sr.func = M_LOGSVC_VMIV; - void* ptr = shm_allocNew(strlen(log) + 1); - if (ptr == 0) return; - strcpy(ptr, log); - sr.a = (uint32_t)ptr; - sr.b = level; - request(1, &sr); - shm_freeDel(ptr); -} -- cgit v1.2.3