added module to handle log
[ppastats.git] / src / ppastats.h
index 615e2c2..b6b12df 100644 (file)
 #ifndef _PPASTATS_PPASTATS_H_
 #define _PPASTATS_PPASTATS_H_
 
-extern int debug;
-
 #include "lp.h"
 
 struct arch_stats {
        char *name;
 
-       struct daily_download_total *daily_download_totals;
        int download_count;
 };
 
@@ -36,7 +33,7 @@ struct distro_stats {
 
        struct arch_stats **archs;
        int download_count;
-       struct daily_download_total *daily_download_totals;
+       struct daily_download_total **ddts;
 };
 
 struct version_stats {
@@ -53,6 +50,7 @@ struct package_stats {
        struct version_stats **versions;
        int download_count;
        struct daily_download_total **daily_download_totals;
+       struct distro_stats **distros;
 };
 
 struct ppa_stats {