X-Git-Url: http://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Flp.h;h=5b2a1ed509996eb6189bce793a052594b31f667c;hb=60892f2ef45fa1ee656e1a00cac0578f9d6f9536;hp=49c648f091b2c35080a6085b38fba8a5e28f9c6f;hpb=05efb0b6dfba33b3dc441b4bbb795d056d404399;p=ppastats.git diff --git a/src/lp.h b/src/lp.h index 49c648f..5b2a1ed 100644 --- a/src/lp.h +++ b/src/lp.h @@ -1,21 +1,21 @@ /* - Copyright (C) 2011 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 published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301 USA -*/ + * Copyright (C) 2011-2012 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 + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + * 02110-1301 USA + */ #ifndef _PPASTATS_LP_H_ #define _PPASTATS_LP_H_ @@ -31,11 +31,15 @@ struct daily_download_total { struct tm date; }; -struct binary_package_publishing_history { +/* (b)inary (p)ackage (p)ublishing (h)istory */ +struct bpph { char *binary_package_name; char *binary_package_version; char *distro_arch_series_link; char *self_link; + int architecture_specific; + + struct tm date_created; }; struct distro_arch_series { @@ -71,19 +75,15 @@ distro_arch_series_new(const char *display_name, void distro_arch_series_free(struct distro_arch_series *); -void -binary_package_publishing_history_free -(struct binary_package_publishing_history *b); - -struct binary_package_publishing_history * -binary_package_publishing_history_new(const char *binary_package_name, - const char *binary_package_version, - const char *distro_arch_series_link, - const char *self_link); +void bpph_free(struct bpph *b); -void binary_package_publishing_history_list_free -(struct binary_package_publishing_history **list); +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); +void bpph_list_free(struct bpph **list); char *get_archive_url(const char *owner, const char *ppa);