Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
update the double extern declaration bis
[simgrid.git] / src / surf / network_gtnets_private.h
1 /*      $Id$     */
2
3 /* Copyright (c) 2004 Arnaud Legrand. All rights reserved.                  */
4
5 /* This program is free software; you can redistribute it and/or modify it
6  * under the terms of the license (GNU LGPL) which comes with this package. */
7
8 #ifndef _SURF_NETWORK_GTNETS_PRIVATE_H
9 #define _SURF_NETWORK_GTNETS_PRIVATE_H
10
11 #include "surf_private.h"
12 #include "xbt/dict.h"
13
14 typedef struct network_link_GTNETS {
15   surf_resource_t resource;     /* Any such object, added in a trace
16                                    should start by this field!!! */
17   /* Using this object with the public part of
18      resource does not make sense */
19   char *name;
20   double bw_current;
21   double lat_current;
22   int id;
23 } s_network_link_GTNETS_t, *network_link_GTNETS_t;
24
25
26 typedef struct network_card_GTNETS {
27   char *name;
28   int id;
29 } s_network_card_GTNETS_t, *network_card_GTNETS_t;
30
31 typedef struct surf_action_network_GTNETS {
32   s_surf_action_t generic_action;
33   double latency;
34   double lat_current;
35   lmm_variable_t variable;
36   double rate;
37   int suspended;
38   network_card_GTNETS_t src;
39   network_card_GTNETS_t dst;
40 } s_surf_action_network_GTNETS_t, *surf_action_network_GTNETS_t;
41
42 extern xbt_dict_t network_card_set;
43
44 #endif                          /* _SURF_NETWORK_PRIVATE_H */
45
46