- w1 = SD_workstation_get_by_name("host1");
- w2 = SD_workstation_get_by_name("host2");
- name1 = SD_workstation_get_name(w1);
- name2 = SD_workstation_get_name(w2);
-
-
- /* The host properties can be retrived from all interfaces */
-
- XBT_INFO("Property list for workstation %s", name1);
- /* Get the property list of the workstation 1 */
- props = SD_workstation_get_properties(w1);
+ sg_host_t h1 = sg_host_by_name("host1");
+ sg_host_t h2 = sg_host_by_name("host2");
+ const char *name1 = sg_host_get_name(h1);
+ const char *name2 = sg_host_get_name(h2);