Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Anka authored and Anka committed Jan 15, 2025
1 parent 6af4702 commit 48079ae
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Source/XP2P-iOS/Classes/AppWrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ extern "C" {

#define MAX_SIZE_OF_PARAMS 3000

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

typedef enum
{
Expand Down Expand Up @@ -95,6 +95,13 @@ typedef struct data_report_t {
int errorcode;
} data_report_t;

typedef struct app_config_t {
const char *server;
const char *ip;
uint64_t port;
XP2PProtocolType type;
} app_config_t;

typedef const char *(*msg_handle_t)(const char *id, XP2PType type, const char *msg);
typedef void (*av_recv_handle_t)(const char *id, uint8_t *recv_buf, size_t recv_len);
typedef char *(*device_data_recv_handle_t)(const char *id, uint8_t *recv_buf, size_t recv_len);
Expand Down Expand Up @@ -165,7 +172,7 @@ IPCLIBRARY_API int stopAvRecvService(const char *id, void *req);
* @param sensor_timeout: 探测失败切换tcp的超时时间
* @return 0 为成功
*/
IPCLIBRARY_API int startService(const char *id, const char *product_id, const char *device_name, XP2PProtocolType protocol_type);
IPCLIBRARY_API int startService(const char *id, const char *product_id, const char *device_name, app_config_t config);

/**
* @brief 初始化xp2p服务
Expand Down
Binary file modified Source/XP2P-iOS/libenet.a
Binary file not shown.

0 comments on commit 48079ae

Please sign in to comment.