Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove/cleanup/fix #include
[simgrid.git] / src / mc / mc_client.h
index f5d01a5..fb12858 100644 (file)
@@ -4,10 +4,13 @@
 /* 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 <xbt/misc.h>
+#include <cstddef>
+
+#include <xbt/base.h>
+#include "src/mc/mc_protocol.h"
 
 SG_BEGIN_DECL()
 
@@ -16,17 +19,19 @@ typedef struct s_mc_client {
   int fd;
 } s_mc_client_t, *mc_client_t;
 
-extern mc_client_t mc_client;
+extern XBT_PRIVATE mc_client_t mc_client;
 
-void MC_client_init(void);
-void MC_client_hello(void);
-void MC_client_handle_messages(void);
-void MC_client_send_message(void* message, size_t size);
+XBT_PRIVATE void MC_client_init(void);
+XBT_PRIVATE void MC_client_handle_messages(void);
+XBT_PRIVATE void MC_client_send_message(void* message, std::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);
+void MC_ignore(void* addr, std::size_t size);
 #endif
 
+void MC_client_main_loop(void);
+
 SG_END_DECL()
 
 #endif