Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Change the prototype of xbt_thread_create(), sorry.
[simgrid.git] / include / xbt / peer.h
1 /* $Id$ */
2
3 /* peer.h - peer (remote processes) management functions                    */
4
5 /* Copyright (c) 2006 Arnaud Legrand.                                       */
6 /* Copyright (c) 2006 Martin Quinson.                                       */
7 /* All rights reserved.                                                     */
8
9 /* This program is free software; you can redistribute it and/or modify it
10  * under the terms of the license (GNU LGPL) which comes with this package. */
11
12 #ifndef XBT_PEER_H
13 #define XBT_PEER_H
14
15 #include "xbt/misc.h"
16
17 SG_BEGIN_DECL()
18
19      typedef struct {
20        char *name;
21        int port;
22      } s_xbt_peer_t, *xbt_peer_t;
23
24 XBT_PUBLIC(xbt_peer_t) xbt_peer_new(const char *name, int port);
25 XBT_PUBLIC(xbt_peer_t) xbt_peer_from_string(const char *peerport);
26 XBT_PUBLIC(xbt_peer_t) xbt_peer_copy(xbt_peer_t h);
27 XBT_PUBLIC(void) xbt_peer_free(xbt_peer_t peer);
28 XBT_PUBLIC(void) xbt_peer_free_voidp(void *d);
29
30 SG_END_DECL()
31 #endif /* XBT_PEER_H */