summaryrefslogtreecommitdiff
path: root/src/xprintf.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/xprintf.h')
-rw-r--r--src/xprintf.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/xprintf.h b/src/xprintf.h
new file mode 100644
index 0000000..94342c6
--- /dev/null
+++ b/src/xprintf.h
@@ -0,0 +1,26 @@
+#ifndef __XPRINTF_H
+#define __XPRINTF_H
+
+#include "config.h"
+#include <printf.h>
+
+#define XPRINTF_INSPECT_SPEC 'J'
+#define XPRINTF_BIN_SPEC 'K'
+
+#if HAVE_REGISTER_PRINTF_SPECIFIER
+int print_buffer_inspect_arginfo(const struct printf_info *info, size_t n, int *argtypes, int *size);
+#else
+int print_buffer_inspect_arginfo(const struct printf_info *info, size_t n, int *argtypes);
+#endif
+int print_buffer_inspect(FILE *stream, const struct printf_info *info, const void *const *args);
+
+#if HAVE_REGISTER_PRINTF_SPECIFIER
+int print_buffer_bin_arginfo(const struct printf_info *info, size_t n, int *argtypes, int *size);
+#else
+int print_buffer_bin_arginfo(const struct printf_info *info, size_t n, int *argtypes);
+#endif
+int print_buffer_bin(FILE *stream, const struct printf_info *info, const void *const *args);
+
+int xprintf_init(void);
+
+#endif /* ~__XPRINTF_H */