Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
document an ugly pimple in the code that were added for autorestart to work
[simgrid.git] / src / surf / network_gtnets_private.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 _SURF_NETWORK_GTNETS_PRIVATE_H
8 #define _SURF_NETWORK_GTNETS_PRIVATE_H
9
10 #include "surf_private.h"
11 #include "xbt/dict.h"
12
13 typedef struct network_link_GTNETS {
14   s_surf_resource_t generic_resource;   /* Must remain first to allow casting */
15   /* Using this object with the public part of
16      model does not make sense */
17   double bw_current;
18   double lat_current;
19   int id;
20 } s_network_link_GTNETS_t, *network_link_GTNETS_t;
21
22 typedef struct surf_action_network_GTNETS {
23   s_surf_action_t generic_action;
24   double latency;
25   double lat_current;
26 #ifdef HAVE_TRACING
27   int last_remains;
28 #endif
29   lmm_variable_t variable;
30   double rate;
31   int suspended;
32 #ifdef HAVE_TRACING
33   sg_routing_edge_t src;
34   sg_routing_edge_t dst;
35 #endif //HAVE_TRACING
36 } s_surf_action_network_GTNETS_t, *surf_action_network_GTNETS_t;
37
38 xbt_dict_t network_card_ids;
39
40
41
42 #endif                          /* _SURF_NETWORK_PRIVATE_H */