Esempio n. 1
0
/*
 * Calling sequence is:
 *  trig_activate_start(triggername);
 *  dtki->activate_awaiter(awaiting_package); } zero or more times
 *  dtki->activate_awaiter(NULL);             }  in any order
 *  dtki->activate_done();
 */
static void
trig_activate_start(const char *name)
{
	dtki = trig_classify_byname(name);
	trig_activating_name = nfstrsave(name);
	dtki->activate_start();
}
Esempio n. 2
0
static void
trig_cicb_interest_change(const char *trig, struct pkginfo *pkg, int signum,
                          enum trig_options opts)
{
	const struct trigkindinfo *tki = trig_classify_byname(trig);

	assert(filetriggers_edited >= 0);
	tki->interest_change(trig, pkg, signum, opts);
}
Esempio n. 3
0
static void
trig_cicb_interest_change(const char *trig, struct pkginfo *pkg,
                          struct pkgbin *pkgbin, int signum,
                          enum trig_options opts)
{
	const struct trigkindinfo *tki = trig_classify_byname(trig);

	if (filetriggers_edited < 0)
		internerr("trigger control file for package %s not read",
		          pkgbin_name(pkg, pkgbin, pnaw_always));

	tki->interest_change(trig, pkg, pkgbin, signum, opts);
}