diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-06-21 13:12:31 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-06-22 07:29:26 +0200 |
commit | ede1a4182df68b1191b8ef2031f7a1f14813b525 (patch) | |
tree | ad65a287510a97a23c0d704491a4c318d545fe2b /cpukit/include/rtems/print.h | |
parent | Rename and move RTEMS_PRINTF_ATTRIBUTE() (diff) | |
download | rtems-ede1a4182df68b1191b8ef2031f7a1f14813b525.tar.bz2 |
Make rtems/print.h independent of rtems/bspIo.h
Diffstat (limited to 'cpukit/include/rtems/print.h')
-rw-r--r-- | cpukit/include/rtems/print.h | 21 |
1 files changed, 16 insertions, 5 deletions
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; /** |