ioc_cmd.h

来自「ActiveX Setup Server Version 2.0.5 Chips」· C头文件 代码 · 共 36 行

H
36
字号
#ifndef IOC_CMD_H
#define IOC_CMD_H

#include <linux/ioctl.h> /* needed for the _IOW etc stuff used later */

/*
 * ioctl definitions
 */

/* use 'k' as magic number */
#define MJPEG_IOC_MAGIC  'k'

#define MJPEG_IOCRESET    _IO(MJPEG_IOC_MAGIC, 0)
#define MJPEG_IOCSTART    _IO(MJPEG_IOC_MAGIC, 1)
#define MJPEG_IOCSTOP     _IO(MJPEG_IOC_MAGIC, 2)

/*
 *  * S means "Set" through a ptr,
 *  * T means "Tell" directly with the argument value
 *  * G means "Get": reply by setting through a pointer
 *  * Q means "Query": response is on the return value
 *  * X means "eXchange": G and S atomically
 *  * H means "sHift": T and Q atomically
 *  */
#define MJPEG_IOCQFRAMEAVAIL	_IO(MJPEG_IOC_MAGIC, 3)
#define MJPEG_IOCQFRAMESIZE	_IO(MJPEG_IOC_MAGIC, 4)
#define MJPEG_IOCTALPHA		_IO(MJPEG_IOC_MAGIC, 5)
#define MJPEG_IOCTRESOL		_IO(MJPEG_IOC_MAGIC, 6)
/* ... more to come */
#define MJPEG_IOCHARDRESET     _IO(MJPEG_IOC_MAGIC, 15) /* debugging tool */

#define MJPEG_IOC_MAXNR 15

#endif

⌨️ 快捷键说明

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