convert sender, arg, action, etc. to ev_sender, ev_arg, ev_action, etc.

This commit is contained in:
Michael Graff
2000-04-17 19:22:44 +00:00
parent 0d89e0d55c
commit e44487bfc2
46 changed files with 426 additions and 418 deletions

View File

@@ -57,7 +57,7 @@ static isc_timermgr_t * timer_manager;
static void
t1_shutdown(isc_task_t *task, isc_event_t *event) {
t_info *info = event->arg;
t_info *info = event->ev_arg;
printf("task %s (%p) t1_shutdown\n", info->name, task);
isc_task_detach(&info->task);
@@ -66,7 +66,7 @@ t1_shutdown(isc_task_t *task, isc_event_t *event) {
static void
t2_shutdown(isc_task_t *task, isc_event_t *event) {
t_info *info = event->arg;
t_info *info = event->ev_arg;
printf("task %s (%p) t2_shutdown\n", info->name, task);
info->exiting = ISC_TRUE;
@@ -75,10 +75,10 @@ t2_shutdown(isc_task_t *task, isc_event_t *event) {
static void
shutdown_action(isc_task_t *task, isc_event_t *event) {
t_info *info = event->arg;
t_info *info = event->ev_arg;
isc_event_t *nevent;
INSIST(event->type == ISC_TASKEVENT_SHUTDOWN);
INSIST(event->ev_type == ISC_TASKEVENT_SHUTDOWN);
printf("task %s (%p) shutdown\n", info->name, task);
if (strcmp(info->name, "0") == 0) {
@@ -102,10 +102,10 @@ foo_event(isc_task_t *task, isc_event_t *event) {
static void
tick(isc_task_t *task, isc_event_t *event)
{
t_info *info = event->arg;
t_info *info = event->ev_arg;
isc_event_t *nevent;
INSIST(event->type == ISC_TIMEREVENT_TICK);
INSIST(event->ev_type == ISC_TIMEREVENT_TICK);
printf("task %s (%p) tick\n", info->name, task);