diff options
Diffstat (limited to 'toxrtp/toxrtp_error_id.h')
-rw-r--r-- | toxrtp/toxrtp_error_id.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/toxrtp/toxrtp_error_id.h b/toxrtp/toxrtp_error_id.h deleted file mode 100644 index 201aa936..00000000 --- a/toxrtp/toxrtp_error_id.h +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
1 | #ifndef _RTP_ERROR_ID_ | ||
2 | #define _RTP_ERROR_ID_ | ||
3 | |||
4 | #include "toxrtp_error.h" | ||
5 | |||
6 | typedef enum error_s { | ||
7 | RTP_ERROR_PACKET_DROPED = 1, | ||
8 | RTP_ERROR_EMPTY_MESSAGE, | ||
9 | RTP_ERROR_STD_SEND_FAILURE, | ||
10 | RTP_ERROR_NO_EXTERNAL_HEADER, | ||
11 | RTP_ERROR_INVALID_EXTERNAL_HEADER, | ||
12 | RTP_ERROR_HEADER_PARSING, | ||
13 | RTP_ERROR_PAYLOAD_NULL, | ||
14 | RTP_ERROR_PAYLOAD_INVALID, | ||
15 | |||
16 | } error_t; | ||
17 | |||
18 | |||
19 | /* Only needed to be called once */ | ||
20 | #ifndef REGISTER_RTP_ERRORS | ||
21 | #define REGISTER_RTP_ERRORS \ | ||
22 | t_rtperr_register( RTP_ERROR_PACKET_DROPED, "Ivalid sequence number, packet is late" ); \ | ||
23 | t_rtperr_register( RTP_ERROR_EMPTY_MESSAGE, "Tried to send an empty message" ); \ | ||
24 | t_rtperr_register( RTP_ERROR_STD_SEND_FAILURE, "Failed call function: sendto" ); \ | ||
25 | t_rtperr_register( RTP_ERROR_NO_EXTERNAL_HEADER, "While parsing external header" ); \ | ||
26 | t_rtperr_register( RTP_ERROR_INVALID_EXTERNAL_HEADER, "While parsing external header" ); \ | ||
27 | t_rtperr_register( RTP_ERROR_HEADER_PARSING, "While parsing header" ); \ | ||
28 | t_rtperr_register( RTP_ERROR_PAYLOAD_NULL, "Payload is NULL" ); \ | ||
29 | t_rtperr_register( RTP_ERROR_PAYLOAD_INVALID, "Invalid payload size" ); | ||
30 | #endif /* REGISTER_RTP_ERRORS */ | ||
31 | |||
32 | #endif /* _RTP_ERROR_ID_ */ | ||