From cf4407f0062ca28b8ac54fd47afbfafc89b184fe Mon Sep 17 00:00:00 2001 From: Sergey Cherevko Date: Tue, 12 Dec 2023 12:21:43 +0300 Subject: [PATCH] MSVSphere fix syntax for cython version --- gbinder.pyx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/gbinder.pyx b/gbinder.pyx index 7d5a952..ac81053 100644 --- a/gbinder.pyx +++ b/gbinder.pyx @@ -65,7 +65,7 @@ cdef class RemoteObject: if self._object is not NULL: cgbinder.gbinder_remote_object_remove_handler(self._object, id) -cdef void remote_object_local_notify_func(cgbinder.GBinderRemoteObject* obj, void* user_data) noexcept with gil: +cdef void remote_object_local_notify_func(cgbinder.GBinderRemoteObject* obj, void* user_data) with gil: (user_data).notify_func_callback() cdef class RemoteReply: @@ -202,12 +202,12 @@ cdef class Client: def cancel(self, unsigned long id): return cgbinder.gbinder_client_cancel(self._client, id) -cdef void client_reply_func(cgbinder.GBinderClient* client, cgbinder.GBinderRemoteReply* c_reply, int status, void* user_data) noexcept with gil: +cdef void client_reply_func(cgbinder.GBinderClient* client, cgbinder.GBinderRemoteReply* c_reply, int status, void* user_data) with gil: reply = RemoteReply() reply.set_c_reply(c_reply) (user_data).reply_func_callback(reply, status) -cdef void local_destroy_notif(void* user_data) noexcept with gil: +cdef void local_destroy_notif(void* user_data) with gil: (user_data).destroy_notif_callback() cdef class LocalRequest: @@ -514,7 +514,7 @@ cdef class LocalObject: reply.set_c_reply(c_reply) return reply -cdef cgbinder.GBinderLocalReply* local_transact_callback(cgbinder.GBinderLocalObject* obj, cgbinder.GBinderRemoteRequest* c_req, unsigned int code, unsigned int flags, int* status, void* user_data) noexcept with gil: +cdef cgbinder.GBinderLocalReply* local_transact_callback(cgbinder.GBinderLocalObject* obj, cgbinder.GBinderRemoteRequest* c_req, unsigned int code, unsigned int flags, int* status, void* user_data) with gil: req = RemoteRequest() req.set_c_req(c_req) reply, status_ret = (user_data).callback(req, code, flags) @@ -671,12 +671,12 @@ cdef class ServiceManager: else: free(ids) -cdef void service_manager_get_service_func(cgbinder.GBinderServiceManager* sm, cgbinder.GBinderRemoteObject* c_object, int status, void* user_data) noexcept with gil: +cdef void service_manager_get_service_func(cgbinder.GBinderServiceManager* sm, cgbinder.GBinderRemoteObject* c_object, int status, void* user_data) with gil: remote = RemoteObject() remote.set_c_object(c_object) (user_data).get_service_func_callback(remote, status) -cdef bint service_manager_list_func(cgbinder.GBinderServiceManager* sm, char** services, void* user_data) noexcept with gil: +cdef bint service_manager_list_func(cgbinder.GBinderServiceManager* sm, char** services, void* user_data) with gil: services_list = [] if services == NULL: return services_list @@ -687,13 +687,13 @@ cdef bint service_manager_list_func(cgbinder.GBinderServiceManager* sm, char** s i += 1 return (user_data).list_func_callback(services_list) -cdef void service_manager_add_service_func(cgbinder.GBinderServiceManager* sm, int status, void* user_data) noexcept with gil: +cdef void service_manager_add_service_func(cgbinder.GBinderServiceManager* sm, int status, void* user_data) with gil: (user_data).add_service_func_callback(status) -cdef void service_manager_func(cgbinder.GBinderServiceManager* sm, void* user_data) noexcept with gil: +cdef void service_manager_func(cgbinder.GBinderServiceManager* sm, void* user_data) with gil: (user_data).func_callback() -cdef void service_manager_registration_func(cgbinder.GBinderServiceManager* sm, const char* name, void* user_data) noexcept with gil: +cdef void service_manager_registration_func(cgbinder.GBinderServiceManager* sm, const char* name, void* user_data) with gil: (user_data).registration_func_callback(name) cdef class Buffer: -- 2.39.3