X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2f531aa69f09fed380e2e212df5822874aab5e58..6ec42f8e4ef116e1d0a250e1491f3520a4d97e73:/src/mc/mc_protocol.h diff --git a/src/mc/mc_protocol.h b/src/mc/mc_protocol.h index 64b0e7021a..e93295a6ea 100644 --- a/src/mc/mc_protocol.h +++ b/src/mc/mc_protocol.h @@ -7,7 +7,9 @@ #ifndef SIMGRID_MC_PROTOCOL_H #define SIMGRID_MC_PROTOCOL_H -#include +#include + +#include #include "mc/datatypes.h" @@ -18,21 +20,11 @@ SG_BEGIN_DECL() /** Environment variable name set by `simgrid-mc` to enable MC support in the * children MC processes */ -#define MC_ENV_VARIABLE "SIMGRIC_MC" +#define MC_ENV_VARIABLE "SIMGRID_MC" /** Environment variable name used to pass the communication socket */ #define MC_ENV_SOCKET_FD "SIMGRID_MC_SOCKET_FD" -// ***** MC mode - -typedef enum { - MC_MODE_NONE = 0, - MC_MODE_CLIENT, - MC_MODE_SERVER -} e_mc_mode_t; - -extern e_mc_mode_t mc_mode; - // ***** Messages typedef enum { @@ -112,12 +104,7 @@ typedef struct s_mc_restore_message { int index; } s_mc_restore_message_t, *mc_restore_message_t; -XBT_PRIVATE int MC_protocol_send(int socket, const void* message, size_t size); -XBT_PRIVATE int MC_protocol_send_simple_message(int socket, e_mc_message_type type); -XBT_PRIVATE ssize_t MC_receive_message(int socket, void* message, size_t size, int options); - XBT_PRIVATE const char* MC_message_type_name(e_mc_message_type type); -XBT_PRIVATE const char* MC_mode_name(e_mc_mode_t mode); SG_END_DECL()