From 8f96c52de2f9f35f361d29095190fc673db7d1c1 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Fri, 27 Sep 2019 12:52:03 +0200 Subject: Make sure to handle timeout errors in device link service and all depending services --- include/libimobiledevice/screenshotr.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'include/libimobiledevice/screenshotr.h') diff --git a/include/libimobiledevice/screenshotr.h b/include/libimobiledevice/screenshotr.h index c12646b..83ca96b 100644 --- a/include/libimobiledevice/screenshotr.h +++ b/include/libimobiledevice/screenshotr.h @@ -4,8 +4,8 @@ * @note Requires a mounted developer image. * \internal * - * Copyright (c) 2010-2014 Martin Szulecki All Rights Reserved. - * Copyright (c) 2010 Nikias Bassen All Rights Reserved. + * Copyright (c) 2010-2019 Nikias Bassen, All Rights Reserved. + * Copyright (c) 2010-2014 Martin Szulecki, 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 @@ -36,12 +36,14 @@ extern "C" { /** Error Codes */ typedef enum { - SCREENSHOTR_E_SUCCESS = 0, - SCREENSHOTR_E_INVALID_ARG = -1, - SCREENSHOTR_E_PLIST_ERROR = -2, - SCREENSHOTR_E_MUX_ERROR = -3, - SCREENSHOTR_E_BAD_VERSION = -4, - SCREENSHOTR_E_UNKNOWN_ERROR = -256 + SCREENSHOTR_E_SUCCESS = 0, + SCREENSHOTR_E_INVALID_ARG = -1, + SCREENSHOTR_E_PLIST_ERROR = -2, + SCREENSHOTR_E_MUX_ERROR = -3, + SCREENSHOTR_E_SSL_ERROR = -4, + SCREENSHOTR_E_RECEIVE_TIMEOUT = -5, + SCREENSHOTR_E_BAD_VERSION = -6, + SCREENSHOTR_E_UNKNOWN_ERROR = -256 } screenshotr_error_t; typedef struct screenshotr_client_private screenshotr_client_private; -- cgit v1.1-32-gdbae