-// ========== MSG Layer ==============
-msg_host_priv_t sg_host_msg(sg_host_t host) {
- return (msg_host_priv_t) host->facet(MSG_HOST_LEVEL);
-}
-void sg_host_msg_set(sg_host_t host, msg_host_priv_t smx_host) {
- host->set_facet(MSG_HOST_LEVEL, smx_host);
-}
-void sg_host_msg_destroy(sg_host_t host) {
- host->set_facet(MSG_HOST_LEVEL, nullptr);
-}
-// ========== SimDag Layer ==============
-SD_workstation_priv_t sg_host_sd(sg_host_t host) {
- return (SD_workstation_priv_t) host->facet(SD_HOST_LEVEL);
-}
-void sg_host_sd_set(sg_host_t host, SD_workstation_priv_t smx_host) {
- host->set_facet(SD_HOST_LEVEL, smx_host);
-}
-void sg_host_sd_destroy(sg_host_t host) {
- host->set_facet(SD_HOST_LEVEL, nullptr);
-}
-
-// ========== Simix layer =============
-smx_host_priv_t sg_host_simix(sg_host_t host){
- return (smx_host_priv_t) host->facet(SIMIX_HOST_LEVEL);
-}
-void sg_host_simix_set(sg_host_t host, smx_host_priv_t smx_host) {
- host->set_facet(SIMIX_HOST_LEVEL, smx_host);
-}
-void sg_host_simix_destroy(sg_host_t host) {
- host->set_facet(SIMIX_HOST_LEVEL, nullptr);