summaryrefslogtreecommitdiffstats
path: root/cpukit/include
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-06-21 13:12:31 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-06-22 07:29:26 +0200
commitede1a4182df68b1191b8ef2031f7a1f14813b525 (patch)
treead65a287510a97a23c0d704491a4c318d545fe2b /cpukit/include
parentRename and move RTEMS_PRINTF_ATTRIBUTE() (diff)
downloadrtems-ede1a4182df68b1191b8ef2031f7a1f14813b525.tar.bz2
Make rtems/print.h independent of rtems/bspIo.h
Diffstat (limited to 'cpukit/include')
-rw-r--r--cpukit/include/rtems/bspIo.h12
-rw-r--r--cpukit/include/rtems/print.h21
2 files changed, 16 insertions, 17 deletions
diff --git a/cpukit/include/rtems/bspIo.h b/cpukit/include/rtems/bspIo.h
index 4b5b2a2bf7..d0d8f83dcd 100644
--- a/cpukit/include/rtems/bspIo.h
+++ b/cpukit/include/rtems/bspIo.h
@@ -122,18 +122,6 @@ extern int putk(const char *s);
*/
extern void rtems_putc(char c);
-/**
- * Type definition for function which can be plugged in to
- * certain reporting routines to redirect the output.
- *
- * Use the RTEMS Print interface to call these functions. Do not
- * directly use them.
- *
- * If the user provides their own "printf plugin", then they may
- * redirect those reports as they see fit.
- */
-typedef int (*rtems_print_plugin_t)(void *, const char *format, va_list ap);
-
/**@}*/
#ifdef __cplusplus
diff --git a/cpukit/include/rtems/print.h b/cpukit/include/rtems/print.h
index c4dacceccf..07e50d0948 100644
--- a/cpukit/include/rtems/print.h
+++ b/cpukit/include/rtems/print.h
@@ -18,11 +18,10 @@
#ifndef _RTEMS_PRINT_H
#define _RTEMS_PRINT_H
-#include <stdbool.h>
-#include <stddef.h>
-#include <stdio.h>
+#include <rtems/score/basedefs.h>
-#include <rtems/bspIo.h>
+#include <stdarg.h>
+#include <stdio.h>
#ifdef __cplusplus
extern "C" {
@@ -36,12 +35,24 @@ extern "C" {
*/
/**
+ * Type definition for function which can be plugged in to certain reporting
+ * routines to redirect the output.
+ *
+ * Use the RTEMS Print interface to call these functions. Do not directly use
+ * them.
+ *
+ * If the user provides their own printer, then they may redirect those reports
+ * as they see fit.
+ */
+typedef int (*rtems_print_printer)(void *, const char *format, va_list ap);
+
+/**
* Type definition for the printer structure used to access the kernel print
* support.
*/
typedef struct rtems_printer {
void *context;
- rtems_print_plugin_t printer;
+ rtems_print_printer printer;
} rtems_printer;
/**