Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove unused flag.
[simgrid.git] / src / surf / ns3 / ns3_interface.h
1 /* Copyright (c) 2007, 2008, 2009, 2010. The SimGrid Team.
2  * All rights reserved.                                                     */
3
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. */
6
7 #ifndef _NS3_INTERFACE_H
8 #define _NS3_INTERFACE_H
9
10 #include "xbt/log.h"
11 #include "xbt/misc.h"
12 #include "xbt/sysdep.h"
13
14 typedef enum {
15         NS3_NETWORK_ELEMENT_NULL = 0,    /* NULL */
16         NS3_NETWORK_ELEMENT_HOST,       /* host type */
17         NS3_NETWORK_ELEMENT_ROUTER,     /* router type */
18         NS3_NETWORK_ELEMENT_AS,         /* AS type */
19 } e_ns3_network_element_type_t;
20
21 typedef struct ns3_nodes{
22         int node_num;
23         e_ns3_network_element_type_t type;
24         void * data;
25 }s_ns3_nodes_t, *ns3_nodes_t;
26
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30
31 XBT_PUBLIC(void *) ns3_add_host(char * id);
32 XBT_PUBLIC(void *) ns3_add_router(char * id);
33 XBT_PUBLIC(void *) ns3_add_link(char * id);
34 XBT_PUBLIC(void *) ns3_add_AS(char * id);
35 XBT_PUBLIC(void) ns3_add_cluster(char * id);
36 XBT_PUBLIC(void) ns3_add_route(char * src,char * dst);
37 XBT_PUBLIC(void) ns3_add_ASroute(char * src,char * dst);
38 XBT_PUBLIC(void) free_ns3_elmts(void *);
39
40 #ifdef __cplusplus
41 }
42 #endif
43
44 #endif