diff options
| author | 2019-09-27 12:52:03 +0200 | |
|---|---|---|
| committer | 2019-09-27 12:52:03 +0200 | |
| commit | 8f96c52de2f9f35f361d29095190fc673db7d1c1 (patch) | |
| tree | 991b5f37ed8c504b2f77a8d0afc22182afbd340c /src/device_link_service.h | |
| parent | acf0a76be3c81a8ce69817af2b16a546a08f7ecb (diff) | |
| download | libimobiledevice-8f96c52de2f9f35f361d29095190fc673db7d1c1.tar.gz libimobiledevice-8f96c52de2f9f35f361d29095190fc673db7d1c1.tar.bz2 | |
Make sure to handle timeout errors in device link service and all depending services
Diffstat (limited to 'src/device_link_service.h')
| -rw-r--r-- | src/device_link_service.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/device_link_service.h b/src/device_link_service.h index a0c8390..eae912a 100644 --- a/src/device_link_service.h +++ b/src/device_link_service.h | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | * device_link_service.h | 2 | * device_link_service.h |
| 3 | * Definitions for the DeviceLink service | 3 | * Definitions for the DeviceLink service |
| 4 | * | 4 | * |
| 5 | * Copyright (c) 2010 Nikias Bassen, All Rights Reserved. | 5 | * Copyright (c) 2010-2019 Nikias Bassen, All Rights Reserved. |
| 6 | * | 6 | * |
| 7 | * This library is free software; you can redistribute it and/or | 7 | * This library is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| @@ -25,16 +25,16 @@ | |||
| 25 | #include "property_list_service.h" | 25 | #include "property_list_service.h" |
| 26 | 26 | ||
| 27 | /* Error Codes */ | 27 | /* Error Codes */ |
| 28 | #define DEVICE_LINK_SERVICE_E_SUCCESS 0 | 28 | typedef enum { |
| 29 | #define DEVICE_LINK_SERVICE_E_INVALID_ARG -1 | 29 | DEVICE_LINK_SERVICE_E_SUCCESS = 0, |
| 30 | #define DEVICE_LINK_SERVICE_E_PLIST_ERROR -2 | 30 | DEVICE_LINK_SERVICE_E_INVALID_ARG = -1, |
| 31 | #define DEVICE_LINK_SERVICE_E_MUX_ERROR -3 | 31 | DEVICE_LINK_SERVICE_E_PLIST_ERROR = -2, |
| 32 | #define DEVICE_LINK_SERVICE_E_BAD_VERSION -4 | 32 | DEVICE_LINK_SERVICE_E_MUX_ERROR = -3, |
| 33 | 33 | DEVICE_LINK_SERVICE_E_SSL_ERROR = -4, | |
| 34 | #define DEVICE_LINK_SERVICE_E_UNKNOWN_ERROR -256 | 34 | DEVICE_LINK_SERVICE_E_RECEIVE_TIMEOUT = -5, |
| 35 | 35 | DEVICE_LINK_SERVICE_E_BAD_VERSION = -6, | |
| 36 | /** Represents an error code. */ | 36 | DEVICE_LINK_SERVICE_E_UNKNOWN_ERROR = -256 |
| 37 | typedef int16_t device_link_service_error_t; | 37 | } device_link_service_error_t; |
| 38 | 38 | ||
| 39 | struct device_link_service_client_private { | 39 | struct device_link_service_client_private { |
| 40 | property_list_service_client_t parent; | 40 | property_list_service_client_t parent; |
