Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
New function: xbt_host_copy (even if it's trivial)
[simgrid.git] / include / xbt / host.h
1 /* $Id$ */
2
3 /* host.h - host management functions                                       */
4
5 /* Copyright (c) 2006 Arnaud Legrand.                                       */
6 /* All rights reserved.                                                     */
7
8 /* This program is free software; you can redistribute it and/or modify it
9  * under the terms of the license (GNU LGPL) which comes with this package. */
10
11 #ifndef XBT_HOST_H
12 #define XBT_HOST_H
13
14 #include "xbt/misc.h"
15
16 SG_BEGIN_DECL()
17
18 typedef struct {  
19    char *name;
20    int port;
21 } s_xbt_host_t, *xbt_host_t;
22
23 xbt_host_t xbt_host_new(const char *name, int port);
24 xbt_host_t xbt_host_from_string(const char *hostport);
25 xbt_host_t xbt_host_copy(xbt_host_t h);
26 void xbt_host_free(xbt_host_t host);
27 void xbt_host_free_voidp(void *d);
28
29 SG_END_DECL()
30
31
32 #endif /* XBT_MISC_H */