package_internal.h
/*
* package_internal.h
*
* Copyright (C) 2003 Bastian Blank <waldi@debian.org>
*
* 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, see <http://www.gnu.org/licenses/>.
*/
#ifndef DEBIAN_INSTALLER__PACKAGE_INTERNAL_H
#define DEBIAN_INSTALLER__PACKAGE_INTERNAL_H
#include <debian-installer/package.h>
typedef struct internal_di_package_parser_data internal_di_package_parser_data;
extern const di_parser_fieldinfo
internal_di_package_parser_field_status,
internal_di_package_parser_field_essential,
internal_di_package_parser_field_priority,
internal_di_package_parser_field_section,
internal_di_package_parser_field_installed_size,
internal_di_package_parser_field_maintainer,
internal_di_package_parser_field_architecture,
internal_di_package_parser_field_version,
internal_di_package_parser_field_replaces,
internal_di_package_parser_field_provides,
internal_di_package_parser_field_depends,
internal_di_package_parser_field_pre_depends,
internal_di_package_parser_field_recommends,
internal_di_package_parser_field_suggests,
internal_di_package_parser_field_conflicts,
internal_di_package_parser_field_enhances,
internal_di_package_parser_field_filename,
internal_di_package_parser_field_size,
internal_di_package_parser_field_sha256,
internal_di_package_parser_field_description;
struct internal_di_package_parser_data
{
di_packages_allocator *allocator;
di_packages *packages;
di_package *package;
};
di_destroy_notify
internal_di_package_destroy_func;
int internal_di_package_array_text_from_rstring (const char *const *array, const di_rstring *text);
static inline di_package_priority internal_di_package_priority_text_from_rstring (const di_rstring *text)
{
return internal_di_package_array_text_from_rstring (di_package_priority_text, text);
}
static inline di_package_status_want internal_di_package_status_want_text_from_rstring (const di_rstring *text)
{
return internal_di_package_array_text_from_rstring (di_package_status_want_text, text);
}
static inline di_package_status internal_di_package_status_text_from_rstring (const di_rstring *text)
{
return internal_di_package_array_text_from_rstring (di_package_status_text, text);
}
#endif
internal_di_package_parser_field_status
const di_parser_fieldinfo internal_di_package_parser_field_status
Definition: package_parser.c:39
di_package_priority
di_package_priority
Definition: package.h:49
di_package_status_want
di_package_status_want
Definition: package.h:74
internal_di_package_destroy_func
di_destroy_notify internal_di_package_destroy_func
Definition: package_internal.h:80
di_package_status
di_package_status
Definition: package.h:61
di_destroy_notify
void di_destroy_notify(void *data)
Definition: types.h:50
di_package
Package.
Definition: package.h:96
di_packages_allocator
Packages file - Allocator.
Definition: packages.h:53
di_packages
Packages file.
Definition: packages.h:42
di_parser_fieldinfo
Info about a parser field.
Definition: parser.h:105
di_rstring
raw string
Definition: string.h:38
internal_di_package_parser_data
Definition: package_internal.h:63
internal_di_package_parser_data::package
di_package * package
Definition: package_internal.h:66
internal_di_package_parser_data::allocator
di_packages_allocator * allocator
Definition: package_internal.h:64
internal_di_package_parser_data::packages
di_packages * packages
Definition: package_internal.h:65