Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
align namespaces on directories for kernel::routing
[simgrid.git] / teshsuite / simdag / is-router / is-router.cpp
index 9e056dd..680fce3 100644 (file)
@@ -1,5 +1,4 @@
-/* Copyright (c) 2008-2015. The SimGrid Team.
- * All rights reserved.                                                     */
+/* Copyright (c) 2008-2016. The SimGrid Team. All rights reserved.          */
 
 /* 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. */
@@ -25,12 +24,12 @@ int main(int argc, char **argv)
   printf("Host number: %zu, link number: %d, elmts number: %d\n", sg_host_count(), sg_link_count(), size);
 
   xbt_dict_foreach(host_list, cursor, key, data) {
-    simgrid::surf::NetCard * nc = sg_netcard_by_name_or_null(key);
+    simgrid::kernel::routing::NetCard * nc = sg_netcard_by_name_or_null(key);
     printf("   - Seen: \"%s\". Type: %s\n", key, nc->isRouter() ? "router" : (nc->isAS()?"AS":"host"));
   }
 
   xbt_lib_foreach(as_router_lib, cursor, key, data) {
-    simgrid::surf::NetCard * nc = sg_netcard_by_name_or_null(key);
+    simgrid::kernel::routing::NetCard * nc = sg_netcard_by_name_or_null(key);
     printf("   - Seen: \"%s\". Type: %s\n", key, nc->isRouter() ? "router" : (nc->isAS()?"AS":"host"));
   }