-/* Copyright (c) 2010-2012, 2014-2016. The SimGrid Team.
+/* Copyright (c) 2010-2012, 2014-2017. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
#include <unordered_map>
#include <vector>
#include <string>
-#if HAVE_JEDULE
+#if SIMGRID_HAVE_JEDULE
namespace simgrid {
namespace jedule{
std::vector<sg_host_t> resource_list;
void addChild(Container* child);
void addResources(std::vector<sg_host_t> hosts);
- void createHierarchy(AS_t from_as);
+ void createHierarchy(sg_netzone_t from_as);
std::vector<int> getHierarchy();
std::string getHierarchyAsString();
void print(FILE *file);
}
}
-SG_BEGIN_DECL()
+extern "C" {
typedef simgrid::jedule::Container * jed_container_t;
typedef simgrid::jedule::Subset * jed_subset_t;
void get_resource_selection_by_hosts(std::vector<jed_subset_t>* subset_list, std::vector<sg_host_t> *host_list);
-
-SG_END_DECL()
+}
#endif