Move opt_field_names/babeltrace_verbose/babeltrace_debug into lib
[babeltrace.git] / include / babeltrace / babeltrace-internal.h
CommitLineData
70bd0a12
JD
1#ifndef _BABELTRACE_INTERNAL_H
2#define _BABELTRACE_INTERNAL_H
3
4#include <stdio.h>
5#include <glib.h>
6
7extern int babeltrace_verbose, babeltrace_debug;
8
9#define printf_verbose(fmt, args...) \
10 do { \
11 if (babeltrace_verbose) \
12 printf("[verbose] " fmt, ## args); \
13 } while (0)
14
15#define printf_debug(fmt, args...) \
16 do { \
17 if (babeltrace_debug) \
18 printf("[debug] " fmt, ## args); \
19 } while (0)
20
90bf3cef
MD
21#define likely(x) __builtin_expect(!!(x), 1)
22#define unlikely(x) __builtin_expect(!!(x), 0)
23
70bd0a12
JD
24struct trace_descriptor;
25struct trace_collection {
26 GPtrArray *array;
27};
28
29int convert_trace(struct trace_descriptor *td_write,
30 struct trace_collection *trace_collection_read);
31
32extern int opt_field_names;
33
34#endif
This page took 0.032355 seconds and 4 git commands to generate.