libdebian-installer
release.h
1 /*
2  * release.h
3  *
4  * Copyright (C) 2003 Bastian Blank <waldi@debian.org>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef DEBIAN_INSTALLER__RELEASE_H
21 #define DEBIAN_INSTALLER__RELEASE_H
22 
23 #include <debian-installer/hash.h>
24 #include <debian-installer/parser.h>
25 #include <debian-installer/slist.h>
26 
27 typedef struct di_release di_release;
28 typedef struct di_release_file di_release_file;
29 
38 struct di_release
39 {
40  char *origin;
41  char *suite;
42  char *codename;
45 };
46 
51 {
52  union
53  {
54  char *filename;
56  };
57  unsigned int size;
58  char *sum[2];
59 };
60 
62 void di_release_free (di_release *packages);
63 
70 di_release *di_release_read_file (const char *file);
71 
75  di_release_parser_read_file;
76 
83 
85 #endif