Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
XBT: Add xbt_str_from_file(FILE*)
[simgrid.git] / include / xbt / peer.h
index 5f56799..e99ae7c 100644 (file)
 
 SG_BEGIN_DECL()
 
-typedef struct {  
-   char *name;
-   int port;
-} s_xbt_peer_t, *xbt_peer_t;
+     typedef struct {
+       char *name;
+       int port;
+     } s_xbt_peer_t, *xbt_peer_t;
 
-xbt_peer_t xbt_peer_new(const char *name, int port);
-xbt_peer_t xbt_peer_from_string(const char *peerport);
-xbt_peer_t xbt_peer_copy(xbt_peer_t h);
-void xbt_peer_free(xbt_peer_t peer);
-void xbt_peer_free_voidp(void *d);
+XBT_PUBLIC(xbt_peer_t) xbt_peer_new(const char *name, int port);
+XBT_PUBLIC(xbt_peer_t) xbt_peer_from_string(const char *peerport);
+XBT_PUBLIC(xbt_peer_t) xbt_peer_copy(xbt_peer_t h);
+XBT_PUBLIC(void) xbt_peer_free(xbt_peer_t peer);
+XBT_PUBLIC(void) xbt_peer_free_voidp(void *d);
 
 SG_END_DECL()
-
-
 #endif /* XBT_PEER_H */