fbmodedb.h

来自「Linux游戏编程源码」· C头文件 代码 · 共 35 行

H
35
字号
/* This file is released into the public domain   with no warranty whatsoever. Enjoy. */#ifndef FBMODEDB_H#define FBMODEDB_H/* Structure for /etc/fb.modes modelines. The parser returns   a linked list of these structures. */typedef struct FbModeline {	char *name;	int xres, yres, vxres, vyres;	int depth;	int dotclock, left, right, lower, upper;	int hslen, vslen;	int hsync, vsync, csync, extsync, doublescan, laced;	struct FbModeline *next;} FbModeline;FbModeline *FB_ParseModeDB(char *filename);/* Reads the given file (usually /etc/fb.modes) and returns a   linked list of FbModeline structures. Returns NULL on failure.   Minor syntax errors are not considered failure; the parser   tries to deal with corrupt mode definitions in a sane way. */void FB_FreeModeDB(FbModeline *modelist);/* Frees a linked list of FbModeline structures. */void FB_PrintModeDB(FbModeline *modelist);/* Prints a linked list of FbModeline structures to stdout.   Intended primarily for debugging. */#endif

⌨️ 快捷键说明

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