Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
s/xbt_host_t/xbt_peer_t/
[simgrid.git] / include / xbt / peer.h
diff --git a/include/xbt/peer.h b/include/xbt/peer.h
new file mode 100644 (file)
index 0000000..5f56799
--- /dev/null
@@ -0,0 +1,33 @@
+/* $Id$ */
+
+/* peer.h - peer (remote processes) management functions                    */
+
+/* Copyright (c) 2006 Arnaud Legrand.                                       */
+/* Copyright (c) 2006 Martin Quinson.                                       */
+/* All rights reserved.                                                     */
+
+/* This program is free software; you can redistribute it and/or modify it
+ * under the terms of the license (GNU LGPL) which comes with this package. */
+
+#ifndef XBT_PEER_H
+#define XBT_PEER_H
+
+#include "xbt/misc.h"
+
+SG_BEGIN_DECL()
+
+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);
+
+SG_END_DECL()
+
+
+#endif /* XBT_PEER_H */