"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/cfg.h" between
vnstat-2.7.tar.gz and vnstat-2.8.tar.gz

About: vnStat is a console-based network traffic monitor (using the /proc filesystem).

cfg.h  (vnstat-2.7):cfg.h  (vnstat-2.8)
skipping to change at line 12 skipping to change at line 12
#define CFG_H #define CFG_H
struct cfgsetting { struct cfgsetting {
const char *name; const char *name;
char *locc; char *locc;
int32_t *loci; int32_t *loci;
short namelen; short namelen;
short found; short found;
}; };
int loadcfg(const char *cfgfile); typedef enum ConfigType {
CT_All = 0,
CT_CLI,
CT_Daemon,
CT_Image
} ConfigType;
int loadcfg(const char *cfgfile, const ConfigType type);
void validatebool(const char *cfgname, int32_t *cfgptr, const int32_t defaultval ue); void validatebool(const char *cfgname, int32_t *cfgptr, const int32_t defaultval ue);
void validateint(const char *cfgname, int32_t *cfgptr, const int32_t defaultvalu e, const int32_t minvalue, const int32_t maxvalue); void validateint(const char *cfgname, int32_t *cfgptr, const int32_t defaultvalu e, const int32_t minvalue, const int32_t maxvalue);
void validatecfg(void); void validatecfg(const ConfigType type);
void defaultcfg(void); void defaultcfg(void);
int opencfgfile(const char *cfgfile, FILE **fd); int opencfgfile(const char *cfgfile, FILE **fd);
int extractcfgvalue(char *value, const unsigned int valuelen, const char *cfglin e, const unsigned int cfglen); int extractcfgvalue(char *value, const unsigned int valuelen, const char *cfglin e, const unsigned int cfglen);
int setcfgvalue(const struct cfgsetting *cset, const char *value, const char *cf gline); int setcfgvalue(const struct cfgsetting *cset, const char *value, const char *cf gline);
void configlocale(void); void configlocale(void);
#endif #endif
 End of changes. 2 change blocks. 
2 lines changed or deleted 9 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)