完善c sdk对象描述元信息,防止隐式指针转换错误

void* 类型指针很容易存在隐式转换错误,用户无法察觉
This commit is contained in:
xiongziliang
2023-02-26 21:45:14 +08:00
parent 8f108395a5
commit dc8508c58f
29 changed files with 93 additions and 92 deletions

View File

@@ -48,7 +48,7 @@ API_EXPORT void API_CALL mk_http_downloader_start2(mk_http_downloader ctx, const
///////////////////////////////////////////HttpRequester/////////////////////////////////////////////
API_EXPORT mk_http_requester API_CALL mk_http_requester_create(){
HttpRequester::Ptr *ret = new HttpRequester::Ptr(new HttpRequester);
return ret;
return (mk_http_requester)ret;
}
API_EXPORT void API_CALL mk_http_requester_clear(mk_http_requester ctx){