38 lines
794 B
C
38 lines
794 B
C
#ifndef __TSOIP_H__
|
|
#define __TSOIP_H__
|
|
|
|
#include "type.h"
|
|
|
|
|
|
|
|
// 支持的TSOIP server数量
|
|
#define TSOIP_FD_TOTAL_NUM 2
|
|
#define TS_OUTPUT_STATUS_OK 0
|
|
#define TS_OUTPUT_STATUS_ERR 1
|
|
|
|
typedef enum _tsoip_enum_index_{
|
|
TSOIP_1 = 0,
|
|
TSOIP_2 = 1,
|
|
}EN_TSOIP;
|
|
|
|
|
|
typedef struct _tsoip_instance_{
|
|
int index;
|
|
int enable_multicast;
|
|
int udp_socket_fd;
|
|
char ip[20];
|
|
char multicast_ip[20];
|
|
int port;
|
|
|
|
BOOL b_start; // TRUE:start
|
|
|
|
}TSOIP_INSTANCE;
|
|
#include "lcd_task.h"
|
|
extern void inset_tsoip_instance(TSOIP_INSTANCE *p_tsoip_instance, S_TSOIP_CONFIG_PARA *p_tsoip_cfg_param);
|
|
extern void* tsoip_thr(void * args);
|
|
extern void tsoip_init(void);
|
|
extern void change_tsoip_param_flg(int flg);
|
|
|
|
|
|
#endif
|