diff options
Diffstat (limited to 'src/service.h')
-rw-r--r-- | src/service.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/service.h b/src/service.h index 3a22bed..8cea7a3 100644 --- a/src/service.h +++ b/src/service.h @@ -40,11 +40,11 @@ typedef struct service_client_private *service_client_t; typedef int16_t service_error_t; -#define SERVICE_CONSTRUCTOR(x) (uint16_t (*)(idevice_t, lockdownd_service_descriptor_t, void**))(x) +#define SERVICE_CONSTRUCTOR(x) (int16_t (*)(idevice_t, lockdownd_service_descriptor_t, void**))(x) /* creation and destruction */ service_error_t service_client_new(idevice_t device, lockdownd_service_descriptor_t service, service_client_t *client); -service_error_t service_client_factory_start_service(idevice_t device, const char* service_name, void **client, const char* label, uint16_t (*constructor_func)(idevice_t, lockdownd_service_descriptor_t, void**), uint16_t *error_code); +service_error_t service_client_factory_start_service(idevice_t device, const char* service_name, void **client, const char* label, int16_t (*constructor_func)(idevice_t, lockdownd_service_descriptor_t, void**), int16_t *error_code); service_error_t service_client_free(service_client_t client); /* sending */ |