OSSP CVS Repository

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

ossp-pkg/lmtp2nntp/lmtp2nntp_config.h 1.2 -> 1.3

--- lmtp2nntp_config.h   2002/01/14 12:23:21     1.2
+++ lmtp2nntp_config.h   2002/01/17 17:01:55     1.3
@@ -21,38 +21,50 @@
 **  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
 **  USA, or contact the OSSP project <ossp@ossp.org>.
 **
-**  lmtp2nntp.c: LMTP to NNTP configuration parsing
+**  FIXME lmtp2nntp_option.h: LMTP to NNTP configuration parsing
 */
 
 #include "lmtp2nntp_global.h"
-void dotconftest(int, char **); //FIXME
+#include "val.h"
 
 typedef struct {
-    int             option_childsmax;
+    int         childsmax;
+    int         daemonize;
+    int         kill;
+    char       *pidfile;
+    argz_t      acl;
+    char       *bind;
+    char       *client;
+    argz_t      destination;
+    char       *groupmode;
+    argz_t      headervalue;
+    argz_t      include;
+    char       *size;
+    int        *timeoutlmtpaccept;
+    int        *timeoutlmtpread;
+    int        *timeoutlmtpwrite;
+    int        *timeoutnntpconnect;
+    int        *timeoutnntpread;
+    int        *timeoutnntpwrite;
+    char       *mailfrom;
+    char       *nodename;
+    char       *operationmode;
+    char       *l2spec;
+    char       *uid;
+    argz_t      restrictheader;
+    argz_t      newsgroup;
+                    /**/
+    val_t      *vo;
 
-    char           *option_logfile;
-    int             option_groupmode;
-    int             option_operationmode;
-    char           *option_operationmodefakestatus;
-    char           *option_operationmodefakedsn;
-    int             option_maxmessagesize;
-    char           *option_azHeaderValuePairs;
-    size_t          option_asHeaderValuePairs;
-    int             option_timeout_lmtp_accept;
-    int             option_timeout_lmtp_read;
-    int             option_timeout_lmtp_write;
-    int             option_timeout_nntp_connect;
-    int             option_timeout_nntp_read;
-    int             option_timeout_nntp_write;
-    char           *option_mailfrom;
-    char           *option_restrictheader;
-    unsigned int    option_levelmask;
-    char           *option_pidfile;
-    int             option_killflag;
-    uid_t           option_uid;
-    int             option_daemon;
-    int             option_aclc;
-    //struct acl      option_acl[MAXACLS];
-    int             option_veryverbose;
-} lmtp2nntp_config_t;
+} lmtp2nntp_option_t;
 
+typedef enum {
+    OPTION_OK,
+    OPTION_ERR_ARG, /* invalid args passed into function */
+    OPTION_ERR_MEM, /* out of memory */
+    OPTION_ERR_VAL  /* libval failed */
+} lmtp2nntp_option_rc_t;
+
+lmtp2nntp_option_rc_t option_create (lmtp2nntp_option_t **);
+lmtp2nntp_option_rc_t option_parse  (lmtp2nntp_option_t *, int, char **);
+lmtp2nntp_option_rc_t option_destroy(lmtp2nntp_option_t *);

CVSTrac 2.0.1