Add an enum for status code returned by functions

This commit is contained in:
François Grisez 2017-04-11 14:00:33 +02:00
parent 67f5e91a41
commit f4e6919c58

View file

@ -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_ */