git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2281
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
xbt_host_t xbt_host_new(const char *name, int port);
xbt_host_t xbt_host_from_string(const char *hostport);
+xbt_host_t xbt_host_copy(xbt_host_t h);
void xbt_host_free(xbt_host_t host);
void xbt_host_free_voidp(void *d);
return res;
}
+xbt_host_t xbt_host_copy(xbt_host_t h) {
+ return xbt_host_new(h->name,h->port);
+}
+
/** \brief constructor. Argument should be of form '<hostname>:<port>'. */
xbt_host_t xbt_host_from_string(const char *hostport) {
xbt_host_t res=xbt_new(s_xbt_host_t, 1);