Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
New function: xbt_host_from_string() creating an xbt_host_t from a 'toto:42042' string
[simgrid.git] / include / xbt / host.h
index 97ee335..6351287 100644 (file)
@@ -20,7 +20,8 @@ typedef struct {
    int port;
 } s_xbt_host_t, *xbt_host_t;
 
-xbt_host_t xbt_host_new(char *name, int port);
+xbt_host_t xbt_host_new(const char *name, int port);
+xbt_host_t xbt_host_from_string(const char *hostport);
 void xbt_host_free(xbt_host_t host);
 void xbt_host_free_voidp(void *d);