fifo.h

来自「linux下的fusion程序,可以和directfb配合使用」· C头文件 代码 · 共 45 行

H
45
字号
/* *	Fusion Kernel Module * *	(c) Copyright 2002-2003  Convergence GmbH * *      Written by Denis Oliver Kropp <dok@directfb.org> * * *	This program is free software; you can redistribute it and/or *	modify it under the terms of the GNU General Public License *	as published by the Free Software Foundation; either version *	2 of the License, or (at your option) any later version. */#ifndef __FUSION__FIFO_H__#define __FUSION__FIFO_H__#include "types.h"#include "list.h"typedef struct {     FusionLink *first;     FusionLink *last;     int         count;} FusionFifo;void        fusion_fifo_put   (FusionFifo *fifo,                               FusionLink *link);FusionLink *fusion_fifo_get   (FusionFifo *fifo);int         fusion_fifo_count (FusionFifo *fifo);static inline voidfusion_fifo_reset( FusionFifo *fifo ){     fifo->count = 0;     fifo->first = fifo->last = NULL;}#endif /* __FUSION__LIST_H__ */

⌨️ 快捷键说明

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