From: mquinson Date: Thu, 30 Mar 2006 23:10:52 +0000 (+0000) Subject: Keep in sync with last changes in the GRAS callback API X-Git-Tag: v3.3~3332 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/1facf10af443d22a55bde75e83d7b3dd7e3b189a Keep in sync with last changes in the GRAS callback API git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2026 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/examples/amok/bandwidth/bandwidth.c b/examples/amok/bandwidth/bandwidth.c index 84d17e96e3..1387b113b3 100644 --- a/examples/amok/bandwidth/bandwidth.c +++ b/examples/amok/bandwidth/bandwidth.c @@ -23,8 +23,7 @@ typedef struct { int done; } s_sensor_data_t,*sensor_data_t; -static int sensor_cb_quit(gras_socket_t expeditor, - void *payload_data) { +static int sensor_cb_quit(gras_msg_cb_ctx_t ctx, void *payload) { sensor_data_t globals=(sensor_data_t)gras_userdata_get(); globals->done = 1; diff --git a/examples/gras/mmrpc/mmrpc.c b/examples/gras/mmrpc/mmrpc.c index b5c2cf483f..22e72e8535 100644 --- a/examples/gras/mmrpc/mmrpc.c +++ b/examples/gras/mmrpc/mmrpc.c @@ -54,7 +54,8 @@ int client (int argc,char *argv[]); * Server code * **********************************************************************/ -static int server_cb_request_handler(gras_socket_t expeditor, void *payload_data) { +static int server_cb_request_handler(gras_msg_cb_ctx_t ctx, void *payload_data) { + gras_socket_t expeditor=gras_msg_cb_ctx_from(ctx); /* 1. Get the payload into the data variable */ matrix_t *data=(matrix_t*)payload_data;