dpkg 1.22.7-3-g89f48
|
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 } |
#define TRIGHOOKS_DEFINE_NAMENODE_ACCESSORS |
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) |
enum trig_options |
void trig_awaited_pend_enqueue | ( | struct pkginfo * | pend | ) |
References pkg_list::next, pkg_list::pkg, and pkg_list_prepend().
Referenced by f_trigaw().
void trig_awaited_pend_foreach | ( | trig_awaited_pend_foreach_func * | func | ) |
References pkg_list::next, pkg_list::pkg, and pkginfo::trigpend_head.
Referenced by trig_fixup_awaiters().
void trig_awaited_pend_free | ( | void | ) |
References pkg_list_free().
Referenced by trig_fixup_awaiters().
void trig_cicb_interest_add | ( | const char * | trig, |
struct pkginfo * | pkg, | ||
struct pkgbin * | pkgbin, | ||
enum trig_options | to | ||
) |
void trig_cicb_interest_delete | ( | 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 | ||
) |
References trigkindinfo::activate_awaiter, trigkindinfo::activate_done, and TRIG_NOAWAIT.
Referenced by process_archive(), and trig_activate_packageprocessing().
void trig_clear_awaiters | ( | struct pkginfo * | notpend | ) |
References trigaw::aw, pkginfo::head, internerr, LIST_UNLINK_PART, modstatdb_note(), pkginfo::othertrigaw_head, pkg_name(), pkg_set_status(), PKG_STAT_INSTALLED, PKG_STAT_TRIGGERSAWAITED, PKG_STAT_TRIGGERSPENDING, pnaw_always, trigaw::samepend_next, pkginfo::status, pkginfo::trigaw, and pkginfo::trigpend_head.
Referenced by modstatdb_note(), trig_fixup_awaiters(), and trigproc().
void trig_file_activate | ( | struct fsys_namenode * | trig, |
struct pkginfo * | aw | ||
) |
References trig_hooks::namenode_interested, trig_hooks::namenode_name, trigfileint::options, trigfileint::pkg, trigfileint::samefile_next, and TRIG_NOAWAIT.
Referenced by tarobject(), trig_file_activate_byname(), and trig_path_activate().
void trig_file_activate_byname | ( | const char * | trig, |
struct pkginfo * | aw | ||
) |
References trig_hooks::namenode_find, and trig_file_activate().
void trig_file_interests_ensure | ( | void | ) |
References _, cu_closestream(), ehflag_normaltidy, fgets_checked(), pkginfo::installed, ohshit(), ohshite(), pkg_spec_parse_pkg(), pop_cleanup(), push_cleanup(), dpkg_error::str, and dpkg_error::type.
Referenced by process_archive(), and trig_incorporate().
void trig_file_interests_save | ( | void | ) |
References dir_sync_path().
Referenced by process_archive().
void trig_fixup_awaiters | ( | enum modstatdb_rw | cstatus | ) |
References msdbrw_write, trig_awaited_pend_foreach(), trig_awaited_pend_free(), and trig_clear_awaiters().
Referenced by modstatdb_open().
void trig_incorporate | ( | enum modstatdb_rw | cstatus | ) |
References _, dpkg_db_get_path(), internerr, msdbrw_write, ohshite(), TDUF_NO_LOCK_OK, TDUF_WRITE, TDUF_WRITE_IF_ENOENT, TDUS_ERROR_EMPTY_DEFERRED, TDUS_ERROR_NO_DEFERRED, TDUS_ERROR_NO_DIR, TDUS_NO_DEFERRED, TDUS_OK, trig_hooks::transitional_activate, trig_file_interests_ensure(), trigdef_parse(), trigdef_process_done(), trigdef_set_methods(), trigdef_update_flags, trigdef_update_start(), TRIGGERSDIR, and TRIGGERSFILEFILE.
Referenced by modstatdb_open(), and post_postinst_tasks().
const char * trig_name_is_illegal | ( | const char * | p | ) |
References _.
Referenced by f_trigpend(), and validate_trigname().
References trigaw::aw, pkginfo::head, LIST_LINK_TAIL_PART, trigaw::next, nfmalloc(), pkginfo::othertrigaw_head, trigaw::pend, trigaw::sameaw, trigaw::samepend_next, and pkginfo::trigaw.
Referenced by f_trigaw().
bool trig_note_pend | ( | struct pkginfo * | pend, |
const char * | trig | ||
) |
References pkginfo::head, pkg_set_status(), PKG_STAT_TRIGGERSAWAITED, PKG_STAT_TRIGGERSPENDING, trig_note_pend_core(), and pkginfo::trigaw.
bool trig_note_pend_core | ( | struct pkginfo * | pend, |
const char * | trig | ||
) |
References trigpend::name, trigpend::next, nfmalloc(), and pkginfo::trigpend_head.
Referenced by f_trigpend(), and trig_note_pend().
void trig_override_hooks | ( | const struct trig_hooks * | hooks | ) |
void trig_parse_ci | ( | const char * | file, |
trig_parse_cicb * | interest, | ||
trig_parse_cicb * | activate, | ||
struct pkginfo * | pkg, | ||
struct pkgbin * | pkgbin | ||
) |
References _, cu_closestream(), ehflag_normaltidy, fgets_checked(), MAXTRIGDIRECTIVE, ohshit(), ohshite(), pop_cleanup(), push_cleanup(), TRIG_AWAIT, and TRIG_NOAWAIT.
Referenced by process_archive(), and trig_activate_packageprocessing().
void trig_path_activate | ( | struct fsys_namenode * | trig, |
struct pkginfo * | aw | ||
) |
References trig_hooks::namenode_name, and trig_file_activate().