MCPcopy Create free account
hub / github.com/cisco/libsrtp / srtp_install_log_handler

Function srtp_install_log_handler

srtp/srtp.c:5065–5083  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5063}
5064
5065srtp_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
5085srtp_err_status_t srtp_set_stream_roc(srtp_t session,
5086 uint32_t ssrc,

Callers 2

mainFunction · 0.85
mainFunction · 0.85

Calls 1

Tested by

no test coverage detected