1 /* release.h - the opkg package management system
3 Copyright (C) 2010,2011 Javier Palacios
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License as
7 published by the Free Software Foundation; either version 2, or (at
8 your option) any later version.
10 This program is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
21 #include "cksum_list.h"
28 unsigned int architectures_count
;
30 unsigned int components_count
;
31 cksum_list_t
*md5sums
;
33 cksum_list_t
*sha256sums
;
36 unsigned int complist_count
;
39 typedef struct release release_t
;
41 release_t
*release_new(void);
42 void release_deinit(release_t
*release
);
43 int release_init_from_file(release_t
*release
, const char *filename
);
45 int release_arch_supported(release_t
*release
);
46 int release_comps_supported(release_t
*release
, const char *complist
);
47 int release_download(release_t
*release
, pkg_src_t
*dist
, char *lists_dir
, char *tmpdir
);
49 const char **release_comps(release_t
*release
, unsigned int *count
);
51 int release_verify_file(release_t
*release
, const char *filename
, const char *pathname
);