Skip to content

Commit

Permalink
Python: Fix client remove response callback (#1272)
Browse files Browse the repository at this point in the history
  • Loading branch information
DownerCase authored and FlorianReimold committed Jan 19, 2024
1 parent 27d8b36 commit ec3cb2e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lang/python/core/ecal/core/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lang/python/core/ecal/core/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion lang/python/core/src/ecal_wrap.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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()"},
Expand Down

0 comments on commit ec3cb2e

Please sign in to comment.