From 6e77c5b2b54037834d4ea0fc5186258a830ea83f Mon Sep 17 00:00:00 2001 From: DownerCase <119755054+DownerCase@users.noreply.github.com> Date: Tue, 28 Nov 2023 16:58:03 +0000 Subject: [PATCH] Python: Fix client remove response callback (#1272) --- lang/python/core/ecal/core/core.py | 2 +- lang/python/core/ecal/core/service.py | 2 +- lang/python/core/src/ecal_wrap.cxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lang/python/core/ecal/core/core.py b/lang/python/core/ecal/core/core.py index ebbc7ef3d1..d5f3c235c4 100644 --- a/lang/python/core/ecal/core/core.py +++ b/lang/python/core/ecal/core/core.py @@ -478,7 +478,7 @@ def client_add_response_callback(client_handle, callback): return _ecal.client_add_response_callback(client_handle, callback) -def client_rem_method_callback(client_handle): +def client_rem_response_callback(client_handle): """ remove response callback from client :param client_handle: the client handle diff --git a/lang/python/core/ecal/core/service.py b/lang/python/core/ecal/core/service.py index cb6f0efba7..d14c573a1d 100644 --- a/lang/python/core/ecal/core/service.py +++ b/lang/python/core/ecal/core/service.py @@ -100,7 +100,7 @@ def add_response_callback(self, callback): """ return ecal_core.client_add_response_callback(self.shandle, callback) - def rem_response_callback(self, method_name): + def rem_response_callback(self): """ remove response callback from client """ return ecal_core.client_rem_response_callback(self.shandle) diff --git a/lang/python/core/src/ecal_wrap.cxx b/lang/python/core/src/ecal_wrap.cxx index ed89fd8f72..d65c6a94b1 100644 --- a/lang/python/core/src/ecal_wrap.cxx +++ b/lang/python/core/src/ecal_wrap.cxx @@ -1634,7 +1634,7 @@ static PyMethodDef _ecal_methods[] = {"client_call_method", client_call_method, METH_VARARGS, "client_call_method(client_handle, method_name, request, timeout)" }, {"client_add_response_callback", client_add_response_callback, METH_VARARGS, "client_add_response_callback(client_handle, callback)" }, - {"client_rem_response_callback", client_add_response_callback, METH_VARARGS, "client_rem_response_callback(client_handle)" }, + {"client_rem_response_callback", client_rem_response_callback, METH_VARARGS, "client_rem_response_callback(client_handle)" }, {"mon_initialize", mon_initialize, METH_NOARGS, "mon_initialize()"}, {"mon_finalize", mon_finalize, METH_NOARGS, "mon_finalize()"},