]> git.ipfire.org Git - thirdparty/git.git/blame - trace2/tr2_tbuf.h
Merge branch 'js/anonymize-remote-curl-diag'
[thirdparty/git.git] / trace2 / tr2_tbuf.h
CommitLineData
ee4512ed
JH
1#ifndef TR2_TBUF_H
2#define TR2_TBUF_H
3
4/*
5 * A simple wrapper around a fixed buffer to avoid C syntax
6 * quirks and the need to pass around an additional size_t
7 * argument.
8 */
9struct tr2_tbuf {
10 char buf[32];
11};
12
13/*
14 * Fill buffer with formatted local time string.
15 */
16void tr2_tbuf_local_time(struct tr2_tbuf *tb);
17
18/*
19 * Fill buffer with formatted UTC time string.
20 */
21void tr2_tbuf_utc_time(struct tr2_tbuf *tb);
22
23#endif /* TR2_TBUF_H */