/* This is useful to build named structs, like option or property sets. */
-/* Copyright (c) 2004, 2005, 2006, 2007, 2009, 2010. The SimGrid Team.
+/* Copyright (c) 2004-2007, 2009-2014. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
#ifndef _XBT_CONFIG_H_
#define _XBT_CONFIG_H_
-#include <stdarg.h>
#include "xbt/dynar.h"
+#include <stdarg.h>
SG_BEGIN_DECL()
xbt_cfgelm_boolean, /**< int */
xbt_cfgelm_peer, /**< both a char* (representing the peername) and an integer (representing the port) */
+ //! @cond
xbt_cfgelm_any, /* not shown to users to prevent errors */
xbt_cfgelm_type_count
+ //! @endcond
} e_xbt_cfgelm_type_t;
/** Boolean possible values **/
const char *name,
const char *description,
e_xbt_cfgelm_type_t type,
- void *default_value, int min, int max,
+ int min, int max,
xbt_cfg_cb_t cb_set, xbt_cfg_cb_t cb_rm);
XBT_PUBLIC(void) xbt_cfg_unregister(xbt_cfg_t cfg, const char *name);
XBT_PUBLIC(void) xbt_cfg_register_str(xbt_cfg_t * cfg, const char *entry);