diff options
author | Nikias Bassen | 2019-09-27 12:52:03 +0200 |
---|---|---|
committer | Nikias Bassen | 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 @@ * device_link_service.h * Definitions for the DeviceLink service * - * Copyright (c) 2010 Nikias Bassen, All Rights Reserved. + * Copyright (c) 2010-2019 Nikias Bassen, All Rights Reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -25,16 +25,16 @@ #include "property_list_service.h" /* Error Codes */ -#define DEVICE_LINK_SERVICE_E_SUCCESS 0 -#define DEVICE_LINK_SERVICE_E_INVALID_ARG -1 -#define DEVICE_LINK_SERVICE_E_PLIST_ERROR -2 -#define DEVICE_LINK_SERVICE_E_MUX_ERROR -3 -#define DEVICE_LINK_SERVICE_E_BAD_VERSION -4 - -#define DEVICE_LINK_SERVICE_E_UNKNOWN_ERROR -256 - -/** Represents an error code. */ -typedef int16_t device_link_service_error_t; +typedef enum { + DEVICE_LINK_SERVICE_E_SUCCESS = 0, + DEVICE_LINK_SERVICE_E_INVALID_ARG = -1, + DEVICE_LINK_SERVICE_E_PLIST_ERROR = -2, + DEVICE_LINK_SERVICE_E_MUX_ERROR = -3, + DEVICE_LINK_SERVICE_E_SSL_ERROR = -4, + DEVICE_LINK_SERVICE_E_RECEIVE_TIMEOUT = -5, + DEVICE_LINK_SERVICE_E_BAD_VERSION = -6, + DEVICE_LINK_SERVICE_E_UNKNOWN_ERROR = -256 +} device_link_service_error_t; struct device_link_service_client_private { property_list_service_client_t parent; |