RTEMS
io.h
1 /*
2  * Copyright (c) 2017 embedded brains GmbH. All rights reserved.
3  *
4  * embedded brains GmbH
5  * Dornierstr. 4
6  * 82178 Puchheim
7  * Germany
8  * <rtems@embedded-brains.de>
9  *
10  * The license and distribution terms for this file may be
11  * found in the file LICENSE in this distribution or at
12  * http://www.rtems.org/license/LICENSE.
13  */
14 
15 #ifndef _RTEMS_SCORE_IO_H
16 #define _RTEMS_SCORE_IO_H
17 
18 #include <rtems/score/basedefs.h>
19 
20 #include <stdarg.h>
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif /* __cplusplus */
25 
26 typedef void ( *IO_Put_char )( int c, void *arg );
27 
28 int _IO_Printf(
29  IO_Put_char put_char,
30  void *arg,
31  char const *fmt,
32  ...
33 ) RTEMS_PRINTFLIKE( 3, 4 );
34 
35 int _IO_Vprintf(
36  IO_Put_char put_char,
37  void *arg,
38  char const *fmt,
39  va_list ap
40 );
41 
58 int _IO_Base64(
59  IO_Put_char put_char,
60  void *arg,
61  const void *src,
62  size_t len,
63  const char *wordbreak,
64  int wordlen
65 );
66 
67 #ifdef __cplusplus
68 }
69 #endif /* __cplusplus */
70 
71 #endif /* _RTEMS_SCORE_IO_H */
RTEMS_NO_RETURN RTEMS_PRINTFLIKE(1, 2) void rtems_panic(const char *fmt
%
This header file provides basic definitions used by the API and the implementation.