cachesim
A cache simulator
parse_config.h
Go to the documentation of this file.
00001 /* -*- mode:c; coding: utf-8 -*- */
00002 
00008 #ifndef PARSE_CONFIG_H_INCLUDED
00009 #define PARSE_CONFIG_H_INCLUDED
00010 
00011 #include <stdio.h>
00012 
00021 struct ConfigFile;
00022 typedef struct ConfigFile ConfigFile;
00023 
00030 ConfigFile *config_file_parse(const char *path, FILE *log_f);
00031 
00037 ConfigFile *config_file_free(ConfigFile *cfg);
00038 
00045 const char *config_file_get(const ConfigFile *cfg, const char *name);
00046 
00056 int config_file_get_int(const ConfigFile *cfg, const char *name, int *p_value);
00057 
00058 #endif
00059 
00060 /*
00061  * Local variables:
00062  *  c-basic-offset: 4
00063  * End:
00064  */