Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
reduce some overly verbose comments
[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 <cstddef>
11
12 #include <xbt/base.h>
13 #include "src/mc/mc_protocol.h"
14
15 SG_BEGIN_DECL()
16
17 typedef struct s_mc_client {
18   int active;
19   int fd;
20 } s_mc_client_t, *mc_client_t;
21
22 extern XBT_PRIVATE mc_client_t mc_client;
23
24 XBT_PRIVATE void MC_client_init(void);
25 XBT_PRIVATE void MC_client_handle_messages(void);
26 XBT_PRIVATE void MC_client_send_message(void* message, std::size_t size);
27 XBT_PRIVATE void MC_client_send_simple_message(e_mc_message_type type);
28
29 #if HAVE_MC
30 void MC_ignore(void* addr, std::size_t size);
31 #endif
32
33 void MC_client_main_loop(void);
34
35 SG_END_DECL()
36
37 #endif