Skip to content

Commit 48079ae

Browse files
AnkaAnka
authored andcommitted
1 parent 6af4702 commit 48079ae

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

Source/XP2P-iOS/Classes/AppWrapper.h

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ extern "C" {
2121

2222
#define MAX_SIZE_OF_PARAMS 3000
2323

24-
static const char * VIDEOSDKVERSION = "2.4.x+git.6d3b76c8";
24+
static const char * VIDEOSDKVERSION = "2.4.x+git.57d42e55";
2525

2626
typedef enum
2727
{
@@ -95,6 +95,13 @@ typedef struct data_report_t {
9595
int errorcode;
9696
} data_report_t;
9797

98+
typedef struct app_config_t {
99+
const char *server;
100+
const char *ip;
101+
uint64_t port;
102+
XP2PProtocolType type;
103+
} app_config_t;
104+
98105
typedef const char *(*msg_handle_t)(const char *id, XP2PType type, const char *msg);
99106
typedef void (*av_recv_handle_t)(const char *id, uint8_t *recv_buf, size_t recv_len);
100107
typedef char *(*device_data_recv_handle_t)(const char *id, uint8_t *recv_buf, size_t recv_len);
@@ -165,7 +172,7 @@ IPCLIBRARY_API int stopAvRecvService(const char *id, void *req);
165172
* @param sensor_timeout: 探测失败切换tcp的超时时间
166173
* @return 0 为成功
167174
*/
168-
IPCLIBRARY_API int startService(const char *id, const char *product_id, const char *device_name, XP2PProtocolType protocol_type);
175+
IPCLIBRARY_API int startService(const char *id, const char *product_id, const char *device_name, app_config_t config);
169176

170177
/**
171178
* @brief 初始化xp2p服务

Source/XP2P-iOS/libenet.a

1.18 KB
Binary file not shown.

0 commit comments

Comments
 (0)