fifo.h
资源名称:cgi-web.rar [点击查看]
上传用户:sxdewei
上传日期:2014-06-02
资源大小:67k
文件大小:1k
源码类别:
嵌入式Linux
开发平台:
Unix_Linux
- /*config_phase.h*/
- #ifndef _FIFO_H
- #define _FIFO_H
- #define CGI_TO_MAIN_FIFO "/tmp/cgi_to_main"
- #define MAX_FILE_NAME_LEN 30
- #define MAX_CMD_LEN 20
- #define FIFO_PAGE_SIZE 4096
- #define READ_FIFO_DELAY_TIME 100
- #define VIDEO_L 100
- #define VIDEO_R 101
- #define VIDEO_U 102
- #define VIDEO_D 103
- #define VIDEO_C 104
- #define VIDEO_L_R 105
- #define VIDEO_U_D 106
- #define SET_DEFAULT_CFG 107
- int open_read_fifo();
- void close_read_fifo();
- int read_fifo(int r_fd);
- int open_write_fifo();
- void close_write_fifo(int w_fd);
- int notify_config(int w_fd);
- int send_cmd(int w_fd, int cmd);
- #endif