Cristiano Giuffrida 50b7f13f9f Add live update-friendly annotations.
Change-Id: I7d7d79893836a20799ca548a350f3288e92581f0
2015-09-17 13:25:38 +00:00

42 lines
765 B
C

/*
inet/generic/event.h
Created: April 1995 by Philip Homburg <philip@f-mnx.phicoh.com>
Header file for an event mechanism.
Copyright 1995 Philip Homburg
*/
#ifndef INET__GENERIC__EVENT_H
#define INET__GENERIC__EVENT_H
struct event;
typedef struct ev_arg
{
void *ev_ptr;
} ev_arg_t;
typedef void (*ev_func_t) ARGS(( struct event *ev, ev_arg_t eva ));
typedef struct event
{
ev_func_t ev_func;
ev_arg_t ev_arg;
struct event *ev_next;
} event_t;
extern event_t *ev_head;
void ev_init ARGS(( event_t *ev ));
void ev_enqueue ARGS(( event_t *ev, ev_func_t func, ev_arg_t ev_arg ));
void ev_process ARGS(( void ));
int ev_in_queue ARGS(( event_t *ev ));
#endif /* INET__GENERIC__EVENT_H */
/*
* $PchId: event.h,v 1.5 2004/08/03 16:23:49 philip Exp $
*/