Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Keep in sync with last changes in the GRAS callback API
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 30 Mar 2006 23:10:52 +0000 (23:10 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 30 Mar 2006 23:10:52 +0000 (23:10 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2026 48e7efb5-ca39-0410-a469-dd3cf9ba447f

examples/amok/bandwidth/bandwidth.c
examples/gras/mmrpc/mmrpc.c

index 84d17e9..1387b11 100644 (file)
@@ -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;                  
index b5c2cf4..22e72e8 100644 (file)
@@ -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;