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
27typedef struct di_release di_release;
28typedef struct di_release_file di_release_file;
29
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
62void di_release_free (di_release *packages);
63
70di_release *di_release_read_file (const char *file);
71
75 di_release_parser_read_file;
76
83
85#endif
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
di_release * di_release_read_file(const char *file)
Definition release.c:142
const di_parser_fieldinfo * di_release_parser_fieldinfo[]
Definition release.c:84
void di_release_free(di_release *packages)
Definition release.c:122
di_release * di_release_alloc(void)
Definition release.c:108
Hash table.
Definition hash.c:42
a mem chunk
Definition mem_chunk.c:47
Info about a parser field.
Definition parser.h:105
Release file - file entry.
Definition release.h:51
char * sum[2]
Definition release.h:58
unsigned int size
Definition release.h:57
char * filename
Definition release.h:54
di_rstring key
Definition release.h:55
Release file.
Definition release.h:39
char * origin
Definition release.h:40
di_mem_chunk * release_file_mem_chunk
Definition release.h:44
char * suite
Definition release.h:41
char * codename
Definition release.h:42
di_hash_table * sha256
Definition release.h:43
raw string
Definition string.h:38