"Fossies" - the Fresh Open Source Software Archive  

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

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

dbshow.h  (vnstat-2.8):dbshow.h  (vnstat-2.9)
#ifndef DBSHOW_H #ifndef DBSHOW_H
#define DBSHOW_H #define DBSHOW_H
#define DATEBUFFLEN 64 #define DATEBUFFLEN 64
#define HGLINES 15 #define HGLINES 15
#define ALERTUSAGELEN 59
typedef struct { typedef struct {
time_t date; time_t date;
uint64_t rx, tx; uint64_t rx, tx;
} HOURDATA; } HOURDATA;
typedef enum AlertOutput {
AO_No_Output = 0,
AO_Always_Output,
AO_Output_On_Estimate,
AO_Output_On_Limit
} AlertOutput;
typedef enum AlertExit {
AE_Always_Exit_0 = 0,
AE_Always_Exit_1,
AE_Exit_1_On_Estimate,
AE_Exit_1_On_Limit
} AlertExit;
typedef enum AlertType {
AT_None = 0,
AT_Hour,
AT_Day,
AT_Month,
AT_Year
} AlertType;
typedef enum AlertCondition {
AC_None = 0,
AC_RX,
AC_TX,
AC_Total,
AC_RX_Estimate,
AC_TX_Estimate,
AC_Total_Estimate
} AlertCondition;
void showdb(const char *interface, int qmode, const char *databegin, const char *dataend); void showdb(const char *interface, int qmode, const char *databegin, const char *dataend);
void showsummary(const interfaceinfo *interface, const int shortmode); void showsummary(const interfaceinfo *interface, const int shortmode);
void showlist(const interfaceinfo *interface, const char *listname, const char * databegin, const char *dataend); void showlist(const interfaceinfo *interface, const char *listname, const char * databegin, const char *dataend);
void showoneline(const interfaceinfo *interface); void showoneline(const interfaceinfo *interface);
void showhours(const interfaceinfo *interface); void showhours(const interfaceinfo *interface);
int showbar(uint64_t rx, uint64_t tx, uint64_t max, const int len); int showbar(const uint64_t rx, const uint64_t tx, const uint64_t max, const int len);
void indent(int i); void indent(int i);
int showalert(const char *interface, const AlertOutput output, const AlertExit e xit, const AlertType type, const AlertCondition condition, const uint64_t limit) ;
#endif #endif
 End of changes. 4 change blocks. 
1 lines changed or deleted 35 lines changed or added

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