summaryrefslogtreecommitdiffstats
path: root/src/include/qemu/fprintf-fn.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/qemu/fprintf-fn.h')
-rw-r--r--src/include/qemu/fprintf-fn.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/include/qemu/fprintf-fn.h b/src/include/qemu/fprintf-fn.h
new file mode 100644
index 0000000..9ddc90f
--- /dev/null
+++ b/src/include/qemu/fprintf-fn.h
@@ -0,0 +1,17 @@
+/*
+ * Typedef for fprintf-alike function pointers.
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2 or later.
+ * See the COPYING file in the top-level directory.
+ */
+
+#ifndef QEMU_FPRINTF_FN_H
+#define QEMU_FPRINTF_FN_H 1
+
+#include "qemu/compiler.h"
+#include <stdio.h>
+
+typedef int (*fprintf_function)(FILE *f, const char *fmt, ...)
+ GCC_FMT_ATTR(2, 3);
+
+#endif
OpenPOWER on IntegriCloud