X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ea9cce21b6d3f37823143217f1ca183bb2f0c9ac..bd11e68e17f60d1516d80ce8f8c7319542a15ae6:/src/mc/mc_server.h diff --git a/src/mc/mc_server.h b/src/mc/mc_server.h index e07d6e6230..e2c1a2300a 100644 --- a/src/mc/mc_server.h +++ b/src/mc/mc_server.h @@ -4,8 +4,8 @@ /* 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_SERVER_H -#define MC_SERVER_H +#ifndef SIMGRID_MC_SERVER_H +#define SIMGRID_MC_SERVER_H #include @@ -18,19 +18,20 @@ #include #include "mc_process.h" +#include "mc_exit.h" SG_BEGIN_DECL() -#define MC_SERVER_ERROR 127 +#define MC_SERVER_ERROR SIMGRID_ERROR typedef struct s_mc_server s_mc_server_t, *mc_server_t; extern mc_server_t mc_server; -void MC_server_wait_client(mc_process_t process); -void MC_server_simcall_handle(mc_process_t process, unsigned long pid, int value); +XBT_INTERNAL void MC_server_wait_client(mc_process_t process); +XBT_INTERNAL void MC_server_simcall_handle(mc_process_t process, unsigned long pid, int value); -void MC_server_loop(mc_server_t server); +XBT_INTERNAL void MC_server_loop(mc_server_t server); SG_END_DECL()