X-Git-Url: http://git.wpitchoune.net/gitweb/?p=ppastats.git;a=blobdiff_plain;f=src%2Flp.h;h=ee15e59d06d7073088be23cd39b3f41a3b61d3a2;hp=3e95b4ef8e49679060823dcc1fbf55d96eab7ab3;hb=12cf1b3a4702e58c5797be638ab48e899ef932a4;hpb=cbe5f873c5f0306a7a5d2f431992dbbb6edbe332 diff --git a/src/lp.h b/src/lp.h index 3e95b4e..ee15e59 100644 --- a/src/lp.h +++ b/src/lp.h @@ -22,7 +22,6 @@ #define URL_BASE_LP "https://api.launchpad.net/1.0" -#define _XOPEN_SOURCE #include struct daily_download_total { @@ -40,7 +39,7 @@ struct bpph { char *status; int architecture_specific; - struct tm date_created; + time_t date_created; }; struct distro_arch_series { @@ -82,7 +81,9 @@ 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); @@ -90,4 +91,6 @@ 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