freebsd5/sys/i386/apm/apm.c
/* APM driver calls some functions automatically */
APM driver calls some functions automatically
APM driver calls some functions automatically
static void
apm_execute_hook(struct apmhook *list)
{
	struct apmhook *p;
	for (p = list; p != NULL; p = p->ah_next) {
		APM_DPRINT("Execute APM hook \"%s.\"\n", p->ah_name);
		if ((*(p->ah_fun))(p->ah_arg))
			printf("Warning: APM hook \"%s\" failed", p->ah_name);
	}
}
static void apm_execute_hook ( struct apmhook * list ) { struct apmhook * p ; for ( p = list ; p != NULL ; p = p -> ah_next ) { APM_DPRINT ( " \" \" \n " , p -> ah_name ) ; if ( ( * ( p -> ah_fun ) ) ( p -> ah_arg ) ) printf ( " \" \" " , p -> ah_name ) ; } }
APM driver calls some functions automatically
APM driver calls some functions automatically