dpkg 1.22.7-3-g89f48
Loading...
Searching...
No Matches
Data Structures | Macros | Functions
pkg-queue.h File Reference

(07413972a)

#include <dpkg/macros.h>
#include <dpkg/pkg-list.h>
Include dependency graph for pkg-queue.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  pkg_queue
 

Macros

#define PKG_QUEUE_INIT    { .head = NULL, .tail = NULL, .length = 0 }
 Constant initializer for a package queue.
 
#define PKG_QUEUE_OBJECT    (struct pkg_queue)PKG_QUEUE_INIT
 Compound literal for a package queue.
 

Functions

void pkg_queue_init (struct pkg_queue *queue)
 Initialize a package queue.
 
void pkg_queue_destroy (struct pkg_queue *queue)
 Destroy a package queue.
 
int pkg_queue_is_empty (struct pkg_queue *queue)
 Check if a package queue is empty.
 
struct pkg_listpkg_queue_push (struct pkg_queue *queue, struct pkginfo *pkg)
 Push a new node containing pkginfo to the tail of the queue.
 
struct pkginfopkg_queue_pop (struct pkg_queue *queue)
 Pop a node containing pkginfo from the head of the queue.