|
Tange Cloud for Device
Rev.362 |
#include "basedef.h"结构体 | |
| struct | WxUser |
| Wx VoIP 用户 更多... | |
类型定义 | |
| typedef int(* | TGWXVOIPCALLBACK) (int type, void *data, int len) |
| 微信voip内部通知回调. | |
函数 | |
| TG_PUBLIC int | wxInit (void) |
| 注册微信Voip模块. | |
| TG_PUBLIC int | wxGetUsers (struct WxUser **ppWxUser, int *pNUsers) |
| 获取呼叫对象列表. | |
| TG_PUBLIC void | wxSetCallback (TGWXVOIPCALLBACK cb) |
| 设置回调. | |
| TG_PUBLIC int | wxCall2 (const char *openid, int timeout) |
| 呼叫小程序 | |
| TG_PUBLIC int | wxCall (const char *openid) |
| TG_PUBLIC int | wxCancelCall () |
| 取消小程序外呼或挂断通话 | |
| TG_PUBLIC void | wxUninit (void) |
| 反初始化wxvoip模块 | |
| TG_PUBLIC const char * | wxGetErrStr (int err) |
变量 | |
| TG_PUBLIC int | _wx_debug |
| typedef int(* TGWXVOIPCALLBACK) (int type, void *data, int len) |
| TG_PUBLIC int wxInit | ( | void | ) |
注册微信Voip模块.
在TciStart()前调用
| TG_PUBLIC int wxGetUsers | ( | struct WxUser ** | ppWxUser, |
| int * | pNUsers ) |
获取呼叫对象列表.
| ppWxUser | 成功时*ppWxUser中返回用户数组指针,调用者要用 free() 释放 |
| pNUsers | 成功时*pNUsers返回数组大小 |
| TG_PUBLIC void wxSetCallback | ( | TGWXVOIPCALLBACK | cb | ) |
设置回调.
| TG_PUBLIC int wxCall2 | ( | const char * | openid, |
| int | timeout ) |
呼叫小程序
| openid | 小程序用户标识。 |
| openid | 小程序用户标识 |
| timeout | 呼叫超时设置,单位:秒. 取值15~60 |