Impl DisableReceiveMsg

This commit is contained in:
Changhua committed 2022-08-20 15:15:04 +08:00
1 parent bdcf71cc37
commit e2e148c73f
14 files changed
+93 -45

No files matched your search

+3 -2
View File
@@ -6,7 +6,7 @@
namespace py = pybind11;
int WxSetTextMsgCbPy(const std::function<int(WxMessage_t)> &onMsg) { return WxSetTextMsgCb(onMsg); }
int WxEnableRecvMsgPy(const std::function<int(WxMessage_t)> &onMsg) { return WxEnableRecvMsg(onMsg); }
PYBIND11_MODULE(wcferry, m)
{
@@ -32,7 +32,8 @@ PYBIND11_MODULE(wcferry, m)
.def_readonly("wxGender", &WxContact::wxGender);
m.def("WxInitSDK", &WxInitSDK);
m.def("WxSetTextMsgCb", &WxSetTextMsgCbPy);
m.def("WxEnableRecvMsg", &WxEnableRecvMsgPy);
m.def("WxDisableRecvMsg", &WxDisableRecvMsg);
m.def("WxSendTextMsg", &WxSendTextMsg);
m.def("WxSendImageMsg", &WxSendImageMsg);
m.def("WxGetContacts", &WxGetContacts, py::return_value_policy::reference);