xref: /freebsd/sys/contrib/zstd/programs/zstdcli_trace.h (revision 5ff13fbc199bdf5f0572845351c68ee5ca828e71)
1*5ff13fbcSAllan Jude /*
2*5ff13fbcSAllan Jude  * Copyright (c) Facebook, Inc.
3*5ff13fbcSAllan Jude  * All rights reserved.
4*5ff13fbcSAllan Jude  *
5*5ff13fbcSAllan Jude  * This source code is licensed under both the BSD-style license (found in the
6*5ff13fbcSAllan Jude  * LICENSE file in the root directory of this source tree) and the GPLv2 (found
7*5ff13fbcSAllan Jude  * in the COPYING file in the root directory of this source tree).
8*5ff13fbcSAllan Jude  * You may select, at your option, one of the above-listed licenses.
9*5ff13fbcSAllan Jude  */
10*5ff13fbcSAllan Jude 
11*5ff13fbcSAllan Jude #ifndef ZSTDCLI_TRACE_H
12*5ff13fbcSAllan Jude #define ZSTDCLI_TRACE_H
13*5ff13fbcSAllan Jude 
14*5ff13fbcSAllan Jude /**
15*5ff13fbcSAllan Jude  * Enable tracing - log to filename.
16*5ff13fbcSAllan Jude  */
17*5ff13fbcSAllan Jude void TRACE_enable(char const* filename);
18*5ff13fbcSAllan Jude 
19*5ff13fbcSAllan Jude /**
20*5ff13fbcSAllan Jude  * Shut down the tracing library.
21*5ff13fbcSAllan Jude  */
22*5ff13fbcSAllan Jude void TRACE_finish(void);
23*5ff13fbcSAllan Jude 
24*5ff13fbcSAllan Jude #endif /* ZSTDCLI_TRACE_H */
25