X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a70186f00cc3977370401b4736aac4e43c5fc689..2806e8f094c54d34ffdf191f605b477c2b067a34:/include/simgrid/msg.h diff --git a/include/simgrid/msg.h b/include/simgrid/msg.h index de58a7ca5d..f04ce916ab 100644 --- a/include/simgrid/msg.h +++ b/include/simgrid/msg.h @@ -33,7 +33,7 @@ typedef struct As *msg_as_t; /* ******************************** Host ************************************ */ -extern int MSG_HOST_LEVEL; +XBT_PUBLIC_DATA(int) MSG_HOST_LEVEL; /** @brief Host datatype. @ingroup m_host_management @@ -46,7 +46,6 @@ extern int MSG_HOST_LEVEL; process. */ typedef xbt_dictelm_t msg_host_t; -typedef s_xbt_dictelm_t s_msg_host_t; typedef struct msg_host_priv { int dp_enabled; @@ -322,6 +321,9 @@ XBT_PUBLIC(int) MSG_host_get_core_number(msg_host_t h); XBT_PUBLIC(xbt_swag_t) MSG_host_get_process_list(msg_host_t h); XBT_PUBLIC(int) MSG_host_is_on(msg_host_t h); XBT_PUBLIC(int) MSG_host_is_off(msg_host_t h); +XBT_PUBLIC(double) MSG_host_get_wattmin_at(msg_host_t host, int pstate); +XBT_PUBLIC(double) MSG_host_get_wattmax_at(msg_host_t host, int pstate); + XBT_PUBLIC(void) __MSG_host_priv_free(msg_host_priv_t priv); XBT_PUBLIC(void) __MSG_host_destroy(msg_host_t host); @@ -329,6 +331,8 @@ XBT_PUBLIC(double) MSG_host_get_power_peak_at(msg_host_t h, int pstate); XBT_PUBLIC(double) MSG_host_get_current_power_peak(msg_host_t h); XBT_PUBLIC(int) MSG_host_get_nb_pstates(msg_host_t h); XBT_PUBLIC(void) MSG_host_set_pstate(msg_host_t h, int pstate); +XBT_PUBLIC(int) MSG_host_get_pstate(msg_host_t host); + XBT_PUBLIC(double) MSG_host_get_consumed_energy(msg_host_t h); /*property handlers*/