1 /* Copyright (c) 2007, 2008, 2009, 2010. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
7 #ifndef _NS3_INTERFACE_H
8 #define _NS3_INTERFACE_H
11 #include "xbt/dynar.h"
13 #include "xbt/sysdep.h"
16 NS3_NETWORK_ELEMENT_NULL = 0, /* NULL */
17 NS3_NETWORK_ELEMENT_HOST, /* host type */
18 NS3_NETWORK_ELEMENT_ROUTER, /* router type */
19 NS3_NETWORK_ELEMENT_AS, /* AS type */
20 } e_ns3_network_element_type_t;
22 typedef struct ns3_nodes{
24 e_ns3_network_element_type_t type;
26 }s_ns3_nodes_t, *ns3_nodes_t;
32 XBT_PUBLIC(void *) ns3_add_host(char * id);
33 XBT_PUBLIC(void *) ns3_add_router(char * id);
34 XBT_PUBLIC(void *) ns3_add_AS(char * id);
35 XBT_PUBLIC(void) ns3_add_cluster(char * id);