Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
new function to check if a tracing container exists
[simgrid.git] / src / instr / instr_paje.c
index 0d32eda..8b300ed 100644 (file)
@@ -250,6 +250,15 @@ container_t getContainer (const char *name)
   return recursiveGetContainer(name, rootContainer);
 }
 
+int knownContainerWithName (const char *name)
+{
+  if (xbt_dict_get_or_null (allContainers, name)){
+    return 1;
+  }else{
+    return 0;
+  }
+}
+
 container_t getContainerByName (const char *name)
 {
   return (container_t)xbt_dict_get (allContainers, name);