dpkg 1.21.11
Data Structures | Functions
Package linked lists
Collaboration diagram for Package linked lists:

Data Structures

struct  pkg_list
 

Functions

struct pkg_listpkg_list_new (struct pkginfo *pkg, struct pkg_list *next)
 Create a new package list node. More...
 
void pkg_list_free (struct pkg_list *head)
 Free all nodes of a package list. More...
 
void pkg_list_prepend (struct pkg_list **head, struct pkginfo *pkg)
 Prepend a package list node to a package list. More...
 

Detailed Description

Function Documentation

◆ pkg_list_free()

void pkg_list_free ( struct pkg_list head)

Free all nodes of a package list.

Parameters
headThe head of the list to free.

References head, and trigfileint::next.

Referenced by trig_awaited_pend_free().

Here is the caller graph for this function:

◆ pkg_list_new()

struct pkg_list * pkg_list_new ( struct pkginfo pkg,
struct pkg_list next 
)

Create a new package list node.

Parameters
pkgThe pkginfo to assign to the node.
nextThe next package list node.
Returns
The new package list node.

References m_malloc(), pkg_list::next, and pkg_list::pkg.

Referenced by pkg_list_prepend().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pkg_list_prepend()

void pkg_list_prepend ( struct pkg_list **  head,
struct pkginfo pkg 
)

Prepend a package list node to a package list.

Parameters
headThe head of the list to prepend to.
pkgThe pkginfo to prepend to the list.

References head, pkg_list::pkg, and pkg_list_new().

Here is the call graph for this function: