X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/612ca769b37fe934c8b17abe1eb17f2fa9817b6e..9687670d5440f10286a0dbc5aab95bb4eb9b6138:/src/surf/network_interface.hpp?ds=inline diff --git a/src/surf/network_interface.hpp b/src/surf/network_interface.hpp index 188539fd66..171a047f30 100644 --- a/src/surf/network_interface.hpp +++ b/src/surf/network_interface.hpp @@ -3,6 +3,9 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ + +#include + #include "xbt/fifo.h" #include "surf_interface.hpp" #include "surf_routing.hpp" @@ -243,14 +246,24 @@ public: tmgr_trace_event_t p_latEvent; /* LMM */ - tmgr_trace_event_t p_stateEvent; + tmgr_trace_event_t p_stateEvent = NULL; s_surf_metric_t p_power; /* User data */ +public: void *getData() { return userData;} void setData(void *d) { userData=d;} private: - void *userData; + void *userData = NULL; + + /* List of all links */ +private: + static boost::unordered_map *links; +public: + static Link *byName(const char* name); + static int linksAmount(); + static Link **linksList(); + static void linksExit(); }; /**********