--- lmtp2nntp_option.h 2002/03/06 14:25:39 1.6
+++ lmtp2nntp_option.h 2002/03/07 16:03:56 1.7
@@ -52,6 +52,7 @@
typedef enum {
OPTION_OK,
OPTION_ERR_ARG, /* invalid args passed into function */
+ OPTION_ERR_TRY, /* caught an exception from a underlying codeblock */
OPTION_ERR_USE, /* invalid usage, bad data passed into function */
OPTION_ERR_MEM, /* out of memory */
OPTION_ERR_VAL, /* libval failed */
@@ -82,9 +83,9 @@
int ndata;
};
-lmtp2nntp_option_rc_t option_create (lmtp2nntp_option_t **, val_t *);
-lmtp2nntp_option_rc_t option_register(lmtp2nntp_option_t *, char *, char, optiontype_t, char *, char *, char *, optionloop_cb_t *, char *);
-lmtp2nntp_option_rc_t option_parse (lmtp2nntp_option_t *, int, char **);
-lmtp2nntp_option_rc_t option_destroy (lmtp2nntp_option_t *);
+/* these public functions catch all underlying exceptions and properly return a code */
+lmtp2nntp_option_rc_t option_create (lmtp2nntp_option_t **, val_t *);
+lmtp2nntp_option_rc_t option_parse (lmtp2nntp_option_t *, int, char **);
+lmtp2nntp_option_rc_t option_destroy(lmtp2nntp_option_t *);
#endif /* __LMTP2NNTP_OPTION_H__ */
|