X-Git-Url: http://git.mutantstargoat.com?a=blobdiff_plain;ds=sidebyside;f=src%2Fcfg.h;h=c009c95cd7fe7f7ce430b8a5e3b2ffa427531979;hb=5c4020c26c69f7100c4547792a951f306ff0f32a;hp=5013e667aa9ca677156d4e77840c566316861f9c;hpb=e49feadc7c6d267a329d35723b3291ae59099821;p=libgliar
diff --git a/src/cfg.h b/src/cfg.h
index 5013e66..c009c95 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,16 +23,26 @@ Author: Eleni Maria Stea
#ifndef CFG_H_
#define CFG_H_
+enum type {GLIAR_NUMBER, GLIAR_STRING};
+
struct cfgopt {
char *key;
- char *val;
+ char **str_val;
+ int str_count;
+
+ char* conc_vals;
+
+ int num_val;
+ enum type type;
struct cfgopt *next;
};
+void gliar_value_set(const char *key, char **valid, int vcount);
+
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);