29 #ifndef __GENEPI_PLUGIN_CONFIG_H__
30 # define __GENEPI_PLUGIN_CONFIG_H__
33 # include <genepi/genepi-common.h>
37 typedef struct genepi_plugconf_st genepi_plugconf;
39 extern genepi_plugconf *
40 genepi_plugconf_create (
void);
43 genepi_plugconf_load (genepi_plugconf *conf, FILE *input,
const char *location);
46 genepi_plugconf_save (genepi_plugconf *conf, FILE *output);
48 extern genepi_plugconf *
49 genepi_plugconf_add_reference (genepi_plugconf *conf);
52 genepi_plugconf_del_reference (genepi_plugconf *conf);
54 extern genepi_plugconf *
55 genepi_plugconf_duplicate (
const genepi_plugconf *conf);
58 genepi_plugconf_merge (genepi_plugconf *conf,
const genepi_plugconf *other);
61 genepi_plugconf_add_entry (genepi_plugconf *conf,
const char *key,
65 genepi_plugconf_get_entry (genepi_plugconf *conf,
const char *key,
66 const char *default_value);
69 genepi_plugconf_get_bool (genepi_plugconf *conf,
const char *key,
73 genepi_plugconf_get_int (genepi_plugconf *conf,
const char *key,
77 genepi_plugconf_get_unsigned_int (genepi_plugconf *conf,
const char *key,
78 unsigned int default_value);