Imported Upstream version 2.4.3
[platform/upstream/audit.git] / auparse / private.h
1 /* private.h -- 
2  * Copyright 2007,2013 Red Hat Inc., Durham, North Carolina.
3  * All Rights Reserved.
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library 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 GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18  * 
19  * Authors:
20  *      Steve Grubb <sgrubb@redhat.com>
21  */
22 #ifndef _PRIVATE_H_
23 #define _PRIVATE_H_
24
25 #include "auparse.h"
26 #include "libaudit.h"
27 #include "dso.h"
28
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32
33 /* Internal syslog messaging */
34 #define audit_msg auparse_msg
35 #define set_aumessage_mode set_aup_message_mode
36 void auparse_msg(int priority, const char *fmt, ...) hidden
37 #ifdef __GNUC__
38         __attribute__ ((format (printf, 2, 3)));
39 #else
40         ;
41 #endif
42 void set_aumessage_mode(message_t mode, debug_message_t debug) hidden;
43
44 char *audit_strsplit_r(char *s, char **savedpp);
45 char *audit_strsplit(char *s);
46 hidden_proto(audit_strsplit_r)
47 hidden_proto(audit_strsplit)
48
49 #ifdef __cplusplus
50 }
51 #endif
52
53 #endif
54