]> git.proxmox.com Git - qemu.git/blobdiff - trace/simple.h
trace: avoid conditional code compilation during option parsing
[qemu.git] / trace / simple.h
index 77633ab68ae7a32a95414937f762dc51694bf3e7..08b9a52146cfe13e7e5b7bd72f56d2d91ff1ccb5 100644 (file)
@@ -15,7 +15,6 @@
 #include <stdbool.h>
 #include <stdio.h>
 
-#ifdef CONFIG_TRACE_SIMPLE
 typedef uint64_t TraceEventID;
 
 typedef struct {
@@ -37,12 +36,5 @@ void st_print_trace_file_status(FILE *stream, fprintf_function stream_printf);
 void st_set_trace_file_enabled(bool enable);
 bool st_set_trace_file(const char *file);
 void st_flush_trace_buffer(void);
-bool st_init(const char *file);
-#else
-static inline bool st_init(const char *file)
-{
-    return true;
-}
-#endif /* !CONFIG_TRACE_SIMPLE */
 
 #endif /* TRACE_SIMPLE_H */