Index: ossp-pkg/sio/sio.h RCS File: /v/ossp/cvs/ossp-pkg/sio/sio.h,v rcsdiff -q -kk '-r1.2' '-r1.3' -u '/v/ossp/cvs/ossp-pkg/sio/sio.h,v' 2>/dev/null --- sio.h 2002/10/23 17:05:10 1.2 +++ sio.h 2002/11/07 15:29:53 1.3 @@ -50,6 +50,11 @@ SIO_MODE_READWRITE } sio_mode_t; +typedef enum { + SIO_FLAG_ERROR, + SIO_FLAG_EOF +} sio_flag_t; + struct sio_st; typedef struct sio_st sio_t; @@ -62,7 +67,7 @@ sio_rc_t sio_create(sio_t **siop); sio_rc_t sio_destroy(sio_t *sio); -sio_rc_t sio_create_stage(sio_t *sio, sio_module_t *sioh, sio_stage_t **siosp); +sio_rc_t sio_create_stage(sio_t *sio, sio_module_t *siom, sio_stage_t **siosp); sio_rc_t sio_destroy_stage(sio_t *sio, sio_stage_t *sios); sio_rc_t sio_configure_stage(sio_t *sio, sio_stage_t *sios, void *o, void *v); @@ -77,6 +82,9 @@ sio_rc_t sio_push(sio_t *sio); +int sio_flag(sio_t *sio, sio_flag_t fl); +int sio_clearflag(sio_t *sio, sio_flag_t fl); + const char *sio_error(sio_rc_t rc); #endif /* __SIO_H__ */