X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/17a9f17337b1d6743025cf52e7c19a469138d38f..4bb73cb3914b5f7b77a9ec1f8abe728e637cc016:/src/include/simgrid/sg_config.h diff --git a/src/include/simgrid/sg_config.h b/src/include/simgrid/sg_config.h index fdda707180..f185d514b1 100644 --- a/src/include/simgrid/sg_config.h +++ b/src/include/simgrid/sg_config.h @@ -1,14 +1,24 @@ +/* Copyright (c) 2012-2018. 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. */ + +#ifndef SIMGRID_CONFIG_H +#define SIMGRID_CONFIG_H + #include "xbt/config.h" +#include "xbt/config.hpp" + +/** Config Globals */ +SG_BEGIN_DECL() + +XBT_PUBLIC_DATA(xbt_cfg_t) simgrid_config; +XBT_PUBLIC_DATA(int) _sg_cfg_init_status; +XBT_PUBLIC_DATA(int) _sg_cfg_exit_asap; + +XBT_PUBLIC void sg_config_init(int* argc, char** argv); +XBT_PUBLIC void sg_config_finalize(); + +SG_END_DECL() -/*******************************************/ -/*** Config Globals **************************/ -/*******************************************/ -XBT_PUBLIC_DATA(xbt_cfg_t) _sg_cfg_set; -XBT_PUBLIC(int) sg_cfg_get_int(const char* name); -XBT_PUBLIC(double) sg_cfg_get_double(const char* name); -XBT_PUBLIC(char*) sg_cfg_get_string(const char* name); -XBT_PUBLIC(void) sg_cfg_get_peer(const char *name, char **peer, int *port); -XBT_PUBLIC(xbt_dynar_t) sg_cfg_get_dynar(const char* name); - -void sg_config_init(int *argc, char **argv); -void sg_config_finalize(void); +#endif