| 1 | #ifndef _BABELTRACE_H |
| 2 | #define _BABELTRACE_H |
| 3 | |
| 4 | #include <stdio.h> |
| 5 | |
| 6 | #define BABELTRACE_VERSION_MAJOR 0 |
| 7 | #define BABELTRACE_VERSION_MINOR 1 |
| 8 | |
| 9 | extern int babeltrace_verbose, babeltrace_debug; |
| 10 | |
| 11 | #define printf_verbose(fmt, args...) \ |
| 12 | do { \ |
| 13 | if (babeltrace_verbose) \ |
| 14 | printf("[verbose] " fmt, ## args); \ |
| 15 | } while (0) |
| 16 | |
| 17 | #define printf_debug(fmt, args...) \ |
| 18 | do { \ |
| 19 | if (babeltrace_debug) \ |
| 20 | printf("[debug] " fmt, ## args); \ |
| 21 | } while (0) |
| 22 | |
| 23 | struct trace_descriptor; |
| 24 | |
| 25 | int convert_trace(struct trace_descriptor *td_write, |
| 26 | struct trace_descriptor *td_read); |
| 27 | |
| 28 | #endif |