- under the terms of the license (GNU LGPL) which comes with this package. */
-
-#ifndef _GRAS_CONFIG_H_
-#define _GRAS_CONFIG_H_
-
-typedef struct {
- char *name;
- int port;
-} gras_host_t;
-
-/* For now, a config is only a special dynar. But don't rely on it, */
-/* it may change in the future. */
-typedef gras_dynar_t gras_cfg_t;
-
-/* type of a typed hash cell */
-typedef enum {
- gras_cfgelm_int=0, gras_cfgelm_double, gras_cfgelm_string, gras_cfgelm_host,
- gras_cfgelm_type_count
-} gras_cfgelm_type_t;
-
-/*----[ Memory management ]-----------------------------------------------*/
-void gras_cfg_new (gras_cfg_t **whereto); /* (whereto == NULL) is ok */
-void gras_cfg_cpy(gras_cfg_t **whereto, gras_cfg_t *tocopy);
-void gras_cfg_free(gras_cfg_t **cfg);
-void gras_cfg_dump(const char *name,const char*indent,gras_cfg_t *cfg);
-
-/*----[ Registering stuff ]-----------------------------------------------*/
-/* Register a possible cell */
-void gras_cfg_register(gras_cfg_t *cfg,
- const char *name, gras_cfgelm_type_t type,
- int min, int max);
-/* Unregister a possible cell */
-gras_error_t gras_cfg_unregister(gras_cfg_t *cfg, const char *name);