X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b4036710f1d7f435ac50328d290cb95b108d505e..b8bbc1087cd89b120b0004376bf09ef8c6881f42:/src/amok/Bandwidth/bandwidth_private.h diff --git a/src/amok/Bandwidth/bandwidth_private.h b/src/amok/Bandwidth/bandwidth_private.h index 21f39bb90c..aa3097a704 100644 --- a/src/amok/Bandwidth/bandwidth_private.h +++ b/src/amok/Bandwidth/bandwidth_private.h @@ -1,10 +1,9 @@ -/* $Id$ */ - /* bandwidth - network bandwidth tests facilities */ /* module's private interface masked even to other parts of AMOK. */ -/* Copyright (c) 2003, 2004 Martin Quinson. All rights reserved. */ +/* Copyright (c) 2004, 2005, 2006, 2007, 2009, 2010. The SimGrid Team. + * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -16,13 +15,13 @@ #include "gras.h" #include "amok/bandwidth.h" -XBT_PUBLIC void amok_bw_bw_init(void); /* Must be called only once per node */ -XBT_PUBLIC void amok_bw_bw_join(void); /* Each process must run it */ -XBT_PUBLIC void amok_bw_bw_leave(void);/* Each process must run it */ +void amok_bw_bw_init(void); /* Must be called only once per node */ +void amok_bw_bw_join(void); /* Each process must run it */ +void amok_bw_bw_leave(void); /* Each process must run it */ -XBT_PUBLIC void amok_bw_sat_init(void); /* Must be called only once per node */ -XBT_PUBLIC void amok_bw_sat_join(void); /* Each process must run it */ -XBT_PUBLIC void amok_bw_sat_leave(void);/* Each process must run it */ +void amok_bw_sat_init(void); /* Must be called only once per node */ +void amok_bw_sat_join(void); /* Each process must run it */ +void amok_bw_sat_leave(void); /* Each process must run it */ /*** * Plain bandwidth measurement stuff @@ -33,19 +32,19 @@ XBT_PUBLIC void amok_bw_sat_leave(void);/* Each process must run it */ * If not, it should be between between the receiver and peer (3-tiers). */ typedef struct { - s_xbt_peer_t peer; /* peer+raw socket to use */ + s_xbt_peer_t peer; /* peer+raw socket to use */ unsigned long int buf_size; unsigned long int msg_size; unsigned long int msg_amount; double min_duration; -} s_bw_request_t,*bw_request_t; +} s_bw_request_t, *bw_request_t; /* Result of a BW experiment (payload when answering). */ typedef struct { unsigned int timestamp; double sec; double bw; -} s_bw_res_t,*bw_res_t; +} s_bw_res_t, *bw_res_t; /*** @@ -55,13 +54,13 @@ typedef struct { /* Description of a saturation experiment (payload asking some peer to collaborate for that) */ typedef struct { - s_xbt_peer_t peer; /* peer+raw socket to use */ + s_xbt_peer_t peer; /* peer+raw socket to use */ unsigned int msg_size; unsigned int duration; -} s_sat_request_t,*sat_request_t; +} s_sat_request_t, *sat_request_t; -XBT_PUBLIC void amok_bw_sat_start(const char* from_name,unsigned int from_port, - const char* to_name,unsigned int to_port, - unsigned int msg_size, unsigned int duration); +void amok_bw_sat_start(const char *from_name, unsigned int from_port, + const char *to_name, unsigned int to_port, + unsigned int msg_size, unsigned int duration); -#endif /* AMOK_BANDWIDTH_PRIVATE_H */ +#endif /* AMOK_BANDWIDTH_PRIVATE_H */