OSSP CVS Repository

ossp - Check-in [2760]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 2760
Date: 2002-Nov-07 16:29:53 (local)
2002-Nov-07 15:29:53 (UTC)
User:mlelstv
Branch:
Comment: flag operations beautify prototype

PR: Submitted by: Reviewed by: Approved by: Obtained from:

Tickets:
Inspections:
Files:
ossp-pkg/sio/sio.h      1.2 -> 1.3     9 inserted, 1 deleted

ossp-pkg/sio/sio.h 1.2 -> 1.3

--- 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__ */

CVSTrac 2.0.1