Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'surf++'
[simgrid.git] / src / include / simgrid / sg_config.h
1 /* Copyright (c) 2012-2013. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 #include "xbt/config.h"
8
9 /*******************************************/
10 /*** Config Globals **************************/
11 /*******************************************/
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16
17 XBT_PUBLIC_DATA(xbt_cfg_t) _sg_cfg_set;
18 XBT_PUBLIC_DATA(int) _sg_cfg_init_status;
19 XBT_PUBLIC_DATA(int) _sg_cfg_exit_asap;
20 XBT_PUBLIC(int) sg_cfg_get_int(const char* name);
21 XBT_PUBLIC(double) sg_cfg_get_double(const char* name);
22 XBT_PUBLIC(char*) sg_cfg_get_string(const char* name);
23 XBT_PUBLIC(int) sg_cfg_get_boolean(const char* name);
24 XBT_PUBLIC(void) sg_cfg_get_peer(const char *name, char **peer, int *port);
25 XBT_PUBLIC(xbt_dynar_t) sg_cfg_get_dynar(const char* name);
26
27 void sg_config_init(int *argc, char **argv);
28 void sg_config_finalize(void);
29
30 #ifdef __cplusplus
31 }
32 #endif