perf: sum ddts to compute total downloads instead of LP query.
[ppastats.git] / src / lp.h
index ee15e59..394aa17 100644 (file)
--- a/src/lp.h
+++ b/src/lp.h
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2011-2012 jeanfi@gmail.com
+ * Copyright (C) 2011-2014 jeanfi@gmail.com
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License as
@@ -93,4 +93,12 @@ char *get_archive_url(const char *owner, const char  *ppa);
 
 char *time_to_str(time_t t);
 
+time_t ddts_get_last_date(struct daily_download_total **);
+
+struct daily_download_total **
+ddts_merge(struct daily_download_total **,
+          struct daily_download_total **);
+
+int ddts_get_count(struct daily_download_total **);
+
 #endif