From 21830126cfa1badd81b2c6fe1b3e9d0c610c8b0a Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Tue, 8 Jun 2004 22:33:40 +0000 Subject: the console is now in/out. --- mixlib/mix_io.h | 54 +++++++++++++++++++++++++----------------------------- 1 file changed, 25 insertions(+), 29 deletions(-) (limited to 'mixlib/mix_io.h') diff --git a/mixlib/mix_io.h b/mixlib/mix_io.h index a63bda6..61d35da 100644 --- a/mixlib/mix_io.h +++ b/mixlib/mix_io.h @@ -1,22 +1,22 @@ /* -*-c-*- ------------------ mix_io.h : * Declarations for mix_iochannel_t and mix_file_t * ------------------------------------------------------------------ - * Copyright (C) 2000 Free Software Foundation, Inc. - * + * Copyright (C) 2000, 2004 Free Software Foundation, Inc. + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * + * */ @@ -33,7 +33,7 @@ typedef struct mix_iochannel_t mix_iochannel_t; #define MIX_IOCHANNEL(file) (mix_iochannel_t *)(file) /* I/O channels can be created in different modes: */ -typedef enum { +typedef enum { mix_io_READ, /* read existing file */ mix_io_WRITE, /* write new file */ mix_io_RDWRT, /* read/write existing from beginning */ @@ -47,7 +47,7 @@ mix_io_new (FILE *file); /* Delete */ extern void -mix_io_delete(mix_iochannel_t *ch); +mix_io_delete (mix_iochannel_t *ch); /* Convert to a FILE * */ extern FILE * @@ -55,64 +55,60 @@ mix_io_to_FILE (mix_iochannel_t *ioc); /* Read/write from/to an iochannel */ extern gboolean -mix_io_eof(mix_iochannel_t *ioc); +mix_io_eof (mix_iochannel_t *ioc); extern gboolean -mix_io_is_ready(mix_iochannel_t *ioc); +mix_io_is_ready (mix_iochannel_t *ioc); extern gboolean -mix_io_write_byte(mix_iochannel_t *ioc, mix_byte_t b); +mix_io_write_byte (mix_iochannel_t *ioc, mix_byte_t b); extern gboolean -mix_io_write_byte_array(mix_iochannel_t *ioc, const mix_byte_t *b, - size_t s); +mix_io_write_byte_array (mix_iochannel_t *ioc, const mix_byte_t *b, size_t s); extern mix_byte_t -mix_io_read_byte(mix_iochannel_t *ioc); +mix_io_read_byte (mix_iochannel_t *ioc); extern gboolean -mix_io_read_byte_array(mix_iochannel_t *ioc, mix_byte_t *b, size_t s); +mix_io_read_byte_array (mix_iochannel_t *ioc, mix_byte_t *b, size_t s); extern gboolean -mix_io_write_word(mix_iochannel_t *ioc, mix_word_t w); +mix_io_write_word (mix_iochannel_t *ioc, mix_word_t w); extern gboolean -mix_io_write_word_array(mix_iochannel_t *ioc, const mix_word_t *w, - size_t s); +mix_io_write_word_array (mix_iochannel_t *ioc, const mix_word_t *w, size_t s); extern mix_word_t -mix_io_read_word(mix_iochannel_t *ioc); +mix_io_read_word (mix_iochannel_t *ioc); extern gboolean -mix_io_read_word_array(mix_iochannel_t *ioc, mix_word_t *w, size_t s); +mix_io_read_word_array (mix_iochannel_t *ioc, mix_word_t *w, size_t s); extern gboolean -mix_io_write_short(mix_iochannel_t *ioc, mix_short_t w); +mix_io_write_short (mix_iochannel_t *ioc, mix_short_t w); extern gboolean -mix_io_write_short_array(mix_iochannel_t *ioc, const mix_short_t *w, - size_t s); +mix_io_write_short_array (mix_iochannel_t *ioc, const mix_short_t *w, size_t s); extern mix_short_t -mix_io_read_short(mix_iochannel_t *ioc); +mix_io_read_short (mix_iochannel_t *ioc); extern gboolean -mix_io_read_short_array(mix_iochannel_t *ioc, mix_short_t *w, size_t s); - +mix_io_read_short_array (mix_iochannel_t *ioc, mix_short_t *w, size_t s); extern gboolean -mix_io_write_char(mix_iochannel_t *ioc, mix_char_t c); +mix_io_write_char (mix_iochannel_t *ioc, mix_char_t c); extern mix_char_t -mix_io_read_char(mix_iochannel_t *ioc); +mix_io_read_char (mix_iochannel_t *ioc); extern gboolean -mix_io_write_word_array_as_char (mix_iochannel_t *ioc, - const mix_word_t *w, size_t s); +mix_io_write_word_array_as_char (mix_iochannel_t *ioc, + const mix_word_t *w, size_t s); extern gboolean mix_io_read_word_array_as_char (mix_iochannel_t *ioc, -- cgit v1.2.3