OSSP CVS Repository

ossp - ossp-pkg/lmtp2nntp/lmtp2nntp.h 1.7
Not logged in
[Honeypot]  [Browse]  [Directory]  [Home]  [Login
[Reports]  [Search]  [Ticket]  [Timeline
  [Raw

ossp-pkg/lmtp2nntp/lmtp2nntp.h 1.7
/*
**  Copyright (c) 2001 The OSSP Project <http://www.ossp.org/>
**  Copyright (c) 2001 Cable & Wireless Deutschland <http://www.cw.com/de/>
**
**  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/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 <ossp@ossp.org>.
**
**  lmtp2nntp.h: LMTP to NNTP global header
*/

#ifndef __LMTP2NNTP_H__
#define __LMTP2NNTP_H__

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#if defined(HAVE_DMALLOC_H) && defined(DMALLOC)
#include "dmalloc.h"
#endif

#define log0(ctx,level,msg) \
    l2_channel_log((ctx)->l2, L2_LEVEL_##level, "%P" msg)
#define log1(ctx,level,msg,a1) \
    l2_channel_log((ctx)->l2, L2_LEVEL_##level, "%P" msg, a1)
#define log2(ctx,level,msg,a1,a2) \
    l2_channel_log((ctx)->l2, L2_LEVEL_##level, "%P" msg, a1, a2)
#define log3(ctx,level,msg,a1,a2,a3) \
    l2_channel_log((ctx)->l2, L2_LEVEL_##level, "%P" msg, a1, a2, a3)
#define log4(ctx,level,msg,a1,a2,a3,a4) \
    l2_channel_log((ctx)->l2, L2_LEVEL_##level, "%P" msg, a1, a2, a3, a4)

#define STMT(stuff) do { stuff } while (0)
#define CU(returncode) STMT( rc = returncode; goto CUS; )
#define VCU STMT( goto CUS; )

#endif /* __LMTP2NNTP_H__ */

CVSTrac 2.0.1