Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fcee52ca9867c2f684248c431050b657fbcc0578
[simgrid.git] / include / simgrid / host.h
1 /* Copyright (c) 2013-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_HOST_H_
8 #define SIMGRID_HOST_H_
9
10 #include <xbt/dict.h>
11
12 SG_BEGIN_DECL()
13
14 typedef xbt_dictelm_t sg_host_t;
15
16
17 // ========== MSG Layer ==============
18 typedef struct s_msg_host_priv *msg_host_priv_t;
19 msg_host_priv_t sg_host_msg(sg_host_t host);
20 XBT_PUBLIC(void) sg_host_msg_set(sg_host_t host, msg_host_priv_t priv);
21 XBT_PUBLIC(void) sg_host_msg_destroy(sg_host_t host);
22
23 // ========== Simix layer =============
24 typedef struct s_smx_host_priv *smx_host_priv_t;
25 XBT_PUBLIC(smx_host_priv_t) sg_host_simix(sg_host_t host);
26 XBT_PUBLIC(void) sg_host_simix_set(sg_host_t host, smx_host_priv_t priv);
27 XBT_PUBLIC(void) sg_host_simix_destroy(sg_host_t host);
28
29 // Module initializer. Won't survive the conversion to C++
30 XBT_PUBLIC(void) sg_host_init(void);
31
32 SG_END_DECL()
33
34 #endif /* SIMGRID_HOST_H_ */