Open SCAP Library
reporter_priv.h
Go to the documentation of this file.
1 /*
2  * Copyright 2010 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  * Lukas Kuklinek <lkuklinek@redhat.com>
21  */
22 
28 #ifndef OSCAP_REPORTER_PRIV_H_
29 #define OSCAP_REPORTER_PRIV_H_
30 
31 #include "public/reporter.h"
32 #include "util.h"
33 #include <libxml/xmlerror.h>
34 
35 OSCAP_HIDDEN_START;
36 
45  oscap_reporter reporter;
46  void *arg;
47  void *user;
48 };
49 
51 #define XREPORTER(r) ((struct oscap_reporter*) r)
52 
60 bool oscap_reporter_message_set_string(struct oscap_reporter_message *obj, const char *newval);
62 bool oscap_reporter_message_set_user1str(struct oscap_reporter_message *msg, const char *newval);
66 bool oscap_reporter_message_set_user1ptr(struct oscap_reporter_message *msg, void *newval);
68 bool oscap_reporter_message_set_user2str(struct oscap_reporter_message *msg, const char *newval);
72 bool oscap_reporter_message_set_user2ptr(struct oscap_reporter_message *msg, void *newval);
74 bool oscap_reporter_message_set_user3str(struct oscap_reporter_message *msg, const char *newval);
78 bool oscap_reporter_message_set_user3ptr(struct oscap_reporter_message *msg, void *newval);
81 
86 void oscap_reporter_report_xml(struct oscap_reporter_context *rctxt, xmlErrorPtr error);
87 
92 void oscap_reporter_report_libc(oscap_reporter reporter, void *arg);
93 
97 OSCAP_HIDDEN_END;
98 
99 #endif // OSCAP_REPORTER_PRIV_H_
100