git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2032
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
-int amok_bw_cb_bw_handshake(gras_socket_t expeditor,
+int amok_bw_cb_bw_handshake(gras_msg_cb_ctx_t ctx,
+ gras_socket_t expeditor = gras_msg_cb_ctx_from(ctx);
gras_socket_t measMasterIn=NULL,measIn=NULL,measOut=NULL;
bw_request_t request=*(bw_request_t*)payload;
bw_request_t answer;
gras_socket_t measMasterIn=NULL,measIn=NULL,measOut=NULL;
bw_request_t request=*(bw_request_t*)payload;
bw_request_t answer;
-int amok_bw_cb_bw_request(gras_socket_t expeditor,
+int amok_bw_cb_bw_request(gras_msg_cb_ctx_t ctx,
+ gras_socket_t expeditor = gras_msg_cb_ctx_from(ctx);
/* specification of the test to run, and our answer */
bw_request_t request = *(bw_request_t*)payload;
bw_res_t result = xbt_new0(s_bw_res,1);
/* specification of the test to run, and our answer */
bw_request_t request = *(bw_request_t*)payload;
bw_res_t result = xbt_new0(s_bw_res,1);
-int amok_bw_cb_sat_start(gras_socket_t expeditor,
+int amok_bw_cb_sat_start(gras_msg_cb_ctx_t ctx,
void *payload) {
CRITICAL0("amok_bw_cb_sat_start; not implemented");
return 1;
}
void *payload) {
CRITICAL0("amok_bw_cb_sat_start; not implemented");
return 1;
}
-int amok_bw_cb_sat_begin(gras_socket_t expeditor,
+int amok_bw_cb_sat_begin(gras_msg_cb_ctx_t ctx,
void *payload) {
CRITICAL0("amok_bw_cb_sat_begin: not implemented");
return 1;
void *payload) {
CRITICAL0("amok_bw_cb_sat_begin: not implemented");
return 1;
} s_sat_request_t,*sat_request_t;
/* Prototypes of local callbacks */
} s_sat_request_t,*sat_request_t;
/* Prototypes of local callbacks */
-int amok_bw_cb_bw_handshake(gras_socket_t expeditor,
- void *payload);
-int amok_bw_cb_bw_request(gras_socket_t expeditor,
- void *payload);
-
-int amok_bw_cb_sat_start(gras_socket_t expeditor,
- void *payload);
-int amok_bw_cb_sat_begin(gras_socket_t expeditor,
- void *payload);
+int amok_bw_cb_bw_handshake(gras_msg_cb_ctx_t ctx, void *payload);
+int amok_bw_cb_bw_request(gras_msg_cb_ctx_t ctx, void *payload);
+
+int amok_bw_cb_sat_start(gras_msg_cb_ctx_t ctx, void *payload);
+int amok_bw_cb_sat_begin(gras_msg_cb_ctx_t ctx, void *payload);
#endif /* AMOK_BANDWIDTH_PRIVATE_H */
#endif /* AMOK_BANDWIDTH_PRIVATE_H */