summaryrefslogtreecommitdiff
path: root/toxrtp/toxrtp_error_id.h
diff options
context:
space:
mode:
authormannol <eniz_vukovic@hotmail.com>2013-10-13 16:16:47 +0200
committerBtbN <btbn@btbn.de>2013-10-13 16:16:47 +0200
commitda727875ac954b13ecb16521d255499511bb7424 (patch)
tree551904f3738612e9c15d98f320c323aa325a5cf8 /toxrtp/toxrtp_error_id.h
parent1b971de651278429eea312f3240e1c5b8fbc67a4 (diff)
tox A/V: RTP/MSI implementation
Diffstat (limited to 'toxrtp/toxrtp_error_id.h')
-rw-r--r--toxrtp/toxrtp_error_id.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/toxrtp/toxrtp_error_id.h b/toxrtp/toxrtp_error_id.h
new file mode 100644
index 00000000..201aa936
--- /dev/null
+++ b/toxrtp/toxrtp_error_id.h
@@ -0,0 +1,32 @@
1#ifndef _RTP_ERROR_ID_
2#define _RTP_ERROR_ID_
3
4#include "toxrtp_error.h"
5
6typedef 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_ */