diff options
author | axel <axel@liljencrantz.se> | 2005-10-09 21:48:16 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2005-10-09 21:48:16 +1000 |
commit | 8093435b7e91712154739fbbf71517000e145e84 (patch) | |
tree | 4e67b20c503f1ae440ef064f633009bd738c348b /io.c | |
parent | 9ae7fa5831cbc0a7d221c566bcd8633e609b9670 (diff) |
API documentation updates
darcs-hash:20051009114816-ac50b-4a11de60d61dcba7cbb63ae4b71cfd1eb06e1d7a.gz
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 34 |
1 files changed, 34 insertions, 0 deletions
@@ -207,3 +207,37 @@ io_data_t *io_get( io_data_t *io, int fd ) return 0; } +/* +static void io_print( io_data_t *io ) +{ + if( !io ) + { + fwprintf( stderr, L"\n" ); + return; + } + + + fwprintf( stderr, L"IO fd %d, type ", + io->fd ); + switch( io->io_mode ) + { + case IO_PIPE: + fwprintf(stderr, L"PIPE, data %d\n", io->pipe_fd[io->fd?1:0] ); + break; + + case IO_FD: + fwprintf(stderr, L"FD, copy %d\n", io->old_fd ); + break; + + case IO_BUFFER: + fwprintf( stderr, L"BUFFER\n" ); + break; + + default: + fwprintf( stderr, L"OTHER\n" ); + } + + io_print( io->next ); + +} +*/ |