- host->set_facet(SIMIX_HOST_LEVEL, nullptr);
-}
-
-// ========== SURF CPU ============
-surf_cpu_t sg_host_surfcpu(sg_host_t host) {
- return host->facet<simgrid::surf::Cpu>();
-}
-void sg_host_surfcpu_set(sg_host_t host, surf_cpu_t cpu) {
- host->set_facet(simgrid::surf::Cpu::LEVEL, cpu);
-}
-void sg_host_surfcpu_destroy(sg_host_t host) {
- host->set_facet<simgrid::surf::Cpu>(nullptr);
-}
-// ========== RoutingEdge ============
-surf_RoutingEdge *sg_host_edge(sg_host_t host) {
- return (surf_RoutingEdge*) host->facet(ROUTING_HOST_LEVEL);
-}
-void sg_host_edge_set(sg_host_t host, surf_RoutingEdge *edge) {
- host->set_facet(ROUTING_HOST_LEVEL, edge);
-}
-void sg_host_edge_destroy(sg_host_t host, int do_callback) {
- host->set_facet(ROUTING_HOST_LEVEL, nullptr, do_callback);