Imported Upstream version 2.4.3
[platform/upstream/audit.git] / audisp / audispd-builtins.h
1 /*
2 * audispd-builtins.h - Minimal linked list library
3 * Copyright (c) 2007,2013 Red Hat Inc., Durham, North Carolina.
4 * All Rights Reserved. 
5 *
6 * This software may be freely redistributed and/or modified under the
7 * terms of the GNU General Public License as published by the Free
8 * Software Foundation; either version 2, or (at your option) any
9 * later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; see the file COPYING. If not, write to the
18 * Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 *
20 * Authors:
21 *   Steve Grubb <sgrubb@redhat.com>
22 */
23
24 #ifndef AUDISPD_BUILTINS_HEADER
25 #define AUDISPD_BUILTINS_HEADER
26
27 #include "queue.h"
28
29 void start_builtin(plugin_conf_t *conf);
30 void stop_builtin(plugin_conf_t *conf);
31 void send_af_unix_string(const char *s, unsigned int len);
32 void send_af_unix_binary(event_t *e);
33 void destroy_af_unix(void);
34 void send_syslog(const char *s);
35 void destroy_syslog(void);
36
37 typedef void (*poll_callback_ptr)(int fd);
38 int add_event(int fd, poll_callback_ptr cb);
39 int remove_event(int fd);
40
41
42 #endif
43