@@ -120,6 +120,7 @@ PyWrapper::PyWrapper() {
120120 _wrapperOnceExec = _obj.attr (" wrapperOnceExec" );
121121 _wrapperOnceExecAsync = _obj.attr (" wrapperOnceExecAsync" );
122122 _wrapperError = _obj.attr (" wrapperError" );
123+ _wrapperNotify = _obj.attr (" wrapperNotify" );
123124
124125 // 个性化
125126 _wrapperLoadRes = _obj.attr (" wrapperLoadRes" );
@@ -161,6 +162,7 @@ PyWrapper::~PyWrapper() {
161162 _wrapperRead.release ();
162163 _wrapperUnloadRes.release ();
163164 _wrapperLoadRes.release ();
165+ _wrapperNotify.release ();
164166 pybind11::gil_scoped_release release;
165167}
166168
@@ -177,6 +179,7 @@ void PyWrapper::ReloadWrapper() {
177179 _wrapperOnceExec = _obj.attr (" wrapperOnceExec" );
178180 _wrapperError = _obj.attr (" wrapperError" );
179181 _wrapperTest = _obj.attr (" wrapperTestFunc" );
182+ _wrapperNotify = _obj.attr (" wrapperNotify" );
180183 // stream support
181184
182185 _wrapperCreate = _obj.attr (" wrapperCreate" );
@@ -571,6 +574,12 @@ int PyWrapper::wrapperUnloadRes(std::string patch_id) {
571574 return ret;
572575}
573576
577+ int PyWrapper::wrapperNotify (pDataList* data) {
578+ py::gil_scoped_acquire acquire;
579+ int ret = _wrapperNotify (*data).cast <int >();;
580+ return ret;
581+ }
582+
574583int PyWrapper::wrapperTest () {
575584 py::gil_scoped_acquire acquire;
576585 std::vector <py::dict> req;
0 commit comments