⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 event.h

📁 minix3的源代码
💻 H
字号:
/*inet/generic/event.hCreated:	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_Hstruct event;typedef union ev_arg{	int ev_int;	void *ev_ptr;} ev_arg_t;typedef void (*ev_func_t) ARGS(( struct event *ev, union ev_arg 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 $ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -