Di_package

## Data Structures

struct | di_package
| Package. More...
struct | di_package_dependency
| Package dependency. More...
struct | di_package_version
| Package version. More...

## Enumerations

enum | di_package_priority { di_package_priority_extra = 1 , di_package_priority_optional , di_package_priority_standard , di_package_priority_important , di_package_priority_required }
enum | di_package_status { di_package_status_undefined = 0 , di_package_status_not_installed , di_package_status_unpacked , di_package_status_installed , di_package_status_half_configured , di_package_status_config_files }
enum | di_package_status_want { di_package_status_want_unknown = 0 , di_package_status_want_install , di_package_status_want_hold , di_package_status_want_deinstall , di_package_status_want_purge }
enum | di_package_type { di_package_type_non_existent = 0 , di_package_type_virtual_package , di_package_type_real_package }

enum

di_package_dependency_type {
di_package_dependency_type_replaces = 1 , di_package_dependency_type_provides , di_package_dependency_type_depends , di_package_dependency_type_pre_depends ,
di_package_dependency_type_recommends , di_package_dependency_type_suggests , di_package_dependency_type_conflicts , di_package_dependency_type_enhances ,
di_package_dependency_type_reverse_provides = 0x100 , di_package_dependency_type_reverse_enhances
}

## Functions

void | di_package_destroy (di_package *package)
static di_package * | di_package_alloc (di_packages_allocator *allocator)
static di_package_dependency * | di_package_dependency_alloc (di_packages_allocator *allocator)
void | di_package_version_free (di_package_version *version)
int | di_package_version_compare (const di_package_version *a, const di_package_version *b)
di_package_version * | di_package_version_parse (di_package *package)
int | di_package_array_text_from (const char *const *array, const char *text)
static di_package_priority | di_package_priority_text_from (const char *text)
static di_package_status_want | di_package_status_want_text_from (const char *text)
static di_package_status | di_package_status_text_from (const char *text)
static const char * | di_package_priority_text_to (const di_package_priority priority)
static const char * | di_package_status_want_text_to (const di_package_status_want status)
static const char * | di_package_status_text_to (const di_package_status status)
int | internal_di_package_array_text_from_rstring (const char *const *array, const di_rstring *text)
static di_package_priority | internal_di_package_priority_text_from_rstring (const di_rstring *text)
static di_package_status_want | internal_di_package_status_want_text_from_rstring (const di_rstring *text)
static di_package_status | internal_di_package_status_text_from_rstring (const di_rstring *text)

## Variables

const char *const | di_package_priority_text []
const char *const | di_package_status_want_text []
const char *const | di_package_status_text []
di_destroy_notify | internal_di_package_destroy_func

## Detailed Description

## Enumeration Type Documentation

## di_package_dependency_type

enum di_package_dependency_type

Type of dependency

Enumerator
di_package_dependency_type_replaces | Replaces field
di_package_dependency_type_provides | Provides field
di_package_dependency_type_depends | Depends field
di_package_dependency_type_pre_depends | Pre-Depends field
di_package_dependency_type_recommends | Recommends field
di_package_dependency_type_suggests | Suggests field
di_package_dependency_type_conflicts | Conflicts field
di_package_dependency_type_enhances | Enhances field
di_package_dependency_type_reverse_provides |
di_package_dependency_type_reverse_enhances |

{
di_package_dependency_type_replaces = 1,
di_package_dependency_type_provides,
di_package_dependency_type_depends,
di_package_dependency_type_pre_depends,
di_package_dependency_type_recommends,
di_package_dependency_type_suggests,
di_package_dependency_type_conflicts,
di_package_dependency_type_enhances,
di_package_dependency_type_reverse_provides = 0x100,
di_package_dependency_type_reverse_enhances,
};
di_package_dependency_type_pre_depends
@ di_package_dependency_type_pre_depends
Definition: package.h:129
di_package_dependency_type_reverse_enhances
@ di_package_dependency_type_reverse_enhances
Definition: package.h:135
di_package_dependency_type_replaces
@ di_package_dependency_type_replaces
Definition: package.h:126
di_package_dependency_type_conflicts
@ di_package_dependency_type_conflicts
Definition: package.h:132
di_package_dependency_type_provides
@ di_package_dependency_type_provides
Definition: package.h:127
di_package_dependency_type_depends
@ di_package_dependency_type_depends
Definition: package.h:128
di_package_dependency_type_enhances
@ di_package_dependency_type_enhances
Definition: package.h:133
di_package_dependency_type_suggests
@ di_package_dependency_type_suggests
Definition: package.h:131
di_package_dependency_type_recommends
@ di_package_dependency_type_recommends
Definition: package.h:130
di_package_dependency_type_reverse_provides
@ di_package_dependency_type_reverse_provides
Definition: package.h:134

## di_package_priority

enum di_package_priority

Priority field

{
di_package_priority_extra = 1,
di_package_priority_optional,
di_package_priority_standard,
di_package_priority_important,
di_package_priority_required,
};

## di_package_status

enum di_package_status

Status field, third part

{
di_package_status_undefined = 0,
di_package_status_not_installed,
di_package_status_unpacked,
di_package_status_installed,
di_package_status_half_configured,
di_package_status_config_files,
};

## di_package_status_want

enum di_package_status_want

Status field, first part

{
di_package_status_want_unknown = 0,
di_package_status_want_install,
di_package_status_want_hold,
di_package_status_want_deinstall,
di_package_status_want_purge,
};

## di_package_type

enum di_package_type

type of package

Enumerator
di_package_type_non_existent | Non existing package
di_package_type_virtual_package | Virtual package
di_package_type_real_package | Real package

{
di_package_type_non_existent = 0,
di_package_type_virtual_package,
di_package_type_real_package,
};
di_package_type_virtual_package
@ di_package_type_virtual_package
Definition: package.h:88
di_package_type_real_package
@ di_package_type_real_package
Definition: package.h:89
di_package_type_non_existent
@ di_package_type_non_existent
Definition: package.h:87

## Variable Documentation

## internal_di_package_destroy_func

di_destroy_notify internal_di_package_destroy_func

Destroys a di_package struct