| 55 | static FILE *srtp_err_file = NULL; |
| 56 | |
| 57 | srtp_err_status_t srtp_err_reporting_init(void) |
| 58 | { |
| 59 | #ifdef ERR_REPORTING_STDOUT |
| 60 | srtp_err_file = stdout; |
| 61 | #elif defined(ERR_REPORTING_FILE) |
| 62 | /* open file for error reporting */ |
| 63 | srtp_err_file = fopen(ERR_REPORTING_FILE, "w"); |
| 64 | if (srtp_err_file == NULL) { |
| 65 | return srtp_err_status_init_fail; |
| 66 | } |
| 67 | #endif |
| 68 | |
| 69 | return srtp_err_status_ok; |
| 70 | } |
| 71 | |
| 72 | static srtp_err_report_handler_func_t *srtp_err_report_handler = NULL; |
| 73 |
no outgoing calls
no test coverage detected