Rev 4201 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4201 | Rev 4296 | ||
---|---|---|---|
Line 38... | Line 38... | ||
38 | #include <typedefs.h> |
38 | #include <typedefs.h> |
39 | #include <arch/arg.h> |
39 | #include <arch/arg.h> |
40 | 40 | ||
41 | /** Structure for specifying output methods for different printf clones. */ |
41 | /** Structure for specifying output methods for different printf clones. */ |
42 | typedef struct { |
42 | typedef struct { |
43 | /* UTF-8 output function, returns number of printed UTF-8 characters or EOF */ |
43 | /* String output function, returns number of printed characters or EOF */ |
44 | int (*write_utf8)(const char *, size_t, void *); |
44 | int (*str_write)(const char *, size_t, void *); |
45 | 45 | ||
46 | /* UTF-32 output function, returns number of printed UTF-32 characters or EOF */ |
46 | /* Wide string output function, returns number of printed characters or EOF */ |
47 | int (*write_utf32)(const wchar_t *, size_t, void *); |
47 | int (*wstr_write)(const wchar_t *, size_t, void *); |
48 | 48 | ||
49 | /* User data - output stream specification, state, locks, etc. */ |
49 | /* User data - output stream specification, state, locks, etc. */ |
50 | void *data; |
50 | void *data; |
51 | } printf_spec_t; |
51 | } printf_spec_t; |
52 | 52 |