1 /* Authors: Arnaud Legrand */
3 /* This program is free software; you can redistribute it and/or modify it
4 under the terms of the license (GNU LGPL) which comes with this package. */
6 #ifndef _SURF_NETWORK_PRIVATE_H
7 #define _SURF_NETWORK_PRIVATE_H
9 #include "surf_private.h"
12 SURF_NETWORK_LINK_ON = 1, /* Ready */
13 SURF_NETWORK_LINK_OFF = 0 /* Running */
14 } e_surf_network_link_state_t;
16 typedef struct network_link {
17 surf_resource_t resource; /* Any such object, added in a trace
18 should start by this field!!! */
19 /* Using this object with the public part of
20 resource does not make sense */
22 xbt_maxmin_float_t bw_current;
23 tmgr_trace_event_t bw_event;
24 xbt_maxmin_float_t lat_current;
25 tmgr_trace_event_t lat_event;
26 e_surf_network_link_state_t state_current;
27 tmgr_trace_event_t state_event;
28 lmm_constraint_t constraint;
29 } s_network_link_t, *network_link_t;
32 typedef struct network_card {
35 } s_network_card_t, *network_card_t;
37 typedef struct surf_action_network {
38 s_surf_action_t generic_action;
39 lmm_variable_t variable;
42 } s_surf_action_network_t, *surf_action_network_t;
44 #endif /* _SURF_NETWORK_PRIVATE_H */