Impl accept new friend application

This commit is contained in:
Changhua
2022-08-21 08:45:16 +08:00
parent 1fb486ea62
commit 3fd3e589e7
14 changed files with 126 additions and 17 deletions
+3 -2
View File
@@ -1,4 +1,4 @@
#include <pybind11/functional.h>
#include <pybind11/functional.h>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
@@ -80,7 +80,8 @@ PYBIND11_MODULE(wcferry, m)
m.def("WxGetDbNames", &WxGetDbNames, py::return_value_policy::reference, "Get DB names.");
m.def("WxGetDbTables", &WxGetDbTables, py::return_value_policy::reference, "Get DB tables.", py::arg("db"));
m.def("WxExecDbQuery", &WxExecDbQueryPy, py::return_value_policy::reference, "Get DB tables.", py::arg("db"),
py::arg("sql"));
py::arg("sql"));
m.def("WxAcceptNewFriend", &WxAcceptNewFriend, "Accept new friend application.", py::arg("v3"), py::arg("v4"));
#ifdef VERSION_INFO
m.attr("__version__") = VERSION_INFO;