pipe.h

来自「串口代理」· C头文件 代码 · 共 28 行

H
28
字号
#ifndef PIPE_H#define PIPE_H#include "sio.h"#include "sock.h"#include "thread.h"typedef struct{	/* Serial port */	sio_s sio;	/* Socket */	tcpsock_s sock;	/* Mutex lock */	thr_mutex_t *mutex;		/* Time out in seconds */	int timeout;} pipe_s;int pipe_init(pipe_s *pipe, int sock_port);void pipe_cleanup(pipe_s *pipe);void pipe_destroy(void *data);#endif	/* PIPE_H */

⌨️ 快捷键说明

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