libalpm
Arch Linux Package Manager Library
Data Fields
pkg_operations Struct Reference

Package operations struct. More...

#include <package.h>

Collaboration diagram for pkg_operations:
Collaboration graph
[legend]

Data Fields

const char *(* get_desc )(alpm_pkg_t *)
const char *(* get_url )(alpm_pkg_t *)
alpm_time_t(* get_builddate )(alpm_pkg_t *)
alpm_time_t(* get_installdate )(alpm_pkg_t *)
const char *(* get_packager )(alpm_pkg_t *)
const char *(* get_arch )(alpm_pkg_t *)
off_t(* get_isize )(alpm_pkg_t *)
alpm_pkgreason_t(* get_reason )(alpm_pkg_t *)
int(* has_scriptlet )(alpm_pkg_t *)
alpm_list_t *(* get_licenses )(alpm_pkg_t *)
alpm_list_t *(* get_groups )(alpm_pkg_t *)
alpm_list_t *(* get_depends )(alpm_pkg_t *)
alpm_list_t *(* get_optdepends )(alpm_pkg_t *)
alpm_list_t *(* get_conflicts )(alpm_pkg_t *)
alpm_list_t *(* get_provides )(alpm_pkg_t *)
alpm_list_t *(* get_replaces )(alpm_pkg_t *)
alpm_filelist_t *(* get_files )(alpm_pkg_t *)
alpm_list_t *(* get_backup )(alpm_pkg_t *)
void *(* changelog_open )(alpm_pkg_t *)
size_t(* changelog_read )(void *, size_t, const alpm_pkg_t *, void *)
int(* changelog_close )(const alpm_pkg_t *, void *)
int(* force_load )(alpm_pkg_t *)

Detailed Description

Package operations struct.

This struct contains function pointers to all methods used to access data in a package to allow for things such as lazy package intialization (such as used by the file backend). Each backend is free to define a stuct containing pointers to a specific implementation of these methods. Some backends may find using the defined default_pkg_ops struct to work just fine for their needs.

Definition at line 41 of file lib/libalpm/package.h.


Field Documentation

Definition at line 64 of file lib/libalpm/package.h.

Referenced by alpm_pkg_changelog_close().

Definition at line 62 of file lib/libalpm/package.h.

Referenced by alpm_pkg_changelog_open().

size_t(* pkg_operations::changelog_read)(void *, size_t, const alpm_pkg_t *, void *)

Definition at line 63 of file lib/libalpm/package.h.

Referenced by alpm_pkg_changelog_read().

Definition at line 66 of file lib/libalpm/package.h.

Referenced by _alpm_pkg_dup().

Definition at line 47 of file lib/libalpm/package.h.

Referenced by alpm_pkg_get_arch().

Definition at line 60 of file lib/libalpm/package.h.

Referenced by alpm_pkg_get_backup().

Definition at line 44 of file lib/libalpm/package.h.

Referenced by alpm_pkg_get_builddate().

Definition at line 56 of file lib/libalpm/package.h.

Referenced by alpm_pkg_get_conflicts().

Definition at line 54 of file lib/libalpm/package.h.

Referenced by alpm_pkg_get_depends().

Definition at line 42 of file lib/libalpm/package.h.

Referenced by alpm_pkg_get_desc().

Definition at line 59 of file lib/libalpm/package.h.

Referenced by alpm_pkg_get_files().

Definition at line 53 of file lib/libalpm/package.h.

Referenced by alpm_pkg_get_groups().

Definition at line 45 of file lib/libalpm/package.h.

Referenced by alpm_pkg_get_installdate().

Definition at line 48 of file lib/libalpm/package.h.

Referenced by alpm_pkg_get_isize().

Definition at line 52 of file lib/libalpm/package.h.

Referenced by alpm_pkg_get_licenses().

Definition at line 55 of file lib/libalpm/package.h.

Referenced by alpm_pkg_get_optdepends().

Definition at line 46 of file lib/libalpm/package.h.

Referenced by alpm_pkg_get_packager().

Definition at line 57 of file lib/libalpm/package.h.

Referenced by alpm_pkg_get_provides().

Definition at line 49 of file lib/libalpm/package.h.

Referenced by alpm_pkg_get_reason().

Definition at line 58 of file lib/libalpm/package.h.

Referenced by alpm_pkg_get_replaces().

Definition at line 43 of file lib/libalpm/package.h.

Referenced by alpm_pkg_get_url().

Definition at line 50 of file lib/libalpm/package.h.

Referenced by alpm_pkg_has_scriptlet().


The documentation for this struct was generated from the following file: