Merge branch 'km/submodule-doc-use-sm-path' into maint
[alt-git.git] / trace2 / tr2_tbuf.h
blobfa853d8f4211b5c34ec592308cf028e3dbd0b406
1 #ifndef TR2_TBUF_H
2 #define TR2_TBUF_H
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 */
9 struct tr2_tbuf {
10 char buf[32];
14 * Fill buffer with formatted local time string.
16 void tr2_tbuf_local_time(struct tr2_tbuf *tb);
19 * Fill buffer with formatted UTC datatime string.
21 void tr2_tbuf_utc_datetime_extended(struct tr2_tbuf *tb);
22 void tr2_tbuf_utc_datetime(struct tr2_tbuf *tb);
24 #endif /* TR2_TBUF_H */