OSSP CVS Repository

ossp - Difference in ossp-pkg/lmtp2nntp/lmtp.h versions 1.10 and 1.11
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/lmtp2nntp/lmtp.h 1.10 -> 1.11

--- lmtp.h       2001/09/07 15:02:08     1.10
+++ lmtp.h       2001/10/08 13:40:22     1.11
@@ -37,9 +37,9 @@
 
 typedef struct {
     void    *ctx;
-    int     (*select)(void *, int, fd_set *, fd_set *, fd_set *, struct timeval *);
-    ssize_t (*read)(void *, int, void *, size_t);
-    ssize_t (*write)(void *, int, const void *, size_t);
+    int     (*select)(void *, fd_set *, fd_set *, fd_set *, struct timeval *);
+    ssize_t (*read)(void *, void *, size_t);
+    ssize_t (*write)(void *, const void *, size_t);
 } lmtp_io_t;
 
 typedef struct {
@@ -63,9 +63,13 @@
     LMTP_ERR_UNKNOWN
 } lmtp_rc_t;
 
+typedef struct {
+    int fd;
+} lmtp_fd_t;
+
 typedef lmtp_rc_t (*lmtp_cb_t)(lmtp_t *, lmtp_io_t *, lmtp_req_t *, void *);
 
-lmtp_t     *lmtp_create  (int, int, lmtp_io_t *);
+lmtp_t     *lmtp_create  (lmtp_io_t *);
 void        lmtp_destroy (lmtp_t *);
 lmtp_rc_t   lmtp_readline(lmtp_t *, char *, size_t);
 lmtp_rc_t   lmtp_readmsg (lmtp_t *, char **, size_t);
@@ -74,6 +78,8 @@
 char       *lmtp_error   (lmtp_rc_t);
 lmtp_rc_t   lmtp_register(lmtp_t *, char *, lmtp_cb_t, void *, lmtp_cb_t *, void **);
 lmtp_rc_t   lmtp_loop    (lmtp_t *);
+ssize_t     lmtp_fd_read (void *, void *, size_t);
+ssize_t     lmtp_fd_write(void *, const void *, size_t);
 
 #endif /* __LMTP_H__ */
 

CVSTrac 2.0.1