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
Hash table.
Definition: hash.c:41
void di_release_free(di_release *packages)
Definition: release.c:122
di_hash_table * md5sum
Definition: release.h:43
char * origin
Definition: release.h:40
di_release * di_release_alloc(void)
Definition: release.c:108
void di_parser_fields_function_read(void **data, const di_parser_fieldinfo *fip, di_rstring *field_modifier, di_rstring *value, void *user_data)
Definition: parser.h:49
a mem chunk
Definition: mem_chunk.c:46
Info about a parser field.
Definition: parser.h:104
raw string
Definition: string.h:37
di_mem_chunk * release_file_mem_chunk
Definition: release.h:44
di_rstring key
Definition: release.h:55
Release file - file entry.
Definition: release.h:50
char * codename
Definition: release.h:42
char * filename
Definition: release.h:54
unsigned int size
Definition: release.h:57
const di_parser_fieldinfo * di_release_parser_fieldinfo[]
Definition: release.c:84
di_release * di_release_read_file(const char *file)
Definition: release.c:142
Release file.
Definition: release.h:38
char * suite
Definition: release.h:41