X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3c5b31c9766da42c82473b8c9dbf5910b74f3cb0..756df47074b2d7b0721f234077f5ef8d75e13932:/src/mc/mc_client.h diff --git a/src/mc/mc_client.h b/src/mc/mc_client.h index d013a172eb..6b68dbe45d 100644 --- a/src/mc/mc_client.h +++ b/src/mc/mc_client.h @@ -4,16 +4,31 @@ /* 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. */ -#ifndef MC_CLIENT_H -#define MC_CLIENT_H +#ifndef SIMGRID_MC_CLIENT_H +#define SIMGRID_MC_CLIENT_H #include +#include "src/mc/mc_protocol.h" SG_BEGIN_DECL() -void MC_client_init(void); -void MC_client_hello(void); -void MC_client_handle_messages(void); +typedef struct s_mc_client { + int active; + int fd; +} s_mc_client_t, *mc_client_t; + +extern XBT_PRIVATE mc_client_t mc_client; + +XBT_PRIVATE void MC_client_init(void); +XBT_PRIVATE void MC_client_handle_messages(void); +XBT_PRIVATE void MC_client_send_message(void* message, size_t size); +XBT_PRIVATE void MC_client_send_simple_message(e_mc_message_type type); + +#ifdef HAVE_MC +void MC_ignore(void* addr, size_t size); +#endif + +void MC_client_main_loop(void); SG_END_DECL()