From 8d94ae49601e0e4023bcdc35191669b2c24f6c96 Mon Sep 17 00:00:00 2001 From: Alexis211 Date: Mon, 5 Apr 2010 16:56:17 +0200 Subject: More work on IPC. --- src/include/gc/server.h | 1 + src/include/gc/syscall.h | 1 + src/include/gm/method.h | 3 +++ 3 files changed, 5 insertions(+) (limited to 'src/include') diff --git a/src/include/gc/server.h b/src/include/gc/server.h index b98b4fb..36597c7 100644 --- a/src/include/gc/server.h +++ b/src/include/gc/server.h @@ -74,6 +74,7 @@ void srv_handle(Server* o, int act); Server *srv_create(); void srv_delete(Server *o); +Server *srv_get(int descriptor); void srv_addHandler(Server* o, uint32_t method, method_handler h); #endif diff --git a/src/include/gc/syscall.h b/src/include/gc/syscall.h index c93a523..9ac6748 100644 --- a/src/include/gc/syscall.h +++ b/src/include/gc/syscall.h @@ -15,6 +15,7 @@ typedef unsigned size_t; struct user_request { uint32_t func, params[3], shmsize[3]; int isBlocking; // 1 : blocking request, 0 : nonblocking request (message) + int pid; //pid of caller process }; struct user_sendrequest { diff --git a/src/include/gm/method.h b/src/include/gm/method.h index ac6ab0e..6206f07 100644 --- a/src/include/gm/method.h +++ b/src/include/gm/method.h @@ -19,4 +19,7 @@ /* Checks if object handles that method. In case BIVV, only one method is checked for. * In case BMIV, the [b] methods in shared memory [a] are checked, first one not found returns false. */ +#define M_NOTHING_VVVV (2) +/* This method does nothing, it just checks message transmission to an object. */ + #endif -- cgit v1.2.3