Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
97ee335e7c89a5d17964027ec6ac10cde5db0cf2
[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(char *name, int port);
24 void xbt_host_free(xbt_host_t host);
25 void xbt_host_free_voidp(void *d);
26
27 SG_END_DECL()
28
29
30 #endif /* XBT_MISC_H */