diff --git a/src/tracing.rs b/src/tracing.rs index 12c3c9280e..6a1481b698 100644 --- a/src/tracing.rs +++ b/src/tracing.rs @@ -57,6 +57,12 @@ impl Binding for TraceLevel { } } +/// Callback type used to pass tracing events to the subscriber. +/// see `trace_set` to register a scubscriber. +/// +/// Note: +/// libgit2 might pass non-utf8 strings therefore we +/// pass the message as a byte slice pub type TracingCb = fn(TraceLevel, &[u8]); static CALLBACK: AtomicUsize = AtomicUsize::new(0);