diff options
Diffstat (limited to 'qemu/include/qemu/fprintf-fn.h')
-rw-r--r-- | qemu/include/qemu/fprintf-fn.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/qemu/include/qemu/fprintf-fn.h b/qemu/include/qemu/fprintf-fn.h new file mode 100644 index 000000000..9ddc90f1c --- /dev/null +++ b/qemu/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 |