X-Git-Url: http://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Flp.h;h=9940b919e5441e73a59c1f8b9de50498ba8a5fe4;hb=8fbc54a7960312d1626f4032d5fef5bf8a37db70;hp=5b2a1ed509996eb6189bce793a052594b31f667c;hpb=60892f2ef45fa1ee656e1a00cac0578f9d6f9536;p=ppastats.git diff --git a/src/lp.h b/src/lp.h index 5b2a1ed..9940b91 100644 --- 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 @@ -22,7 +22,6 @@ #define URL_BASE_LP "https://api.launchpad.net/1.0" -#define _XOPEN_SOURCE #include struct daily_download_total { @@ -37,9 +36,10 @@ struct bpph { char *binary_package_version; char *distro_arch_series_link; char *self_link; + char *status; int architecture_specific; - struct tm date_created; + time_t date_created; }; struct distro_arch_series { @@ -81,10 +81,16 @@ 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); +char *time_to_str(time_t t); + #endif