dpkg 1.21.11
Data Structures | Macros | Typedefs | Enumerations | Functions
triglib.h File Reference

(f7e9dc180)

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

Go to the source code of this file.

Data Structures

struct  trigfileint
 
struct  trig_hooks
 The first two hooks are normally NULL. More...
 

Macros

#define TRIGHOOKS_DEFINE_NAMENODE_ACCESSORS
 

Typedefs

typedef void trig_awaited_pend_foreach_func(struct pkginfo *pkg)
 
typedef void trig_parse_cicb(const char *trig, struct pkginfo *pkg, struct pkgbin *pkgbin, enum trig_options to)
 

Enumerations

enum  trig_options { TRIG_AWAIT , TRIG_NOAWAIT }
 

Functions

const char * trig_name_is_illegal (const char *p)
 
void trig_override_hooks (const struct trig_hooks *hooks)
 
void trig_file_activate_byname (const char *trig, struct pkginfo *aw)
 
void trig_file_activate (struct fsys_namenode *trig, struct pkginfo *aw)
 
void trig_path_activate (struct fsys_namenode *trig, struct pkginfo *aw)
 
bool trig_note_pend_core (struct pkginfo *pend, const char *trig)
 
bool trig_note_pend (struct pkginfo *pend, const char *trig)
 
bool trig_note_aw (struct pkginfo *pend, struct pkginfo *aw)
 
void trig_clear_awaiters (struct pkginfo *notpend)
 
void trig_awaited_pend_enqueue (struct pkginfo *pend)
 
void trig_awaited_pend_foreach (trig_awaited_pend_foreach_func *func)
 
void trig_awaited_pend_free (void)
 
void trig_fixup_awaiters (enum modstatdb_rw cstatus)
 
void trig_file_interests_ensure (void)
 
void trig_file_interests_save (void)
 
void trig_cicb_interest_delete (const char *trig, struct pkginfo *pkg, struct pkgbin *pkgbin, enum trig_options to)
 
void trig_cicb_interest_add (const char *trig, struct pkginfo *pkg, struct pkgbin *pkgbin, enum trig_options to)
 
void trig_cicb_statuschange_activate (const char *trig, struct pkginfo *pkg, struct pkgbin *pkgbin, enum trig_options to)
 
void trig_parse_ci (const char *file, trig_parse_cicb *interest, trig_parse_cicb *activate, struct pkginfo *pkg, struct pkgbin *pkgbin)
 
void trig_incorporate (enum modstatdb_rw cstatus)