00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00028 #ifndef OSCAP_REPORTER_PRIV_H_
00029 #define OSCAP_REPORTER_PRIV_H_
00030
00031 #include "public/reporter.h"
00032 #include "util.h"
00033 #include <libxml/xmlerror.h>
00034
00035 OSCAP_HIDDEN_START;
00036
00044 struct oscap_reporter_context {
00045 oscap_reporter reporter;
00046 void *arg;
00047 };
00048
00050 #define XREPORTER(r) ((struct oscap_reporter*) r)
00051
00053 void oscap_reporter_message_free(struct oscap_reporter_message *msg);
00055 bool oscap_reporter_message_set_family(struct oscap_reporter_message *obj, oscap_reporter_family_t newval);
00057 bool oscap_reporter_message_set_code(struct oscap_reporter_message *obj, oscap_reporter_code_t newval);
00059 bool oscap_reporter_message_set_string(struct oscap_reporter_message *obj, const char *newval);
00061 bool oscap_reporter_message_set_user1str(struct oscap_reporter_message *msg, const char *newval);
00063 bool oscap_reporter_message_set_user1num(struct oscap_reporter_message *msg, int newval);
00065 bool oscap_reporter_message_set_user1ptr(struct oscap_reporter_message *msg, void *newval);
00067 bool oscap_reporter_message_set_user2str(struct oscap_reporter_message *msg, const char *newval);
00069 bool oscap_reporter_message_set_user2num(struct oscap_reporter_message *msg, int newval);
00071 bool oscap_reporter_message_set_user2ptr(struct oscap_reporter_message *msg, void *newval);
00073 bool oscap_reporter_message_set_user3str(struct oscap_reporter_message *msg, const char *newval);
00075 bool oscap_reporter_message_set_user3num(struct oscap_reporter_message *msg, int newval);
00077 bool oscap_reporter_message_set_user3ptr(struct oscap_reporter_message *msg, void *newval);
00079 struct oscap_reporter_message *oscap_reporter_message_new_arg(oscap_reporter_family_t family, oscap_reporter_code_t code, const char *fmt, va_list ap);
00080
00085 void oscap_reporter_report_xml(struct oscap_reporter_context *rctxt, xmlErrorPtr error);
00086
00091 void oscap_reporter_report_libc(oscap_reporter reporter, void *arg);
00092
00096 OSCAP_HIDDEN_END;
00097
00098 #endif // OSCAP_REPORTER_PRIV_H_
00099