head 1.7; access; symbols LMTP2NNTP_1_4_1:1.7 LMTP2NNTP_1_4_0:1.7 LMTP2NNTP_1_3_0:1.7 LMTP2NNTP_1_3b2:1.7 LMTP2NNTP_1_3b1:1.7 LMTP2NNTP_1_3a3:1.7 LMTP2NNTP_1_3a2:1.7 LMTP2NNTP_1_3a1:1.7 LMTP2NNTP_1_2_0:1.7 LMTP2NNTP_1_2b4:1.7 LMTP2NNTP_1_2b3:1.7 LMTP2NNTP_1_2b2:1.7 LMTP2NNTP_1_2b1:1.6 LMTP2NNTP_1_2a8:1.6 LMTP2NNTP_1_2a7:1.5 LMTP2NNTP_1_2a6:1.3 LMTP2NNTP_1_2a5:1.3 LMTP2NNTP_1_2a4:1.3 LMTP2NNTP_1_2a3:1.3 SOURCE_RESTRUCTURING_AFTER:1.1; locks; strict; comment @ * @; 1.7 date 2003.02.10.10.13.12; author thl; state Exp; branches; next 1.6; 1.6 date 2003.02.06.13.50.08; author thl; state Exp; branches; next 1.5; 1.5 date 2003.01.30.19.42.13; author rse; state Exp; branches; next 1.4; 1.4 date 2003.01.30.19.27.29; author rse; state Exp; branches; next 1.3; 1.3 date 2002.01.24.12.07.13; author thl; state Exp; branches; next 1.2; 1.2 date 2001.12.31.15.15.36; author thl; state Exp; branches; next 1.1; 1.1 date 2001.12.31.11.09.53; author thl; state Exp; branches; next ; desc @@ 1.7 log @extend copyright messages based on CVS information @ text @/* ** OSSP lmtp2nntp - Mail to News Gateway ** Copyright (c) 2001-2003 Ralf S. Engelschall ** Copyright (c) 2001-2003 The OSSP Project ** Copyright (c) 2001-2003 Cable & Wireless Germany ** ** This file is part of OSSP lmtp2nntp, an LMTP speaking local ** mailer which forwards mails as Usenet news articles via NNTP. ** It can be found at http://www.ossp.org/pkg/tool/lmtp2nntp/. ** ** This program is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License ** as published by the Free Software Foundation; either version ** 2.0 of the License, or (at your option) any later version. ** ** This program is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** General Public License for more details. ** ** You should have received a copy of the GNU General Public License ** along with this file; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 ** USA, or contact the OSSP project . ** ** lmtp2nntp_nntp.h: Network News Transfer Protocol (NNTP) client library (API) */ #ifndef __NNTP_H__ #define __NNTP_H__ #include #include #include #include typedef enum { NNTP_OK, NNTP_EOF, NNTP_DEFER, NNTP_FAKE, NNTP_ERR_SYSTEM, NNTP_ERR_ARG, NNTP_ERR_OVERFLOW, NNTP_ERR_DELIVERY, NNTP_ERR_INIT, NNTP_ERR_UNKNOWN } nntp_rc_t; struct nntp_st; typedef struct nntp_st nntp_t; #include "lmtp2nntp_msg.h" typedef struct { void *ctx; ssize_t (*read)(void *, void *, size_t); ssize_t (*write)(void *, const void *, size_t); } nntp_io_t; typedef struct { int fd; } nntp_fd_t; nntp_t *nntp_create (nntp_io_t *); nntp_rc_t nntp_init (nntp_t *); void nntp_destroy (nntp_t *); nntp_rc_t nntp_readline (nntp_t *, char *, size_t); nntp_rc_t nntp_writeline(nntp_t *, char *); nntp_rc_t nntp_post (nntp_t *, msg_t *msg); nntp_rc_t nntp_feed (nntp_t *, msg_t *msg); char *nntp_lastresp (nntp_t *nntp); char *nntp_error (nntp_rc_t); ssize_t nntp_fd_read (void *, void *, size_t); ssize_t nntp_fd_write (void *, const void *, size_t); #endif /* __NNTP_H__ */ @ 1.6 log @moving definitions between header files @ text @d3 3 a5 3 ** Copyright (c) 2002-2003 Ralf S. Engelschall ** Copyright (c) 2002-2003 The OSSP Project ** Copyright (c) 2002-2003 Cable & Wireless Germany @ 1.5 log @Apply the standard OSSP copyright header, document ASCII art and fix URL to lmtp2nntp homepage. @ text @a36 13 #include "lmtp2nntp_msg.h" /*FIXME see include below struct nntp_st; typedef struct nntp_st nntp_t; */ typedef struct { void *ctx; ssize_t (*read)(void *, void *, size_t); ssize_t (*write)(void *, const void *, size_t); } nntp_io_t; d50 9 a58 2 /*FIXME see fixme above */ #include "lmtp2nntp_common.h" @ 1.4 log @Implement the decision from yesterday evening and finally rename fixme.h to lmtp2nntp_common.h because there is little chance this this stuff ever can be moved into more local source contexts. @ text @d2 4 a5 2 ** Copyright (c) 2001-2002 The OSSP Project ** Copyright (c) 2001-2002 Cable & Wireless Deutschland d9 1 a9 1 ** It can be found at http://www.ossp.org/pkg/lmtp2nntp/. d26 1 a26 1 ** nntp.h: Network News Transfer Protocol (NNTP) client library (API) @ 1.3 log @master of the FIXMEs! please read comment in fixme.h @ text @d62 1 a62 1 #include "fixme.h" @ 1.2 log @bump copyright year @ text @d37 1 d40 1 d60 3 @ 1.1 log @Mega-Commit: Finally restructure the lmtp2nntp source tree in order to clean it up. We especially use a consistent prefix for all inlined sources. @ text @d2 2 a3 2 ** Copyright (c) 2001 The OSSP Project ** Copyright (c) 2001 Cable & Wireless Deutschland @