Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Remove a ugly special case in LocationListEntry
[simgrid.git] / src / mc / mc_client.h
1 /* Copyright (c) 2015. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 #ifndef SIMGRID_MC_CLIENT_H
8 #define SIMGRID_MC_CLIENT_H
9
10 #include <xbt/misc.h>
11 #include "src/mc/mc_protocol.h"
12
13 SG_BEGIN_DECL()
14
15 typedef struct s_mc_client {
16   int active;
17   int fd;
18 } s_mc_client_t, *mc_client_t;
19
20 extern XBT_PRIVATE mc_client_t mc_client;
21
22 XBT_PRIVATE void MC_client_init(void);
23 XBT_PRIVATE void MC_client_handle_messages(void);
24 XBT_PRIVATE void MC_client_send_message(void* message, size_t size);
25 XBT_PRIVATE void MC_client_send_simple_message(e_mc_message_type type);
26
27 #ifdef HAVE_MC
28 void MC_ignore(void* addr, size_t size);
29 #endif
30
31 void MC_client_main_loop(void);
32
33 SG_END_DECL()
34
35 #endif