MCPcopy Create free account
hub / github.com/dobin/RedEdr / add_callback

Function add_callback

RedEdrShared/loguru.cpp:934–945  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

932 }
933
934 void add_callback(
935 const char* id,
936 log_handler_t callback,
937 void* user_data,
938 Verbosity verbosity,
939 close_handler_t on_close,
940 flush_handler_t on_flush)
941 {
942 std::lock_guard<std::recursive_mutex> lock(s_mutex);
943 s_callbacks.push_back(Callback{ id, callback, user_data, verbosity, on_close, on_flush, 0 });
944 on_callback_change();
945 }
946
947 // Returns a custom verbosity name if one is available, or nullptr.
948 // See also set_verbosity_to_name_callback.

Callers 1

add_fileFunction · 0.85

Calls 1

on_callback_changeFunction · 0.85

Tested by

no test coverage detected