Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Side by Side Diff: srtp/crypto/include/err.h

Issue 2346813003: Add compatibility shims to libsrtp for v1->v2 transition (Closed)
Patch Set: Add kjellander Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « OWNERS ('k') | srtp/crypto/include/rdbx.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * err.h 2 * err.h
3 * 3 *
4 * error status codes 4 * error status codes
5 * 5 *
6 * David A. McGrew 6 * David A. McGrew
7 * Cisco Systems, Inc. 7 * Cisco Systems, Inc.
8 */ 8 */
9 /* 9 /*
10 * 10 *
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 * 42 *
43 */ 43 */
44 44
45 45
46 #ifndef ERR_H 46 #ifndef ERR_H
47 #define ERR_H 47 #define ERR_H
48 48
49 #include <stdio.h> 49 #include <stdio.h>
50 #include <stdarg.h> 50 #include <stdarg.h>
51 51
52 /*
53 * Compatibility shim for v1->v2 transition.
54 */
55
56 #define srtp_err_status_t err_status_t
57
58 #define srtp_err_status_ok err_status_ok
59 #define srtp_err_status_fail err_status_fail
60 #define srtp_err_status_bad_param err_status_bad_param
61 #define srtp_err_status_alloc_fail err_status_alloc_fail
62 #define srtp_err_status_dealloc_fail err_status_dealloc_fail
63 #define srtp_err_status_init_fail err_status_init_fail
64 #define srtp_err_status_terminus err_status_terminus
65 #define srtp_err_status_auth_fail err_status_auth_fail
66 #define srtp_err_status_cipher_fail err_status_cipher_fail
67 #define srtp_err_status_replay_fail err_status_replay_fail
68 #define srtp_err_status_replay_old err_status_replay_old
69 #define srtp_err_status_algo_fail err_status_algo_fail
70 #define srtp_err_status_no_such_op err_status_no_such_op
71 #define srtp_err_status_no_ctx err_status_no_ctx
72 #define srtp_err_status_cant_check err_status_cant_check
73 #define srtp_err_status_key_expired err_status_key_expired
74 #define srtp_err_status_socket_err err_status_socket_err
75 #define srtp_err_status_signal_err err_status_signal_err
76 #define srtp_err_status_nonce_bad err_status_nonce_bad
77 #define srtp_err_status_read_fail err_status_read_fail
78 #define srtp_err_status_write_fail err_status_write_fail
79 #define srtp_err_status_parse_err err_status_parse_err
80 #define srtp_err_status_encode_err err_status_encode_err
81 #define srtp_err_status_semaphore_err err_status_semaphore_err
82 #define srtp_err_status_pfkey_err err_status_pfkey_err
83
84 #define srtp_debug_module_t debug_module_t
85
52 /** 86 /**
53 * @defgroup Error Error Codes 87 * @defgroup Error Error Codes
54 * 88 *
55 * Error status codes are represented by the enumeration err_status_t. 89 * Error status codes are represented by the enumeration err_status_t.
56 * 90 *
57 * @{ 91 * @{
58 */ 92 */
59 93
60 94
61 /* 95 /*
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 /* define macros to do nothing */ 200 /* define macros to do nothing */
167 #define debug_print(mod, format, arg) 201 #define debug_print(mod, format, arg)
168 202
169 #define debug_on(mod) 203 #define debug_on(mod)
170 204
171 #define debug_off(mod) 205 #define debug_off(mod)
172 206
173 #endif 207 #endif
174 208
175 #endif /* ERR_H */ 209 #endif /* ERR_H */
OLDNEW
« no previous file with comments | « OWNERS ('k') | srtp/crypto/include/rdbx.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698