summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/printer.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-10-26 13:59:06 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-10-28 13:33:55 +0200
commit7bec7f2715f0f3495f59513e61c319fe65a3fd40 (patch)
treeebd8253ec8fe2169ef6fcd2becd5cf7550f66796 /cpukit/include/rtems/printer.h
parenttests: Move rtems_test_printer definition (diff)
downloadrtems-7bec7f2715f0f3495f59513e61c319fe65a3fd40.tar.bz2
rtems: Add rtems_print_printer_fprintf_putc()
Update #3170. Update #3199.
Diffstat (limited to 'cpukit/include/rtems/printer.h')
-rw-r--r--cpukit/include/rtems/printer.h25
1 files changed, 14 insertions, 11 deletions
diff --git a/cpukit/include/rtems/printer.h b/cpukit/include/rtems/printer.h
index c18600bbe3..fccd9bcf5f 100644
--- a/cpukit/include/rtems/printer.h
+++ b/cpukit/include/rtems/printer.h
@@ -74,7 +74,7 @@ static inline bool rtems_print_printer_valid(const rtems_printer *printer)
}
/**
- * @brief Initializes the rtems_printer struct to empty.
+ * @brief Initializes the printer to print nothing.
*
* An empty printer prints nothing. You can use this to implement an enable and
* disable type print implementation.
@@ -88,31 +88,34 @@ static inline void rtems_print_printer_empty(rtems_printer *printer)
}
/**
- * @brief Initializes the rtems_printer struct to printk
- *
- * The printer will output to the kernel printk support.
+ * @brief Initializes the printer to print via printk().
*
* @param[in] printer Pointer to the printer structure.
*/
void rtems_print_printer_printk(rtems_printer *printer);
/**
- * @brief Initializes the rtems_printer struct to printf
- *
- * The printer will output to the libc printf support.
+ * @brief Initializes the printer to print via printf().
*
* @param[in] printer Pointer to the printer structure.
*/
-extern void rtems_print_printer_printf(rtems_printer *printer);
+void rtems_print_printer_printf(rtems_printer *printer);
/**
- * @brief Initializes the rtems_printer struct to a fprintf device.
+ * @brief Initializes the printer to print via fprintf() using the specified
+ * file stream.
*
- * The printer will output to the libc fprintf file provided.
+ * @param[in] printer Pointer to the printer structure.
+ */
+void rtems_print_printer_fprintf(rtems_printer *printer, FILE *file);
+
+/**
+ * @brief Initializes the printer to print via fprintf() using an unbuffered
+ * FILE stream with output through rtems_putc().
*
* @param[in] printer Pointer to the printer structure.
*/
-extern void rtems_print_printer_fprintf(rtems_printer *printer, FILE *file);
+void rtems_print_printer_fprintf_putc(rtems_printer *printer);
typedef struct {
rtems_id task;