| 5063 | } |
| 5064 | |
| 5065 | srtp_err_status_t srtp_install_log_handler(srtp_log_handler_func_t func, |
| 5066 | void *data) |
| 5067 | { |
| 5068 | /* |
| 5069 | * note that we accept NULL arguments intentionally - calling this |
| 5070 | * function with a NULL arguments removes a log handler that's |
| 5071 | * been previously installed |
| 5072 | */ |
| 5073 | |
| 5074 | if (srtp_log_handler) { |
| 5075 | srtp_install_err_report_handler(NULL); |
| 5076 | } |
| 5077 | srtp_log_handler = func; |
| 5078 | srtp_log_handler_data = data; |
| 5079 | if (srtp_log_handler) { |
| 5080 | srtp_install_err_report_handler(srtp_err_handler); |
| 5081 | } |
| 5082 | return srtp_err_status_ok; |
| 5083 | } |
| 5084 | |
| 5085 | srtp_err_status_t srtp_set_stream_roc(srtp_t session, |
| 5086 | uint32_t ssrc, |
no test coverage detected