/* 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 <poll.h>
-#include <stdint.h>
#include <stdbool.h>
#include <sys/signalfd.h>
#include <sys/types.h>
#include <xbt/misc.h>
+#include <xbt/base.h>
#include "mc_process.h"
#include "mc_exit.h"
extern mc_server_t mc_server;
-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);
+XBT_PRIVATE void MC_server_wait_client(simgrid::mc::Process* process);
+XBT_PRIVATE void MC_server_simcall_handle(simgrid::mc::Process* process, unsigned long pid, int value);
-XBT_INTERNAL void MC_server_loop(mc_server_t server);
+XBT_PRIVATE void MC_server_loop(mc_server_t server);
SG_END_DECL()
void start();
void shutdown();
void exit();
- void resume(mc_process_t process);
+ void resume(simgrid::mc::Process* process);
void loop();
bool handle_events();
protected: