mpeg2t_thread_ipc.h

来自「网络MPEG4IP流媒体开发源代码」· C头文件 代码 · 共 52 行

H
52
字号
#ifndef __MPEG2T_THREAD_IPC_H__#define __MPEG2T_THREAD_IPC_H__ 1#define MPEG2T_MSG_QUIT 1#define MPEG2T_MSG_START 2#define MPEG2T_MSG_SEND_AND_GET 3#define MPEG2T_MSG_PERFORM_CALLBACK 4#define MPEG2T_MSG_SET_RTP_CALLBACK 5#define MPEG2T_MSG_SEND_RTCP 6typedef uint32_t mpeg2t_msg_type_t;typedef int mpeg2t_msg_resp_t;#if 0typedef struct mpeg2t_msg_send_and_get_t {  char *buffer;  uint32_t buflen;} mpeg2t_msg_send_and_get_t;typedef struct mpeg2t_wrap_send_and_get_t {  mpeg2t_msg_type_t msg;  mpeg2t_msg_send_and_get_t body;} mpeg2t_wrap_send_and_get_t;typedef struct mpeg2t_msg_callback_t {  mpeg2t_thread_callback_f func;  void *ud;} mpeg2t_msg_callback_t;typedef struct mpeg2t_wrap_msg_callback_t {  mpeg2t_msg_type_t msg;  mpeg2t_msg_callback_t body;} mpeg2t_wrap_msg_callback_t;typedef struct mpeg2t_msg_rtp_callback_t {  rtp_callback_f callback_func;  mpeg2t_thread_callback_f periodic_func;  void *ud;  int interleave;} mpeg2t_msg_rtp_callback_t;typedef struct mpeg2t_wrap_msg_rtp_callback_t {  mpeg2t_msg_type_t msg;  mpeg2t_msg_rtp_callback_t body;} mpeg2t_wrap_msg_rtp_callback_t;#endif#endif

⌨️ 快捷键说明

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