X-Git-Url: http://git.mutantstargoat.com?p=libgliar;a=blobdiff_plain;f=src%2Fcfg.h;fp=src%2Fcfg.h;h=c665782cd62e85653717d49bfe76ebfae2ac9ce0;hp=4f18d2dea0fe712c6b9eabd308f71f2e008fefd4;hb=5f0b3ca4e21db7b0f0de939e956bd5f34fec3746;hpb=1a777c7b08fc99b51cd2dc72188d45ee6d82804a diff --git a/src/cfg.h b/src/cfg.h index 4f18d2d..c665782 100644 --- a/src/cfg.h +++ b/src/cfg.h @@ -11,11 +11,11 @@ the Free Software Foundation, either version 3 of the License, or This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License -along with this program. If not, see . +along with this program. If not, see . Author: Eleni Maria Stea */ @@ -23,21 +23,24 @@ Author: Eleni Maria Stea #ifndef CFG_H_ #define CFG_H_ -enum TYPE {unknown, flt, dbl, boolean, integer, str}; +enum type {GLIAR_NUMBER, GLIAR_STRING}; struct cfgopt { char *key; - char *str_val; + char **str_val; + int str_count; - double num_val; - enum TYPE type; + char* conc_vals; + + int num_val; + enum type type; struct cfgopt *next; }; struct cfgopt *gliar_load_cfg(const char *fname); -const char *gliar_find_opt(struct cfgopt *list, const char *name); +const struct cfgopt *gliar_find_opt(struct cfgopt *list, const char *name); void gliar_print_opt(struct cfgopt *list);