00001 #ifndef __SENDMSG_H
00002 #define __SENDMSG_H
00003 /*-------------------------------------------------------------------------
00004 * Copyright (c) 2000-2002 Kenneth W. Sodemann (stuffle@charter.net)
00005 *-------------------------------------------------------------------------
00006 * sendmsg
00007 *
00008 * Synopsis:
00009 * Procedures used to send out a predefined e-mail message.
00010 *
00011 * $Id: sendmsg.h,v 1.7 2002/01/30 00:40:02 stuffle Exp $
00012 *
00013 * This program is free software; you can redistribute it and/or modify
00014 * it under the terms of the GNU General Public License as published by
00015 * the Free Software Foundation; either version 2 of the License, or
00016 * (at your option) any later version.
00017 *
00018 * This program is distributed in the hope that it will be useful,
00019 * but WITHOUT ANY WARRANTY; without even the implied warranty of
00020 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00021 * GNU General Public License for more details.
00022 *
00023 * You should have received a copy of the GNU General Public License
00024 * along with this program; if not, write to
00025 * Free Software Foundation, Inc.
00026 * 59 Temple Place, Suite 330
00027 * Boston, MA 02111-1307 USA
00028 *-------------------------------------------------------------------------
00029 */
00048 #include <postgres.h>
00049
00050 /*
00051 * __BEGIN_DECLS should be used at the beginning of your declarations,
00052 * so that C++ compilers don't mangle their names. Use __END_DECLS at
00053 * the end of C declarations.
00054 */
00055 #undef __BEGIN_DECLS
00056 #undef __END_DECLS
00057 #ifdef __cplusplus
00058 # define __BEGIN_DECLS extern "C" {
00059 # define __END_DECLS }
00060 #else
00061 # define __BEGIN_DECLS /* empty */
00062 # define __END_DECLS /* empty */
00063 #endif
00064
00065 /*
00066 * __P is a macro used to wrap function prototypes, so that compilers
00067 * that don't understand ANSI C prototypes still work, and ANSI C
00068 * compilers can issue warnings about type mismatches.
00069 */
00070 #undef __P
00071 #if defined (__STDC__) || defined (_AIX) \
00072 || (defined (__mips) && defined (_SYSTYPE_SVR4)) \
00073 || defined(WIN32) || defined(__cplusplus)
00074 # define __P(protos) protos
00075 #else
00076 # define __P(protos) ()
00077 #endif
00078
00079 __BEGIN_DECLS
00111 int4 send_new_pr_msg __P((const text *email_list,
00112 const text *project,
00113 const text *pr_title,
00114 const text *descr,
00115 const text *severity,
00116 const text *problem_type,
00117 const text *submitter));
00118
00153 int4 send_assign_msg __P((const text *email_list,
00154 const text *pr_title,
00155 const text *descr,
00156 const text *fix_descr,
00157 const text *status,
00158 const text *severity,
00159 const text *responsible,
00160 const text *submitter));
00161
00196 int4 send_update_msg __P((const text *email_list,
00197 const text *pr_title,
00198 const text *descr,
00199 const text *fix_descr,
00200 const text *status,
00201 const text *severity,
00202 const text *responsible,
00203 const text *submitter));
00204 __END_DECLS
00205
00206 #endif
1.2.14 written by Dimitri van Heesch,
© 1997-2002