2
* Copyright (c) 2011-2012 BalaBit IT Ltd, Budapest, Hungary
3
* Copyright (c) 2011-2012 Gergely Nagy <algernon@balabit.hu>
5
* This program is free software; you can redistribute it and/or modify it
6
* under the terms of the GNU General Public License version 2 as published
7
* by the Free Software Foundation, or (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18
* As an additional exemption you are allowed to compile & link against the
19
* OpenSSL libraries as published by the OpenSSL project. See the file
20
* COPYING for details.
25
#include "cfg-parser.h"
26
#include "afsmtp-grammar.h"
28
extern int afsmtp_debug;
29
int afsmtp_parse(CfgLexer *lexer, LogDriver **instance, gpointer arg);
31
static CfgLexerKeyword afsmtp_keywords[] = {
35
{ "subject", KW_SUBJECT },
40
{ "reply_to", KW_REPLY_TO },
41
{ "sender", KW_SENDER },
43
{ "header", KW_HEADER },
47
CfgParser afsmtp_parser =
50
.debug_flag = &afsmtp_debug,
53
.keywords = afsmtp_keywords,
54
.parse = (int (*)(CfgLexer *lexer, gpointer *instance, gpointer)) afsmtp_parse,
55
.cleanup = (void (*)(gpointer)) log_pipe_unref,
58
CFG_PARSER_IMPLEMENT_LEXER_BINDING(afsmtp_, LogDriver **)