diff options
author | Josh Steadmon <steadmon@google.com> | 2020-11-11 15:29:26 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-11-11 18:26:52 -0800 |
commit | e97e1cf464fa0c4646d41b9221ae88a7dca12493 (patch) | |
tree | cf99f8a075293f4104d04aef0af582508f7a7a60 /trace2.c | |
parent | 81bd549010f609056362b1cd94feb2434beee194 (diff) | |
download | git-e97e1cf464fa0c4646d41b9221ae88a7dca12493.tar.gz |
trace2: add a public function for getting the SID
Add a public wrapper, trace2_session_id(), around tr2_sid_get(), which
is intended to be private trace2 implementation.
Signed-off-by: Josh Steadmon <steadmon@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'trace2.c')
-rw-r--r-- | trace2.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -792,3 +792,8 @@ void trace2_printf(const char *fmt, ...) va_end(ap); } #endif + +const char *trace2_session_id(void) +{ + return tr2_sid_get(); +} |