X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7f4f03348bd07609e258eb3b545bdafc2c881847..b197602d9f391f0020949e793fd191bb722af74a:/include/simgrid/host.h diff --git a/include/simgrid/host.h b/include/simgrid/host.h index 185d57f26f..83bba0b707 100644 --- a/include/simgrid/host.h +++ b/include/simgrid/host.h @@ -7,18 +7,25 @@ #ifndef SIMGRID_HOST_H_ #define SIMGRID_HOST_H_ +#include + #include #include #include +#ifdef __cplusplus +#include +#endif + SG_BEGIN_DECL() +XBT_PUBLIC(size_t) sg_host_count(); +XBT_PUBLIC(size_t) sg_host_add_level(void(*deleter)(void*)); XBT_PUBLIC(sg_host_t) sg_host_by_name(const char *name); XBT_PUBLIC(sg_host_t) sg_host_by_name_or_create(const char *name); -static XBT_INLINE char *sg_host_get_name(sg_host_t host){ - return host->key; -} +XBT_PUBLIC(void*) sg_host_get_facet(sg_host_t host, size_t facet); +XBT_PUBLIC(const char*) sg_host_get_name(sg_host_t host); XBT_PUBLIC(xbt_dynar_t) sg_hosts_as_dynar(void); // ========== User Data ============== @@ -47,7 +54,6 @@ XBT_PUBLIC(void) sg_host_simix_destroy(sg_host_t host); // ========== SURF CPU ============ XBT_PUBLIC(surf_cpu_t) sg_host_surfcpu(sg_host_t host); XBT_PUBLIC(void) sg_host_surfcpu_set(sg_host_t host, surf_cpu_t cpu); -XBT_PUBLIC(void) sg_host_surfcpu_register(sg_host_t host, surf_cpu_t cpu); XBT_PUBLIC(void) sg_host_surfcpu_destroy(sg_host_t host); // ========== RoutingEdge ============