1 /* 2 * Copyright (c) 2012 Nagy, Attila <bra@fsn.hu> 3 * Copyright (c) 2014 Balabit 4 * Copyright (c) 2013 Viktor Tusa <tusa@balabit.hu> 5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms of the GNU General Public License version 2 as published 8 * by the Free Software Foundation, or (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 * 19 * As an additional exemption you are allowed to compile & link against the 20 * OpenSSL libraries as published by the OpenSSL project. See the file 21 * COPYING for details. 22 * 23 */ 24 25 #ifndef AFSTOMP_H_INCLUDED 26 #define AFSTOMP_H_INCLUDED 27 28 #include "driver.h" 29 #include "value-pairs/value-pairs.h" 30 31 LogDriver *afstomp_dd_new(GlobalConfig *cfg); 32 33 void afstomp_dd_set_host(LogDriver *d, const gchar *host); 34 void afstomp_dd_set_port(LogDriver *d, gint port); 35 void afstomp_dd_set_destination(LogDriver *d, const gchar *destination); 36 void afstomp_dd_set_body(LogDriver *d, LogTemplate *body_template); 37 void afstomp_dd_set_persistent(LogDriver *d, gboolean persistent); 38 void afstomp_dd_set_ack(LogDriver *d, gboolean ack); 39 void afstomp_dd_set_user(LogDriver *d, const gchar *user); 40 void afstomp_dd_set_password(LogDriver *d, const gchar *password); 41 void afstomp_dd_set_value_pairs(LogDriver *d, ValuePairs *vp); 42 43 LogTemplateOptions *afstomp_dd_get_template_options(LogDriver *s); 44 45 46 #endif 47