X-Git-Url: http://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Flp.h;h=bb0b983ac7dea1e9a6424df332b5a1284b3c7715;hb=cb642aa184b4975dceb8cb596a3285d0e3a91e55;hp=0579a08f69a8906e5f23448e1d160df727fdc924;hpb=5ed73c995d6fcb5f3b4626bf7ebf609fc52f5d94;p=ppastats.git diff --git a/src/lp.h b/src/lp.h index 0579a08..bb0b983 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_ @@ -36,19 +36,39 @@ struct binary_package_publishing_history { char *binary_package_version; char *distro_arch_series_link; char *self_link; + int architecture_specific; }; struct distro_arch_series { char *display_name; char *title; char *architecture_tag; + int is_nominated_arch_indep; + char *distroseries_link; }; +struct distro_series { + char *displayname; + char *name; + char *version; + char *title; +}; + +struct distro_series *distro_series_new(const char *name, + const char *version, + const char *title, + const char *displayname); + +void distro_series_free(struct distro_series *distro_series); + void daily_download_total_list_free(struct daily_download_total **); -struct distro_arch_series *distro_arch_series_new(const char *display_name, - const char *title, - const char *architecture_tag); +struct distro_arch_series * +distro_arch_series_new(const char *display_name, + const char *title, + const char *architecture_tag, + int is_nominated_arch_indep, + const char *distroseries_link); void distro_arch_series_free(struct distro_arch_series *); @@ -60,7 +80,8 @@ 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); + const char *self_link, + int architecture_specific); void binary_package_publishing_history_list_free (struct binary_package_publishing_history **list); @@ -68,6 +89,4 @@ void binary_package_publishing_history_list_free char *get_archive_url(const char *owner, const char *ppa); -int list_length(void **list); - #endif