From f4e6919c5887ed8dc79fb74d90c1244ffae38f76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Grisez?= Date: Tue, 11 Apr 2017 14:00:33 +0200 Subject: [PATCH] Add an enum for status code returned by functions --- include/linphone/types.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/linphone/types.h b/include/linphone/types.h index a7aaa9e9a..f12d3ae32 100644 --- a/include/linphone/types.h +++ b/include/linphone/types.h @@ -1188,5 +1188,16 @@ typedef struct _LinphoneIntRange { int max; /**< Maximum value */ } LinphoneIntRange; +/** + * Status code returned by some functions to + * notify whether the execution has been succesfully + * done or not. + * @ingroup misc + */ +typedef enum _LinphoneStatus { + LinphoneStatusOk = 0, /**< The function has successfully returned. */ + LinphoneStatusError = -1 /**< An error has occured while executing the function. */ +} LinphoneStatus; + #endif /* LINPHONE_TYPES_H_ */