set copyright year to 2015
[ppastats.git] / src / lp.h
index 0603742..4c30021 100644 (file)
--- a/src/lp.h
+++ b/src/lp.h
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2011-2012 jeanfi@gmail.com
+ * Copyright (C) 2011-2015 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
@@ -22,7 +22,6 @@
 
 #define URL_BASE_LP "https://api.launchpad.net/1.0"
 
-#define _XOPEN_SOURCE
 #include <time.h>
 
 struct daily_download_total {
@@ -37,7 +36,10 @@ struct bpph {
        char *binary_package_version;
        char *distro_arch_series_link;
        char *self_link;
+       char *status;
        int architecture_specific;
+
+       time_t date_created;
 };
 
 struct distro_arch_series {
@@ -79,10 +81,25 @@ struct bpph *bpph_new(const char *binary_package_name,
                      const char *binary_package_version,
                      const char *distro_arch_series_link,
                      const char *self_link,
-                     int architecture_specific);
+                     const char *status,
+                     int architecture_specific,
+                     time_t date_created);
 
 void bpph_list_free(struct bpph **list);
 
+struct bpph **bpph_list_append_list(struct bpph **list1, struct bpph **list2);
+
 char *get_archive_url(const char *owner, const char  *ppa);
 
+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 **);
+
+struct daily_download_total *ddt_clone(struct daily_download_total *);
+struct daily_download_total **ddts_clone(struct daily_download_total **);
+
 #endif