OSSP CVS Repository

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

ossp-pkg/lmtp2nntp/lmtp.h 1.3 -> 1.4

--- lmtp.h       2001/07/24 11:32:07     1.3
+++ lmtp.h       2001/07/25 11:29:38     1.4
@@ -27,13 +27,18 @@
     char *statusmsg;    /* message with >=0*NLs, not terminating with NL. NUL */
 } lmtp_res_t;
 
+struct lmtp_msg_st {
+    struct lmtp_msg_st *next;
+    char *msg;
+};
+typedef struct lmtp_msg_st lmtp_msg_t;
+
 typedef enum {
     LMTP_OK,
     LMTP_EOF,           /* eof */
     LMTP_ERR_SYSTEM,    /* see errno */
     LMTP_ERR_MEM,       /* dynamic memory allocation failed */
     LMTP_ERR_OVERFLOW,  /* static allocated memory exhausted */
-    LMTP_ERR_VERB,      /* search for verb failed */
     LMTP_ERR_ARG,       /* invalid arg was passed to function */
     LMTP_ERR_UNKNOWN    /* guru meditation */
 } lmtp_rc_t;
@@ -46,7 +51,7 @@
 lmtp_rc_t   lmtp_readmsg (lmtp_t *lmtp, char **buf, size_t maxlen);
 lmtp_rc_t   lmtp_request (lmtp_t *lmtp, lmtp_req_t *req);
 lmtp_rc_t   lmtp_response(lmtp_t *lmtp, lmtp_res_t *res);
-char      **lmtp_message (lmtp_t *lmtp, char *verb);
+lmtp_msg_t *lmtp_message (lmtp_t *lmtp, char *verb);
 void        lmtp_reset   (lmtp_t *lmtp);
 char       *lmtp_error   (lmtp_t *lmtp, lmtp_rc_t rc);
 lmtp_rc_t   lmtp_register(lmtp_t *lmtp, char *verb, lmtp_cb_t cb, void *ctx, lmtp_cb_t *oldcb, void **oldctx);

CVSTrac 2.0.1