1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539
|
\hypertarget{group__Reporters}{
\section{Reporters}
\label{group__Reporters}\index{Reporters@{Reporters}}
}
Reporting mechanism.
\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item
struct \hyperlink{structoscap__reporter__message}{oscap\_\-reporter\_\-message}
\begin{DoxyCompactList}\small\item\em Represents a message to be reported. \item\end{DoxyCompactList}\item
struct \hyperlink{structoscap__reporter__type}{oscap\_\-reporter\_\-type}
\begin{DoxyCompactList}\small\item\em Reporter type. \item\end{DoxyCompactList}\item
struct \hyperlink{structoscap__reporter}{oscap\_\-reporter}
\begin{DoxyCompactList}\small\item\em Reporter instance. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Defines}
\begin{DoxyCompactItemize}
\item
\hypertarget{group__Reporters_ga77f207ed1eed4910e5eb8358f33c6e7c}{
\#define \hyperlink{group__Reporters_ga77f207ed1eed4910e5eb8358f33c6e7c}{OSCAP\_\-REPORTER\_\-ALL}~0, \hyperlink{group__Reporters_gab369d5ef0521bb171dca43d5dc7b4636}{OSCAP\_\-REPORTER\_\-CODE\_\-MAX}}
\label{group__Reporters_ga77f207ed1eed4910e5eb8358f33c6e7c}
\begin{DoxyCompactList}\small\item\em Macro to match whole code range. \item\end{DoxyCompactList}\item
\hypertarget{group__Reporters_gad1be845e72247a6fef4674497fae4eac}{
\#define \hyperlink{group__Reporters_gad1be845e72247a6fef4674497fae4eac}{XREPORTER}(r)~((struct \hyperlink{structoscap__reporter}{oscap\_\-reporter}$\ast$) r)}
\label{group__Reporters_gad1be845e72247a6fef4674497fae4eac}
\begin{DoxyCompactList}\small\item\em Reporter cast. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item
\hypertarget{group__Reporters_ga9958de4d24744d816480c94796014c0a}{
typedef enum \hyperlink{group__Reporters_gaa524578d6cdd09a090251f389a42193e}{oscap\_\-reporter\_\-family} \hyperlink{group__Reporters_ga9958de4d24744d816480c94796014c0a}{oscap\_\-reporter\_\-family\_\-t}}
\label{group__Reporters_ga9958de4d24744d816480c94796014c0a}
\begin{DoxyCompactList}\small\item\em Reporter message family. \item\end{DoxyCompactList}\item
\hypertarget{group__Reporters_gabea6171ab5d5780073321cfe7687a715}{
typedef unsigned int \hyperlink{group__Reporters_gabea6171ab5d5780073321cfe7687a715}{oscap\_\-reporter\_\-code\_\-t}}
\label{group__Reporters_gabea6171ab5d5780073321cfe7687a715}
\begin{DoxyCompactList}\small\item\em Reporter message code type. \item\end{DoxyCompactList}\item
typedef bool($\ast$ \hyperlink{group__Reporters_ga129619e51708aeefb3895ddc4009d8a7}{oscap\_\-reporter\_\-init\_\-func} )(void $\ast$$\ast$user)
\begin{DoxyCompactList}\small\item\em Function porototype for reporter initialisation. \item\end{DoxyCompactList}\item
typedef void($\ast$ \hyperlink{group__Reporters_ga0df6aa1cdb494d80c86a23dfbb4fcc3d}{oscap\_\-reporter\_\-report\_\-func} )(const struct \hyperlink{structoscap__reporter__message}{oscap\_\-reporter\_\-message} $\ast$msg, void $\ast$user)
\begin{DoxyCompactList}\small\item\em Function porototype for reporting a message. \item\end{DoxyCompactList}\item
typedef void($\ast$ \hyperlink{group__Reporters_gadbcba2c8f868c6d9911f84baa4205ace}{oscap\_\-reporter\_\-destroy\_\-func} )(void $\ast$user)
\begin{DoxyCompactList}\small\item\em Function porototype for destroying a reporter. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Enumerations}
\begin{DoxyCompactItemize}
\item
enum \hyperlink{group__Reporters_gaa524578d6cdd09a090251f389a42193e}{oscap\_\-reporter\_\-family} \{ {\bfseries OSCAP\_\-REPORTER\_\-FAMILY\_\-XML} = 1,
{\bfseries OSCAP\_\-REPORTER\_\-FAMILY\_\-USER\_\-START} = 1024
\}
\begin{DoxyCompactList}\small\item\em Reporter message family. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item
struct \hyperlink{structoscap__reporter__message}{oscap\_\-reporter\_\-message} $\ast$ \hyperlink{group__Reporters_ga128b0e1e7e32b808784e64f7915b849b}{oscap\_\-reporter\_\-message::oscap\_\-reporter\_\-message\_\-new} (void)
\item
struct \hyperlink{structoscap__reporter__message}{oscap\_\-reporter\_\-message} $\ast$ \hyperlink{group__Reporters_gacc16aa1839367828f42f45e24e8b08e9}{oscap\_\-reporter\_\-message::oscap\_\-reporter\_\-message\_\-new\_\-fill} (\hyperlink{group__Reporters_ga9958de4d24744d816480c94796014c0a}{oscap\_\-reporter\_\-family\_\-t} family, \hyperlink{group__Reporters_gabea6171ab5d5780073321cfe7687a715}{oscap\_\-reporter\_\-code\_\-t} code, const char $\ast$string)
\item
struct \hyperlink{structoscap__reporter__message}{oscap\_\-reporter\_\-message} $\ast$ \hyperlink{group__Reporters_gab5ae2a139387dd6a37348af0d208926b}{oscap\_\-reporter\_\-message::oscap\_\-reporter\_\-message\_\-new\_\-arg} (\hyperlink{group__Reporters_ga9958de4d24744d816480c94796014c0a}{oscap\_\-reporter\_\-family\_\-t} family, \hyperlink{group__Reporters_gabea6171ab5d5780073321cfe7687a715}{oscap\_\-reporter\_\-code\_\-t} code, const char $\ast$fmt, va\_\-list ap)
\item
struct \hyperlink{structoscap__reporter__message}{oscap\_\-reporter\_\-message} $\ast$ \hyperlink{group__Reporters_ga31c86db4139bd327cc8c1503e0677d9e}{oscap\_\-reporter\_\-message::oscap\_\-reporter\_\-message\_\-new\_\-fmt} (\hyperlink{group__Reporters_ga9958de4d24744d816480c94796014c0a}{oscap\_\-reporter\_\-family\_\-t} family, \hyperlink{group__Reporters_gabea6171ab5d5780073321cfe7687a715}{oscap\_\-reporter\_\-code\_\-t} code, const char $\ast$fmt,...)
\item
struct \hyperlink{structoscap__reporter__message}{oscap\_\-reporter\_\-message} $\ast$ \hyperlink{group__Reporters_ga07b28d63edf853c4c93d4bc49f9ffb42}{oscap\_\-reporter\_\-message::oscap\_\-reporter\_\-message\_\-clone} (const struct \hyperlink{structoscap__reporter__message}{oscap\_\-reporter\_\-message} $\ast$msg)
\item
\hyperlink{group__Reporters_ga9958de4d24744d816480c94796014c0a}{oscap\_\-reporter\_\-family\_\-t} \hyperlink{group__Reporters_ga3ff942948fe9614c4b38f5f14a328f26}{oscap\_\-reporter\_\-message::oscap\_\-reporter\_\-message\_\-get\_\-family} (const struct \hyperlink{structoscap__reporter__message}{oscap\_\-reporter\_\-message} $\ast$item)
\item
\hyperlink{group__Reporters_gabea6171ab5d5780073321cfe7687a715}{oscap\_\-reporter\_\-code\_\-t} \hyperlink{group__Reporters_ga1a8ff34a7dfac72b7c9ff73ea5b1d781}{oscap\_\-reporter\_\-message::oscap\_\-reporter\_\-message\_\-get\_\-code} (const struct \hyperlink{structoscap__reporter__message}{oscap\_\-reporter\_\-message} $\ast$item)
\item
const char $\ast$ \hyperlink{group__Reporters_ga17e3cb8cb235c34d5c4a6b1052fd63ae}{oscap\_\-reporter\_\-message::oscap\_\-reporter\_\-message\_\-get\_\-string} (const struct \hyperlink{structoscap__reporter__message}{oscap\_\-reporter\_\-message} $\ast$item)
\item
const char $\ast$ \hyperlink{group__Reporters_ga2088ef45d8e8e77759d9e8e83f498bcc}{oscap\_\-reporter\_\-message::oscap\_\-reporter\_\-message\_\-get\_\-user1str} (const struct \hyperlink{structoscap__reporter__message}{oscap\_\-reporter\_\-message} $\ast$msg)
\item
int \hyperlink{group__Reporters_gaedd88a92930d41be0af875d5720294e2}{oscap\_\-reporter\_\-message::oscap\_\-reporter\_\-message\_\-get\_\-user1num} (const struct \hyperlink{structoscap__reporter__message}{oscap\_\-reporter\_\-message} $\ast$msg)
\item
void $\ast$ \hyperlink{group__Reporters_ga90b8581f5908404e8d0cb7ffca028dd4}{oscap\_\-reporter\_\-message::oscap\_\-reporter\_\-message\_\-get\_\-user1ptr} (const struct \hyperlink{structoscap__reporter__message}{oscap\_\-reporter\_\-message} $\ast$msg)
\item
const char $\ast$ \hyperlink{group__Reporters_ga6926dbbf42758651b9ddb0b1fdfe80b3}{oscap\_\-reporter\_\-message::oscap\_\-reporter\_\-message\_\-get\_\-user2str} (const struct \hyperlink{structoscap__reporter__message}{oscap\_\-reporter\_\-message} $\ast$msg)
\item
int \hyperlink{group__Reporters_gad8840eb1db5184a5345690c63b4113fb}{oscap\_\-reporter\_\-message::oscap\_\-reporter\_\-message\_\-get\_\-user2num} (const struct \hyperlink{structoscap__reporter__message}{oscap\_\-reporter\_\-message} $\ast$msg)
\item
void $\ast$ \hyperlink{group__Reporters_ga08eca2b8cb49a1e3f535b314d60382f6}{oscap\_\-reporter\_\-message::oscap\_\-reporter\_\-message\_\-get\_\-user2ptr} (const struct \hyperlink{structoscap__reporter__message}{oscap\_\-reporter\_\-message} $\ast$msg)
\item
const char $\ast$ \hyperlink{group__Reporters_ga89ca0faf7e28540759389f3469f3cf98}{oscap\_\-reporter\_\-message::oscap\_\-reporter\_\-message\_\-get\_\-user3str} (const struct \hyperlink{structoscap__reporter__message}{oscap\_\-reporter\_\-message} $\ast$msg)
\item
int \hyperlink{group__Reporters_ga899d3ef9a868dbfd2a9ab305ac20aff7}{oscap\_\-reporter\_\-message::oscap\_\-reporter\_\-message\_\-get\_\-user3num} (const struct \hyperlink{structoscap__reporter__message}{oscap\_\-reporter\_\-message} $\ast$msg)
\item
void $\ast$ \hyperlink{group__Reporters_gac11910bfa402ce779215101223cad7ba}{oscap\_\-reporter\_\-message::oscap\_\-reporter\_\-message\_\-get\_\-user3ptr} (const struct \hyperlink{structoscap__reporter__message}{oscap\_\-reporter\_\-message} $\ast$msg)
\item
struct \hyperlink{structoscap__reporter__type}{oscap\_\-reporter\_\-type} $\ast$ \hyperlink{group__Reporters_ga6113dcd32a3ea7ee6008552a963244ea}{oscap\_\-reporter\_\-type::oscap\_\-reporter\_\-type\_\-new} (\hyperlink{group__Reporters_ga129619e51708aeefb3895ddc4009d8a7}{oscap\_\-reporter\_\-init\_\-func} init, \hyperlink{group__Reporters_ga0df6aa1cdb494d80c86a23dfbb4fcc3d}{oscap\_\-reporter\_\-report\_\-func} report, \hyperlink{group__Reporters_gadbcba2c8f868c6d9911f84baa4205ace}{oscap\_\-reporter\_\-destroy\_\-func} destroy)
\begin{DoxyCompactList}\small\item\em Create a new reporter type. \item\end{DoxyCompactList}\item
void \hyperlink{group__Reporters_ga822c06ccf7401aadc73e11256befbc0d}{oscap\_\-reporter\_\-type::oscap\_\-reporter\_\-type\_\-free} (struct \hyperlink{structoscap__reporter__type}{oscap\_\-reporter\_\-type} $\ast$reptype)
\item
struct \hyperlink{structoscap__reporter}{oscap\_\-reporter} $\ast$ \hyperlink{group__Reporters_gadf1ddca067c1d7c9badbada6ce1e5efb}{oscap\_\-reporter::oscap\_\-reporter\_\-new} (const struct \hyperlink{structoscap__reporter__type}{oscap\_\-reporter\_\-type} $\ast$type, void $\ast$user)
\begin{DoxyCompactList}\small\item\em Create a new reporter of given type. \item\end{DoxyCompactList}\item
void \hyperlink{group__Reporters_gaac027dea48263e1b7de11a6238a82778}{oscap\_\-reporter::oscap\_\-reporter\_\-free} (struct \hyperlink{structoscap__reporter}{oscap\_\-reporter} $\ast$reporter)
\item
void \hyperlink{group__Reporters_ga5246095da903839dfcc22073cef4c907}{oscap\_\-reporter::oscap\_\-reporter\_\-dispatch} (struct \hyperlink{structoscap__reporter}{oscap\_\-reporter} $\ast$reporter, const struct \hyperlink{structoscap__reporter__message}{oscap\_\-reporter\_\-message} $\ast$msg)
\begin{DoxyCompactList}\small\item\em Forward a message to a reporter. \item\end{DoxyCompactList}\item
void \hyperlink{group__Reporters_ga93a7de375fcf4507df3e7db4a0e31464}{oscap\_\-reporter::oscap\_\-reporter\_\-report} (struct \hyperlink{structoscap__reporter}{oscap\_\-reporter} $\ast$reporter, struct \hyperlink{structoscap__reporter__message}{oscap\_\-reporter\_\-message} $\ast$msg)
\begin{DoxyCompactList}\small\item\em Do report. \item\end{DoxyCompactList}\item
void \hyperlink{group__Reporters_gaf467a448b5bbbc1f11ae7654608f834a}{oscap\_\-reporter::oscap\_\-reporter\_\-report\_\-fmt} (struct \hyperlink{structoscap__reporter}{oscap\_\-reporter} $\ast$reporter, \hyperlink{group__Reporters_ga9958de4d24744d816480c94796014c0a}{oscap\_\-reporter\_\-family\_\-t} family, \hyperlink{group__Reporters_gabea6171ab5d5780073321cfe7687a715}{oscap\_\-reporter\_\-code\_\-t} code, const char $\ast$fmt,...)
\item
const char $\ast$ \hyperlink{group__Reporters_ga1396a3a5ce0fa2e020d5fa0a98488198}{oscap\_\-reporter::oscap\_\-reporter\_\-get\_\-userdata} (const struct \hyperlink{structoscap__reporter}{oscap\_\-reporter} $\ast$item)
\item
bool \hyperlink{group__Reporters_gaad5c3f855e30c34d3cc594a136bb5348}{oscap\_\-reporter::oscap\_\-reporter\_\-set\_\-userdata} (struct \hyperlink{structoscap__reporter}{oscap\_\-reporter} $\ast$obj, const char $\ast$newval)
\item
void \hyperlink{group__Reporters_ga97c2395dd3ccc8dd55c31215ca86feb6}{oscap\_\-reporter\_\-message::oscap\_\-reporter\_\-message\_\-free} (struct \hyperlink{structoscap__reporter__message}{oscap\_\-reporter\_\-message} $\ast$msg)
\item
bool \hyperlink{group__Reporters_ga27c96033c163ac244ea330e33c135a37}{oscap\_\-reporter\_\-message::oscap\_\-reporter\_\-message\_\-set\_\-family} (struct \hyperlink{structoscap__reporter__message}{oscap\_\-reporter\_\-message} $\ast$obj, \hyperlink{group__Reporters_ga9958de4d24744d816480c94796014c0a}{oscap\_\-reporter\_\-family\_\-t} newval)
\item
bool \hyperlink{group__Reporters_gaa18d504462f95063550e23e9172f89cb}{oscap\_\-reporter\_\-message::oscap\_\-reporter\_\-message\_\-set\_\-code} (struct \hyperlink{structoscap__reporter__message}{oscap\_\-reporter\_\-message} $\ast$obj, \hyperlink{group__Reporters_gabea6171ab5d5780073321cfe7687a715}{oscap\_\-reporter\_\-code\_\-t} newval)
\item
bool \hyperlink{group__Reporters_ga3b2213738b5e3075f79ee32959c894e4}{oscap\_\-reporter\_\-message::oscap\_\-reporter\_\-message\_\-set\_\-string} (struct \hyperlink{structoscap__reporter__message}{oscap\_\-reporter\_\-message} $\ast$obj, const char $\ast$newval)
\item
bool \hyperlink{group__Reporters_gace579a933c21df2ff864b62a2773fe1e}{oscap\_\-reporter\_\-message::oscap\_\-reporter\_\-message\_\-set\_\-user1str} (struct \hyperlink{structoscap__reporter__message}{oscap\_\-reporter\_\-message} $\ast$msg, const char $\ast$newval)
\item
bool \hyperlink{group__Reporters_ga226d7243411b4dbe32ac78a601ac54f5}{oscap\_\-reporter\_\-message::oscap\_\-reporter\_\-message\_\-set\_\-user1num} (struct \hyperlink{structoscap__reporter__message}{oscap\_\-reporter\_\-message} $\ast$msg, int newval)
\item
bool \hyperlink{group__Reporters_ga27f99e719a7119420658181eab4d68b1}{oscap\_\-reporter\_\-message::oscap\_\-reporter\_\-message\_\-set\_\-user1ptr} (struct \hyperlink{structoscap__reporter__message}{oscap\_\-reporter\_\-message} $\ast$msg, void $\ast$newval)
\item
bool \hyperlink{group__Reporters_ga80cb30f28732e3fbc7c9129146e3294e}{oscap\_\-reporter\_\-message::oscap\_\-reporter\_\-message\_\-set\_\-user2str} (struct \hyperlink{structoscap__reporter__message}{oscap\_\-reporter\_\-message} $\ast$msg, const char $\ast$newval)
\item
bool \hyperlink{group__Reporters_gaecff54e7b8c7025c7029dc1d933f1dad}{oscap\_\-reporter\_\-message::oscap\_\-reporter\_\-message\_\-set\_\-user2num} (struct \hyperlink{structoscap__reporter__message}{oscap\_\-reporter\_\-message} $\ast$msg, int newval)
\item
bool \hyperlink{group__Reporters_ga4085262274793b780f91b5ba759c432f}{oscap\_\-reporter\_\-message::oscap\_\-reporter\_\-message\_\-set\_\-user2ptr} (struct \hyperlink{structoscap__reporter__message}{oscap\_\-reporter\_\-message} $\ast$msg, void $\ast$newval)
\item
bool \hyperlink{group__Reporters_ga0934588ce9cb61b225ab7b9fda0bb971}{oscap\_\-reporter\_\-message::oscap\_\-reporter\_\-message\_\-set\_\-user3str} (struct \hyperlink{structoscap__reporter__message}{oscap\_\-reporter\_\-message} $\ast$msg, const char $\ast$newval)
\item
bool \hyperlink{group__Reporters_gae751518f8639a2894f7f8980004fcc8c}{oscap\_\-reporter\_\-message::oscap\_\-reporter\_\-message\_\-set\_\-user3num} (struct \hyperlink{structoscap__reporter__message}{oscap\_\-reporter\_\-message} $\ast$msg, int newval)
\item
bool \hyperlink{group__Reporters_ga5f0ad89c56b2b324e706d03f43814f68}{oscap\_\-reporter\_\-message::oscap\_\-reporter\_\-message\_\-set\_\-user3ptr} (struct \hyperlink{structoscap__reporter__message}{oscap\_\-reporter\_\-message} $\ast$msg, void $\ast$newval)
\item
\hypertarget{group__Reporters_ga7939e47693860d077e47d897cb676969}{
void \hyperlink{group__Reporters_ga7939e47693860d077e47d897cb676969}{oscap\_\-reporter::oscap\_\-reporter\_\-report\_\-xml} (struct \hyperlink{structoscap__reporter}{oscap\_\-reporter} $\ast$reporter, xmlErrorPtr error)}
\label{group__Reporters_ga7939e47693860d077e47d897cb676969}
\begin{DoxyCompactList}\small\item\em Feed a XML error to the reporter. \item\end{DoxyCompactList}\item
\hypertarget{group__Reporters_ga654853679c7272ef152ebb18aa38e061}{
void \hyperlink{group__Reporters_ga654853679c7272ef152ebb18aa38e061}{oscap\_\-reporter::oscap\_\-reporter\_\-report\_\-libc} (struct \hyperlink{structoscap__reporter}{oscap\_\-reporter} $\ast$reporter)}
\label{group__Reporters_ga654853679c7272ef152ebb18aa38e061}
\begin{DoxyCompactList}\small\item\em Report standard C error (errno based) to a reporter. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item
\hypertarget{group__Reporters_gab369d5ef0521bb171dca43d5dc7b4636}{
const \hyperlink{group__Reporters_gabea6171ab5d5780073321cfe7687a715}{oscap\_\-reporter\_\-code\_\-t} \hyperlink{group__Reporters_gab369d5ef0521bb171dca43d5dc7b4636}{OSCAP\_\-REPORTER\_\-CODE\_\-MAX}}
\label{group__Reporters_gab369d5ef0521bb171dca43d5dc7b4636}
\begin{DoxyCompactList}\small\item\em Maximum code. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Standard reporters}
\label{_amgrp23eaab65b88d3cabda3f9e413e08052f}
\begin{DoxyCompactItemize}
\item
struct \hyperlink{structoscap__reporter__type}{oscap\_\-reporter\_\-type} \hyperlink{group__Reporters_ga70cb37c716f8ce68ff4f20ecc2895c04}{oscap\_\-reporter::OSCAP\_\-REPORTER\_\-STDOUT}
\begin{DoxyCompactList}\small\item\em Standard output reporter. \item\end{DoxyCompactList}\item
struct \hyperlink{structoscap__reporter__type}{oscap\_\-reporter\_\-type} \hyperlink{group__Reporters_gada559d363b02a3fae9647e044a3bb5f1}{oscap\_\-reporter::OSCAP\_\-REPORTER\_\-MULTI}
\begin{DoxyCompactList}\small\item\em Reporter to multiple other reporters. \item\end{DoxyCompactList}\item
void \hyperlink{group__Reporters_gad8223c271be6d6adbd418b1e7aefe5e9}{oscap\_\-reporter::oscap\_\-reporter\_\-multi\_\-add\_\-reporter} (struct \hyperlink{structoscap__reporter}{oscap\_\-reporter} $\ast$multi, struct \hyperlink{structoscap__reporter}{oscap\_\-reporter} $\ast$reporter)
\begin{DoxyCompactList}\small\item\em Add a subreporter to given multireporter. \item\end{DoxyCompactList}\item
struct \hyperlink{structoscap__reporter}{oscap\_\-reporter} $\ast$ \hyperlink{group__Reporters_ga52380231fa87e51e08902c26137e441a}{oscap\_\-reporter::oscap\_\-reporter\_\-new\_\-filter} (struct \hyperlink{structoscap__reporter}{oscap\_\-reporter} $\ast$pos\_\-child, struct \hyperlink{structoscap__reporter}{oscap\_\-reporter} $\ast$neg\_\-child, \hyperlink{group__Reporters_ga9958de4d24744d816480c94796014c0a}{oscap\_\-reporter\_\-family\_\-t} family, \hyperlink{group__Reporters_gabea6171ab5d5780073321cfe7687a715}{oscap\_\-reporter\_\-code\_\-t} min\_\-code, \hyperlink{group__Reporters_gabea6171ab5d5780073321cfe7687a715}{oscap\_\-reporter\_\-code\_\-t} max\_\-code)
\begin{DoxyCompactList}\small\item\em Create a new filtering reporter. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection{Detailed Description}
Reporting mechanism. Can be used for e.g. returning individual errors during a SCAP document validation, reporting progress of some processing etc.
Aim of reporters is to separate message content from their final representation and provide reasonable modularity. You can have reporters that print messages, log messages to a file, update a GUI and more.
\begin{DoxyParagraph}{Reporter types}
\end{DoxyParagraph}
Reporter types are represented by \hyperlink{structoscap__reporter__type}{oscap\_\-reporter\_\-type} structure.
Simple printing messages to the standard is provided by the library. There are also special reporters that forward messaged to more than one other reporter (\hyperlink{group__Reporters_gada559d363b02a3fae9647e044a3bb5f1}{OSCAP\_\-REPORTER\_\-MULTI}) or filter messages based on message code and family and forward them to one or other reporter (see \hyperlink{group__Reporters_ga52380231fa87e51e08902c26137e441a}{oscap\_\-reporter\_\-new\_\-filter()}).
\hyperlink{group__Reporters_ga6113dcd32a3ea7ee6008552a963244ea}{oscap\_\-reporter\_\-type\_\-new()} can be used to define your own reporter type. It consists of three callbacks: init, report, and destroy.
\begin{DoxyParagraph}{Handling messages}
\end{DoxyParagraph}
Messages (\hyperlink{structoscap__reporter__message}{oscap\_\-reporter\_\-message}) are organized in families to avoid code clashes. Message code distiguishes different types of messages. In addition to that, messages cointain human-\/readable string description of the event.
It is also possible to attach up to three machine-\/readable items to the message. These are domain-\/specific for given family or even code and shall be well-\/documented so they can be handeled properly.
One function that makes use of reporters is \hyperlink{group__IMPORTEXPORT_ga7c8e94dec2308548caf4fc129329333f}{oscap\_\-validate\_\-xml()}. It takes XML file name, schema file name and a reporter as a last parameter. To print encountered defects to standard output, you would use it as follows:
\begin{DoxyCode}
struct oscap_reporter *reporter = oscap_reporter_new(&OSCAP_REPORTER_STDOUT, NUL
L);
oscap_validate_xml(xmlfilename, schemafilename, reporter);
oscap_reporter_free(reporter);
\end{DoxyCode}
With special reporters you can for example write all the messages to a file, validation-\/related messages to standard output and other messages (e.g. xinclude substitution failure, schema errors) to standard error, creating a hierarchy of reporters. Note you release only the top-\/level reporter. It is assumed that my\_\-$\ast$\_\-reporter\_\-type are previously created by the user.
\begin{DoxyCode}
struct oscap_reporter *reporter = oscap_reporter_new(&OSCAP_REPORTER_MULTI, NULL
);
oscap_reporter_multi_add_reporter(reporter, oscap_reporter_new(my_file_reporter_
type, "validation.log"));
oscap_reporter_multi_add_reporter(reporter,
oscap_reporter_new_filter(
oscap_reporter_new(&OSCAP_REPORTER_STDOUT, NULL),
oscap_reporter_new(my_stderr_reporter_type, NULL),
OSCAP_REPORTER_FAMILY_XML, XML_SCHEMAV_NOROOT, XML_SCHEMAV_MISC
)
);
oscap_validate_xml(xmlfilename, schemafilename, reporter);
oscap_reporter_free(reporter);
\end{DoxyCode}
\begin{center}
\begin{DoxyImageNoCaption}
\mbox{\includegraphics{inline_dotgraph_1}}
\end{DoxyImageNoCaption}
\end{center}
\begin{DoxyParagraph}{Sending messages}
\end{DoxyParagraph}
In order to send a message from a function, you have to create the message (\hyperlink{structoscap__reporter__message}{oscap\_\-reporter\_\-message}) and send it. To send a message use \hyperlink{group__Reporters_ga93a7de375fcf4507df3e7db4a0e31464}{oscap\_\-reporter\_\-report()}. To forward a message from one reporter to another (used in the special reporters) use \hyperlink{group__Reporters_ga5246095da903839dfcc22073cef4c907}{oscap\_\-reporter\_\-dispatch()}.
There are also shortcut functions, like \hyperlink{group__Reporters_gaf467a448b5bbbc1f11ae7654608f834a}{oscap\_\-reporter\_\-report\_\-fmt()}, that allows you to create and sen a message in one step.
\subsection{Typedef Documentation}
\hypertarget{group__Reporters_gadbcba2c8f868c6d9911f84baa4205ace}{
\index{Reporters@{Reporters}!oscap\_\-reporter\_\-destroy\_\-func@{oscap\_\-reporter\_\-destroy\_\-func}}
\index{oscap\_\-reporter\_\-destroy\_\-func@{oscap\_\-reporter\_\-destroy\_\-func}!Reporters@{Reporters}}
\subsubsection[{oscap\_\-reporter\_\-destroy\_\-func}]{\setlength{\rightskip}{0pt plus 5cm}typedef void($\ast$ {\bf oscap\_\-reporter\_\-destroy\_\-func})(void $\ast$user)}}
\label{group__Reporters_gadbcba2c8f868c6d9911f84baa4205ace}
Function porototype for destroying a reporter. It is intended to be used to release allocated resources and do necessary cleanup.
\begin{DoxyParams}{Parameters}
\item[{\em user}]User supplied data. \end{DoxyParams}
\hypertarget{group__Reporters_ga129619e51708aeefb3895ddc4009d8a7}{
\index{Reporters@{Reporters}!oscap\_\-reporter\_\-init\_\-func@{oscap\_\-reporter\_\-init\_\-func}}
\index{oscap\_\-reporter\_\-init\_\-func@{oscap\_\-reporter\_\-init\_\-func}!Reporters@{Reporters}}
\subsubsection[{oscap\_\-reporter\_\-init\_\-func}]{\setlength{\rightskip}{0pt plus 5cm}typedef bool($\ast$ {\bf oscap\_\-reporter\_\-init\_\-func})(void $\ast$$\ast$user)}}
\label{group__Reporters_ga129619e51708aeefb3895ddc4009d8a7}
Function porototype for reporter initialisation. The {\itshape user\/} argument is a pointer to the pointer user passed to the \hyperlink{group__Reporters_gadf1ddca067c1d7c9badbada6ce1e5efb}{oscap\_\-reporter\_\-new()} call. You can modify it, if you want/need to.
The function is upposed to return true on success and false on failure. In case of failure \hyperlink{group__Reporters_gadf1ddca067c1d7c9badbada6ce1e5efb}{oscap\_\-reporter\_\-new()} will return NULL.
\begin{DoxyParams}{Parameters}
\item[{\em user}]pointer to user-\/supplied data \end{DoxyParams}
\begin{DoxyReturn}{Returns}
false on failure, true on success
\end{DoxyReturn}
\hypertarget{group__Reporters_ga0df6aa1cdb494d80c86a23dfbb4fcc3d}{
\index{Reporters@{Reporters}!oscap\_\-reporter\_\-report\_\-func@{oscap\_\-reporter\_\-report\_\-func}}
\index{oscap\_\-reporter\_\-report\_\-func@{oscap\_\-reporter\_\-report\_\-func}!Reporters@{Reporters}}
\subsubsection[{oscap\_\-reporter\_\-report\_\-func}]{\setlength{\rightskip}{0pt plus 5cm}typedef void($\ast$ {\bf oscap\_\-reporter\_\-report\_\-func})(const struct {\bf oscap\_\-reporter\_\-message} $\ast$msg, void $\ast$user)}}
\label{group__Reporters_ga0df6aa1cdb494d80c86a23dfbb4fcc3d}
Function porototype for reporting a message. This callback gets called for every reported message.
\begin{DoxyParams}{Parameters}
\item[{\em msg}]Message to be processed by the reporter. \item[{\em user}]User supplied data. \end{DoxyParams}
\subsection{Function Documentation}
\hypertarget{group__Reporters_ga5246095da903839dfcc22073cef4c907}{
\index{Reporters@{Reporters}!oscap\_\-reporter\_\-dispatch@{oscap\_\-reporter\_\-dispatch}}
\index{oscap\_\-reporter\_\-dispatch@{oscap\_\-reporter\_\-dispatch}!Reporters@{Reporters}}
\subsubsection[{oscap\_\-reporter\_\-dispatch}]{\setlength{\rightskip}{0pt plus 5cm}void oscap\_\-reporter\_\-dispatch (struct {\bf oscap\_\-reporter} $\ast$ {\em reporter}, \/ const struct {\bf oscap\_\-reporter\_\-message} $\ast$ {\em msg})\hspace{0.3cm}{\ttfamily \mbox{[}inherited\mbox{]}}}}
\label{group__Reporters_ga5246095da903839dfcc22073cef4c907}
Forward a message to a reporter.
\begin{DoxyParams}{Parameters}
\item[{\em msg}]message to be sent / forwarded \end{DoxyParams}
\hypertarget{group__Reporters_gaac027dea48263e1b7de11a6238a82778}{
\index{Reporters@{Reporters}!oscap\_\-reporter\_\-free@{oscap\_\-reporter\_\-free}}
\index{oscap\_\-reporter\_\-free@{oscap\_\-reporter\_\-free}!Reporters@{Reporters}}
\subsubsection[{oscap\_\-reporter\_\-free}]{\setlength{\rightskip}{0pt plus 5cm}void oscap\_\-reporter\_\-free (struct {\bf oscap\_\-reporter} $\ast$ {\em reporter})\hspace{0.3cm}{\ttfamily \mbox{[}inherited\mbox{]}}}}
\label{group__Reporters_gaac027dea48263e1b7de11a6238a82778}
\hypertarget{group__Reporters_ga1396a3a5ce0fa2e020d5fa0a98488198}{
\index{Reporters@{Reporters}!oscap\_\-reporter\_\-get\_\-userdata@{oscap\_\-reporter\_\-get\_\-userdata}}
\index{oscap\_\-reporter\_\-get\_\-userdata@{oscap\_\-reporter\_\-get\_\-userdata}!Reporters@{Reporters}}
\subsubsection[{oscap\_\-reporter\_\-get\_\-userdata}]{\setlength{\rightskip}{0pt plus 5cm}const char $\ast$ oscap\_\-reporter\_\-get\_\-userdata (const struct {\bf oscap\_\-reporter} $\ast$ {\em item})\hspace{0.3cm}{\ttfamily \mbox{[}inherited\mbox{]}}}}
\label{group__Reporters_ga1396a3a5ce0fa2e020d5fa0a98488198}
\hypertarget{group__Reporters_ga07b28d63edf853c4c93d4bc49f9ffb42}{
\index{Reporters@{Reporters}!oscap\_\-reporter\_\-message\_\-clone@{oscap\_\-reporter\_\-message\_\-clone}}
\index{oscap\_\-reporter\_\-message\_\-clone@{oscap\_\-reporter\_\-message\_\-clone}!Reporters@{Reporters}}
\subsubsection[{oscap\_\-reporter\_\-message\_\-clone}]{\setlength{\rightskip}{0pt plus 5cm}struct {\bf oscap\_\-reporter\_\-message} $\ast$ oscap\_\-reporter\_\-message\_\-clone (const struct {\bf oscap\_\-reporter\_\-message} $\ast$ {\em msg})\hspace{0.3cm}{\ttfamily \mbox{[}read, inherited\mbox{]}}}}
\label{group__Reporters_ga07b28d63edf853c4c93d4bc49f9ffb42}
\hypertarget{group__Reporters_ga97c2395dd3ccc8dd55c31215ca86feb6}{
\index{Reporters@{Reporters}!oscap\_\-reporter\_\-message\_\-free@{oscap\_\-reporter\_\-message\_\-free}}
\index{oscap\_\-reporter\_\-message\_\-free@{oscap\_\-reporter\_\-message\_\-free}!Reporters@{Reporters}}
\subsubsection[{oscap\_\-reporter\_\-message\_\-free}]{\setlength{\rightskip}{0pt plus 5cm}void oscap\_\-reporter\_\-message\_\-free (struct {\bf oscap\_\-reporter\_\-message} $\ast$ {\em msg})\hspace{0.3cm}{\ttfamily \mbox{[}inherited\mbox{]}}}}
\label{group__Reporters_ga97c2395dd3ccc8dd55c31215ca86feb6}
\hypertarget{group__Reporters_ga1a8ff34a7dfac72b7c9ff73ea5b1d781}{
\index{Reporters@{Reporters}!oscap\_\-reporter\_\-message\_\-get\_\-code@{oscap\_\-reporter\_\-message\_\-get\_\-code}}
\index{oscap\_\-reporter\_\-message\_\-get\_\-code@{oscap\_\-reporter\_\-message\_\-get\_\-code}!Reporters@{Reporters}}
\subsubsection[{oscap\_\-reporter\_\-message\_\-get\_\-code}]{\setlength{\rightskip}{0pt plus 5cm}{\bf oscap\_\-reporter\_\-code\_\-t} oscap\_\-reporter\_\-message\_\-get\_\-code (const struct {\bf oscap\_\-reporter\_\-message} $\ast$ {\em item})\hspace{0.3cm}{\ttfamily \mbox{[}inherited\mbox{]}}}}
\label{group__Reporters_ga1a8ff34a7dfac72b7c9ff73ea5b1d781}
\hypertarget{group__Reporters_ga3ff942948fe9614c4b38f5f14a328f26}{
\index{Reporters@{Reporters}!oscap\_\-reporter\_\-message\_\-get\_\-family@{oscap\_\-reporter\_\-message\_\-get\_\-family}}
\index{oscap\_\-reporter\_\-message\_\-get\_\-family@{oscap\_\-reporter\_\-message\_\-get\_\-family}!Reporters@{Reporters}}
\subsubsection[{oscap\_\-reporter\_\-message\_\-get\_\-family}]{\setlength{\rightskip}{0pt plus 5cm}{\bf oscap\_\-reporter\_\-family\_\-t} oscap\_\-reporter\_\-message\_\-get\_\-family (const struct {\bf oscap\_\-reporter\_\-message} $\ast$ {\em item})\hspace{0.3cm}{\ttfamily \mbox{[}inherited\mbox{]}}}}
\label{group__Reporters_ga3ff942948fe9614c4b38f5f14a328f26}
\hypertarget{group__Reporters_ga17e3cb8cb235c34d5c4a6b1052fd63ae}{
\index{Reporters@{Reporters}!oscap\_\-reporter\_\-message\_\-get\_\-string@{oscap\_\-reporter\_\-message\_\-get\_\-string}}
\index{oscap\_\-reporter\_\-message\_\-get\_\-string@{oscap\_\-reporter\_\-message\_\-get\_\-string}!Reporters@{Reporters}}
\subsubsection[{oscap\_\-reporter\_\-message\_\-get\_\-string}]{\setlength{\rightskip}{0pt plus 5cm}const char $\ast$ oscap\_\-reporter\_\-message\_\-get\_\-string (const struct {\bf oscap\_\-reporter\_\-message} $\ast$ {\em item})\hspace{0.3cm}{\ttfamily \mbox{[}inherited\mbox{]}}}}
\label{group__Reporters_ga17e3cb8cb235c34d5c4a6b1052fd63ae}
\hypertarget{group__Reporters_gaedd88a92930d41be0af875d5720294e2}{
\index{Reporters@{Reporters}!oscap\_\-reporter\_\-message\_\-get\_\-user1num@{oscap\_\-reporter\_\-message\_\-get\_\-user1num}}
\index{oscap\_\-reporter\_\-message\_\-get\_\-user1num@{oscap\_\-reporter\_\-message\_\-get\_\-user1num}!Reporters@{Reporters}}
\subsubsection[{oscap\_\-reporter\_\-message\_\-get\_\-user1num}]{\setlength{\rightskip}{0pt plus 5cm}int oscap\_\-reporter\_\-message\_\-get\_\-user1num (const struct {\bf oscap\_\-reporter\_\-message} $\ast$ {\em msg})\hspace{0.3cm}{\ttfamily \mbox{[}inherited\mbox{]}}}}
\label{group__Reporters_gaedd88a92930d41be0af875d5720294e2}
\hypertarget{group__Reporters_ga90b8581f5908404e8d0cb7ffca028dd4}{
\index{Reporters@{Reporters}!oscap\_\-reporter\_\-message\_\-get\_\-user1ptr@{oscap\_\-reporter\_\-message\_\-get\_\-user1ptr}}
\index{oscap\_\-reporter\_\-message\_\-get\_\-user1ptr@{oscap\_\-reporter\_\-message\_\-get\_\-user1ptr}!Reporters@{Reporters}}
\subsubsection[{oscap\_\-reporter\_\-message\_\-get\_\-user1ptr}]{\setlength{\rightskip}{0pt plus 5cm}void $\ast$ oscap\_\-reporter\_\-message\_\-get\_\-user1ptr (const struct {\bf oscap\_\-reporter\_\-message} $\ast$ {\em msg})\hspace{0.3cm}{\ttfamily \mbox{[}inherited\mbox{]}}}}
\label{group__Reporters_ga90b8581f5908404e8d0cb7ffca028dd4}
\hypertarget{group__Reporters_ga2088ef45d8e8e77759d9e8e83f498bcc}{
\index{Reporters@{Reporters}!oscap\_\-reporter\_\-message\_\-get\_\-user1str@{oscap\_\-reporter\_\-message\_\-get\_\-user1str}}
\index{oscap\_\-reporter\_\-message\_\-get\_\-user1str@{oscap\_\-reporter\_\-message\_\-get\_\-user1str}!Reporters@{Reporters}}
\subsubsection[{oscap\_\-reporter\_\-message\_\-get\_\-user1str}]{\setlength{\rightskip}{0pt plus 5cm}const char $\ast$ oscap\_\-reporter\_\-message\_\-get\_\-user1str (const struct {\bf oscap\_\-reporter\_\-message} $\ast$ {\em msg})\hspace{0.3cm}{\ttfamily \mbox{[}inherited\mbox{]}}}}
\label{group__Reporters_ga2088ef45d8e8e77759d9e8e83f498bcc}
\hypertarget{group__Reporters_gad8840eb1db5184a5345690c63b4113fb}{
\index{Reporters@{Reporters}!oscap\_\-reporter\_\-message\_\-get\_\-user2num@{oscap\_\-reporter\_\-message\_\-get\_\-user2num}}
\index{oscap\_\-reporter\_\-message\_\-get\_\-user2num@{oscap\_\-reporter\_\-message\_\-get\_\-user2num}!Reporters@{Reporters}}
\subsubsection[{oscap\_\-reporter\_\-message\_\-get\_\-user2num}]{\setlength{\rightskip}{0pt plus 5cm}int oscap\_\-reporter\_\-message\_\-get\_\-user2num (const struct {\bf oscap\_\-reporter\_\-message} $\ast$ {\em msg})\hspace{0.3cm}{\ttfamily \mbox{[}inherited\mbox{]}}}}
\label{group__Reporters_gad8840eb1db5184a5345690c63b4113fb}
\hypertarget{group__Reporters_ga08eca2b8cb49a1e3f535b314d60382f6}{
\index{Reporters@{Reporters}!oscap\_\-reporter\_\-message\_\-get\_\-user2ptr@{oscap\_\-reporter\_\-message\_\-get\_\-user2ptr}}
\index{oscap\_\-reporter\_\-message\_\-get\_\-user2ptr@{oscap\_\-reporter\_\-message\_\-get\_\-user2ptr}!Reporters@{Reporters}}
\subsubsection[{oscap\_\-reporter\_\-message\_\-get\_\-user2ptr}]{\setlength{\rightskip}{0pt plus 5cm}void $\ast$ oscap\_\-reporter\_\-message\_\-get\_\-user2ptr (const struct {\bf oscap\_\-reporter\_\-message} $\ast$ {\em msg})\hspace{0.3cm}{\ttfamily \mbox{[}inherited\mbox{]}}}}
\label{group__Reporters_ga08eca2b8cb49a1e3f535b314d60382f6}
\hypertarget{group__Reporters_ga6926dbbf42758651b9ddb0b1fdfe80b3}{
\index{Reporters@{Reporters}!oscap\_\-reporter\_\-message\_\-get\_\-user2str@{oscap\_\-reporter\_\-message\_\-get\_\-user2str}}
\index{oscap\_\-reporter\_\-message\_\-get\_\-user2str@{oscap\_\-reporter\_\-message\_\-get\_\-user2str}!Reporters@{Reporters}}
\subsubsection[{oscap\_\-reporter\_\-message\_\-get\_\-user2str}]{\setlength{\rightskip}{0pt plus 5cm}const char $\ast$ oscap\_\-reporter\_\-message\_\-get\_\-user2str (const struct {\bf oscap\_\-reporter\_\-message} $\ast$ {\em msg})\hspace{0.3cm}{\ttfamily \mbox{[}inherited\mbox{]}}}}
\label{group__Reporters_ga6926dbbf42758651b9ddb0b1fdfe80b3}
\hypertarget{group__Reporters_ga899d3ef9a868dbfd2a9ab305ac20aff7}{
\index{Reporters@{Reporters}!oscap\_\-reporter\_\-message\_\-get\_\-user3num@{oscap\_\-reporter\_\-message\_\-get\_\-user3num}}
\index{oscap\_\-reporter\_\-message\_\-get\_\-user3num@{oscap\_\-reporter\_\-message\_\-get\_\-user3num}!Reporters@{Reporters}}
\subsubsection[{oscap\_\-reporter\_\-message\_\-get\_\-user3num}]{\setlength{\rightskip}{0pt plus 5cm}int oscap\_\-reporter\_\-message\_\-get\_\-user3num (const struct {\bf oscap\_\-reporter\_\-message} $\ast$ {\em msg})\hspace{0.3cm}{\ttfamily \mbox{[}inherited\mbox{]}}}}
\label{group__Reporters_ga899d3ef9a868dbfd2a9ab305ac20aff7}
\hypertarget{group__Reporters_gac11910bfa402ce779215101223cad7ba}{
\index{Reporters@{Reporters}!oscap\_\-reporter\_\-message\_\-get\_\-user3ptr@{oscap\_\-reporter\_\-message\_\-get\_\-user3ptr}}
\index{oscap\_\-reporter\_\-message\_\-get\_\-user3ptr@{oscap\_\-reporter\_\-message\_\-get\_\-user3ptr}!Reporters@{Reporters}}
\subsubsection[{oscap\_\-reporter\_\-message\_\-get\_\-user3ptr}]{\setlength{\rightskip}{0pt plus 5cm}void $\ast$ oscap\_\-reporter\_\-message\_\-get\_\-user3ptr (const struct {\bf oscap\_\-reporter\_\-message} $\ast$ {\em msg})\hspace{0.3cm}{\ttfamily \mbox{[}inherited\mbox{]}}}}
\label{group__Reporters_gac11910bfa402ce779215101223cad7ba}
\hypertarget{group__Reporters_ga89ca0faf7e28540759389f3469f3cf98}{
\index{Reporters@{Reporters}!oscap\_\-reporter\_\-message\_\-get\_\-user3str@{oscap\_\-reporter\_\-message\_\-get\_\-user3str}}
\index{oscap\_\-reporter\_\-message\_\-get\_\-user3str@{oscap\_\-reporter\_\-message\_\-get\_\-user3str}!Reporters@{Reporters}}
\subsubsection[{oscap\_\-reporter\_\-message\_\-get\_\-user3str}]{\setlength{\rightskip}{0pt plus 5cm}const char $\ast$ oscap\_\-reporter\_\-message\_\-get\_\-user3str (const struct {\bf oscap\_\-reporter\_\-message} $\ast$ {\em msg})\hspace{0.3cm}{\ttfamily \mbox{[}inherited\mbox{]}}}}
\label{group__Reporters_ga89ca0faf7e28540759389f3469f3cf98}
\hypertarget{group__Reporters_ga128b0e1e7e32b808784e64f7915b849b}{
\index{Reporters@{Reporters}!oscap\_\-reporter\_\-message\_\-new@{oscap\_\-reporter\_\-message\_\-new}}
\index{oscap\_\-reporter\_\-message\_\-new@{oscap\_\-reporter\_\-message\_\-new}!Reporters@{Reporters}}
\subsubsection[{oscap\_\-reporter\_\-message\_\-new}]{\setlength{\rightskip}{0pt plus 5cm}struct {\bf oscap\_\-reporter\_\-message} $\ast$ oscap\_\-reporter\_\-message\_\-new (void)\hspace{0.3cm}{\ttfamily \mbox{[}read, inherited\mbox{]}}}}
\label{group__Reporters_ga128b0e1e7e32b808784e64f7915b849b}
\hypertarget{group__Reporters_gab5ae2a139387dd6a37348af0d208926b}{
\index{Reporters@{Reporters}!oscap\_\-reporter\_\-message\_\-new\_\-arg@{oscap\_\-reporter\_\-message\_\-new\_\-arg}}
\index{oscap\_\-reporter\_\-message\_\-new\_\-arg@{oscap\_\-reporter\_\-message\_\-new\_\-arg}!Reporters@{Reporters}}
\subsubsection[{oscap\_\-reporter\_\-message\_\-new\_\-arg}]{\setlength{\rightskip}{0pt plus 5cm}struct {\bf oscap\_\-reporter\_\-message} $\ast$ oscap\_\-reporter\_\-message\_\-new\_\-arg ({\bf oscap\_\-reporter\_\-family\_\-t} {\em family}, \/ {\bf oscap\_\-reporter\_\-code\_\-t} {\em code}, \/ const char $\ast$ {\em fmt}, \/ va\_\-list {\em ap})\hspace{0.3cm}{\ttfamily \mbox{[}read, inherited\mbox{]}}}}
\label{group__Reporters_gab5ae2a139387dd6a37348af0d208926b}
\hypertarget{group__Reporters_gacc16aa1839367828f42f45e24e8b08e9}{
\index{Reporters@{Reporters}!oscap\_\-reporter\_\-message\_\-new\_\-fill@{oscap\_\-reporter\_\-message\_\-new\_\-fill}}
\index{oscap\_\-reporter\_\-message\_\-new\_\-fill@{oscap\_\-reporter\_\-message\_\-new\_\-fill}!Reporters@{Reporters}}
\subsubsection[{oscap\_\-reporter\_\-message\_\-new\_\-fill}]{\setlength{\rightskip}{0pt plus 5cm}struct {\bf oscap\_\-reporter\_\-message} $\ast$ oscap\_\-reporter\_\-message\_\-new\_\-fill ({\bf oscap\_\-reporter\_\-family\_\-t} {\em family}, \/ {\bf oscap\_\-reporter\_\-code\_\-t} {\em code}, \/ const char $\ast$ {\em string})\hspace{0.3cm}{\ttfamily \mbox{[}read, inherited\mbox{]}}}}
\label{group__Reporters_gacc16aa1839367828f42f45e24e8b08e9}
\hypertarget{group__Reporters_ga31c86db4139bd327cc8c1503e0677d9e}{
\index{Reporters@{Reporters}!oscap\_\-reporter\_\-message\_\-new\_\-fmt@{oscap\_\-reporter\_\-message\_\-new\_\-fmt}}
\index{oscap\_\-reporter\_\-message\_\-new\_\-fmt@{oscap\_\-reporter\_\-message\_\-new\_\-fmt}!Reporters@{Reporters}}
\subsubsection[{oscap\_\-reporter\_\-message\_\-new\_\-fmt}]{\setlength{\rightskip}{0pt plus 5cm}struct {\bf oscap\_\-reporter\_\-message} $\ast$ oscap\_\-reporter\_\-message\_\-new\_\-fmt ({\bf oscap\_\-reporter\_\-family\_\-t} {\em family}, \/ {\bf oscap\_\-reporter\_\-code\_\-t} {\em code}, \/ const char $\ast$ {\em fmt}, \/ {\em ...})\hspace{0.3cm}{\ttfamily \mbox{[}read, inherited\mbox{]}}}}
\label{group__Reporters_ga31c86db4139bd327cc8c1503e0677d9e}
\hypertarget{group__Reporters_gaa18d504462f95063550e23e9172f89cb}{
\index{Reporters@{Reporters}!oscap\_\-reporter\_\-message\_\-set\_\-code@{oscap\_\-reporter\_\-message\_\-set\_\-code}}
\index{oscap\_\-reporter\_\-message\_\-set\_\-code@{oscap\_\-reporter\_\-message\_\-set\_\-code}!Reporters@{Reporters}}
\subsubsection[{oscap\_\-reporter\_\-message\_\-set\_\-code}]{\setlength{\rightskip}{0pt plus 5cm}bool oscap\_\-reporter\_\-message\_\-set\_\-code (struct {\bf oscap\_\-reporter\_\-message} $\ast$ {\em obj}, \/ {\bf oscap\_\-reporter\_\-code\_\-t} {\em newval})\hspace{0.3cm}{\ttfamily \mbox{[}inherited\mbox{]}}}}
\label{group__Reporters_gaa18d504462f95063550e23e9172f89cb}
\hypertarget{group__Reporters_ga27c96033c163ac244ea330e33c135a37}{
\index{Reporters@{Reporters}!oscap\_\-reporter\_\-message\_\-set\_\-family@{oscap\_\-reporter\_\-message\_\-set\_\-family}}
\index{oscap\_\-reporter\_\-message\_\-set\_\-family@{oscap\_\-reporter\_\-message\_\-set\_\-family}!Reporters@{Reporters}}
\subsubsection[{oscap\_\-reporter\_\-message\_\-set\_\-family}]{\setlength{\rightskip}{0pt plus 5cm}bool oscap\_\-reporter\_\-message\_\-set\_\-family (struct {\bf oscap\_\-reporter\_\-message} $\ast$ {\em obj}, \/ {\bf oscap\_\-reporter\_\-family\_\-t} {\em newval})\hspace{0.3cm}{\ttfamily \mbox{[}inherited\mbox{]}}}}
\label{group__Reporters_ga27c96033c163ac244ea330e33c135a37}
\hypertarget{group__Reporters_ga3b2213738b5e3075f79ee32959c894e4}{
\index{Reporters@{Reporters}!oscap\_\-reporter\_\-message\_\-set\_\-string@{oscap\_\-reporter\_\-message\_\-set\_\-string}}
\index{oscap\_\-reporter\_\-message\_\-set\_\-string@{oscap\_\-reporter\_\-message\_\-set\_\-string}!Reporters@{Reporters}}
\subsubsection[{oscap\_\-reporter\_\-message\_\-set\_\-string}]{\setlength{\rightskip}{0pt plus 5cm}bool oscap\_\-reporter\_\-message\_\-set\_\-string (struct {\bf oscap\_\-reporter\_\-message} $\ast$ {\em obj}, \/ const char $\ast$ {\em newval})\hspace{0.3cm}{\ttfamily \mbox{[}inherited\mbox{]}}}}
\label{group__Reporters_ga3b2213738b5e3075f79ee32959c894e4}
\hypertarget{group__Reporters_ga226d7243411b4dbe32ac78a601ac54f5}{
\index{Reporters@{Reporters}!oscap\_\-reporter\_\-message\_\-set\_\-user1num@{oscap\_\-reporter\_\-message\_\-set\_\-user1num}}
\index{oscap\_\-reporter\_\-message\_\-set\_\-user1num@{oscap\_\-reporter\_\-message\_\-set\_\-user1num}!Reporters@{Reporters}}
\subsubsection[{oscap\_\-reporter\_\-message\_\-set\_\-user1num}]{\setlength{\rightskip}{0pt plus 5cm}bool oscap\_\-reporter\_\-message\_\-set\_\-user1num (struct {\bf oscap\_\-reporter\_\-message} $\ast$ {\em msg}, \/ int {\em newval})\hspace{0.3cm}{\ttfamily \mbox{[}inherited\mbox{]}}}}
\label{group__Reporters_ga226d7243411b4dbe32ac78a601ac54f5}
\hypertarget{group__Reporters_ga27f99e719a7119420658181eab4d68b1}{
\index{Reporters@{Reporters}!oscap\_\-reporter\_\-message\_\-set\_\-user1ptr@{oscap\_\-reporter\_\-message\_\-set\_\-user1ptr}}
\index{oscap\_\-reporter\_\-message\_\-set\_\-user1ptr@{oscap\_\-reporter\_\-message\_\-set\_\-user1ptr}!Reporters@{Reporters}}
\subsubsection[{oscap\_\-reporter\_\-message\_\-set\_\-user1ptr}]{\setlength{\rightskip}{0pt plus 5cm}bool oscap\_\-reporter\_\-message\_\-set\_\-user1ptr (struct {\bf oscap\_\-reporter\_\-message} $\ast$ {\em msg}, \/ void $\ast$ {\em newval})\hspace{0.3cm}{\ttfamily \mbox{[}inherited\mbox{]}}}}
\label{group__Reporters_ga27f99e719a7119420658181eab4d68b1}
\hypertarget{group__Reporters_gace579a933c21df2ff864b62a2773fe1e}{
\index{Reporters@{Reporters}!oscap\_\-reporter\_\-message\_\-set\_\-user1str@{oscap\_\-reporter\_\-message\_\-set\_\-user1str}}
\index{oscap\_\-reporter\_\-message\_\-set\_\-user1str@{oscap\_\-reporter\_\-message\_\-set\_\-user1str}!Reporters@{Reporters}}
\subsubsection[{oscap\_\-reporter\_\-message\_\-set\_\-user1str}]{\setlength{\rightskip}{0pt plus 5cm}bool oscap\_\-reporter\_\-message\_\-set\_\-user1str (struct {\bf oscap\_\-reporter\_\-message} $\ast$ {\em msg}, \/ const char $\ast$ {\em newval})\hspace{0.3cm}{\ttfamily \mbox{[}inherited\mbox{]}}}}
\label{group__Reporters_gace579a933c21df2ff864b62a2773fe1e}
\hypertarget{group__Reporters_gaecff54e7b8c7025c7029dc1d933f1dad}{
\index{Reporters@{Reporters}!oscap\_\-reporter\_\-message\_\-set\_\-user2num@{oscap\_\-reporter\_\-message\_\-set\_\-user2num}}
\index{oscap\_\-reporter\_\-message\_\-set\_\-user2num@{oscap\_\-reporter\_\-message\_\-set\_\-user2num}!Reporters@{Reporters}}
\subsubsection[{oscap\_\-reporter\_\-message\_\-set\_\-user2num}]{\setlength{\rightskip}{0pt plus 5cm}bool oscap\_\-reporter\_\-message\_\-set\_\-user2num (struct {\bf oscap\_\-reporter\_\-message} $\ast$ {\em msg}, \/ int {\em newval})\hspace{0.3cm}{\ttfamily \mbox{[}inherited\mbox{]}}}}
\label{group__Reporters_gaecff54e7b8c7025c7029dc1d933f1dad}
\hypertarget{group__Reporters_ga4085262274793b780f91b5ba759c432f}{
\index{Reporters@{Reporters}!oscap\_\-reporter\_\-message\_\-set\_\-user2ptr@{oscap\_\-reporter\_\-message\_\-set\_\-user2ptr}}
\index{oscap\_\-reporter\_\-message\_\-set\_\-user2ptr@{oscap\_\-reporter\_\-message\_\-set\_\-user2ptr}!Reporters@{Reporters}}
\subsubsection[{oscap\_\-reporter\_\-message\_\-set\_\-user2ptr}]{\setlength{\rightskip}{0pt plus 5cm}bool oscap\_\-reporter\_\-message\_\-set\_\-user2ptr (struct {\bf oscap\_\-reporter\_\-message} $\ast$ {\em msg}, \/ void $\ast$ {\em newval})\hspace{0.3cm}{\ttfamily \mbox{[}inherited\mbox{]}}}}
\label{group__Reporters_ga4085262274793b780f91b5ba759c432f}
\hypertarget{group__Reporters_ga80cb30f28732e3fbc7c9129146e3294e}{
\index{Reporters@{Reporters}!oscap\_\-reporter\_\-message\_\-set\_\-user2str@{oscap\_\-reporter\_\-message\_\-set\_\-user2str}}
\index{oscap\_\-reporter\_\-message\_\-set\_\-user2str@{oscap\_\-reporter\_\-message\_\-set\_\-user2str}!Reporters@{Reporters}}
\subsubsection[{oscap\_\-reporter\_\-message\_\-set\_\-user2str}]{\setlength{\rightskip}{0pt plus 5cm}bool oscap\_\-reporter\_\-message\_\-set\_\-user2str (struct {\bf oscap\_\-reporter\_\-message} $\ast$ {\em msg}, \/ const char $\ast$ {\em newval})\hspace{0.3cm}{\ttfamily \mbox{[}inherited\mbox{]}}}}
\label{group__Reporters_ga80cb30f28732e3fbc7c9129146e3294e}
\hypertarget{group__Reporters_gae751518f8639a2894f7f8980004fcc8c}{
\index{Reporters@{Reporters}!oscap\_\-reporter\_\-message\_\-set\_\-user3num@{oscap\_\-reporter\_\-message\_\-set\_\-user3num}}
\index{oscap\_\-reporter\_\-message\_\-set\_\-user3num@{oscap\_\-reporter\_\-message\_\-set\_\-user3num}!Reporters@{Reporters}}
\subsubsection[{oscap\_\-reporter\_\-message\_\-set\_\-user3num}]{\setlength{\rightskip}{0pt plus 5cm}bool oscap\_\-reporter\_\-message\_\-set\_\-user3num (struct {\bf oscap\_\-reporter\_\-message} $\ast$ {\em msg}, \/ int {\em newval})\hspace{0.3cm}{\ttfamily \mbox{[}inherited\mbox{]}}}}
\label{group__Reporters_gae751518f8639a2894f7f8980004fcc8c}
\hypertarget{group__Reporters_ga5f0ad89c56b2b324e706d03f43814f68}{
\index{Reporters@{Reporters}!oscap\_\-reporter\_\-message\_\-set\_\-user3ptr@{oscap\_\-reporter\_\-message\_\-set\_\-user3ptr}}
\index{oscap\_\-reporter\_\-message\_\-set\_\-user3ptr@{oscap\_\-reporter\_\-message\_\-set\_\-user3ptr}!Reporters@{Reporters}}
\subsubsection[{oscap\_\-reporter\_\-message\_\-set\_\-user3ptr}]{\setlength{\rightskip}{0pt plus 5cm}bool oscap\_\-reporter\_\-message\_\-set\_\-user3ptr (struct {\bf oscap\_\-reporter\_\-message} $\ast$ {\em msg}, \/ void $\ast$ {\em newval})\hspace{0.3cm}{\ttfamily \mbox{[}inherited\mbox{]}}}}
\label{group__Reporters_ga5f0ad89c56b2b324e706d03f43814f68}
\hypertarget{group__Reporters_ga0934588ce9cb61b225ab7b9fda0bb971}{
\index{Reporters@{Reporters}!oscap\_\-reporter\_\-message\_\-set\_\-user3str@{oscap\_\-reporter\_\-message\_\-set\_\-user3str}}
\index{oscap\_\-reporter\_\-message\_\-set\_\-user3str@{oscap\_\-reporter\_\-message\_\-set\_\-user3str}!Reporters@{Reporters}}
\subsubsection[{oscap\_\-reporter\_\-message\_\-set\_\-user3str}]{\setlength{\rightskip}{0pt plus 5cm}bool oscap\_\-reporter\_\-message\_\-set\_\-user3str (struct {\bf oscap\_\-reporter\_\-message} $\ast$ {\em msg}, \/ const char $\ast$ {\em newval})\hspace{0.3cm}{\ttfamily \mbox{[}inherited\mbox{]}}}}
\label{group__Reporters_ga0934588ce9cb61b225ab7b9fda0bb971}
\hypertarget{group__Reporters_gad8223c271be6d6adbd418b1e7aefe5e9}{
\index{Reporters@{Reporters}!oscap\_\-reporter\_\-multi\_\-add\_\-reporter@{oscap\_\-reporter\_\-multi\_\-add\_\-reporter}}
\index{oscap\_\-reporter\_\-multi\_\-add\_\-reporter@{oscap\_\-reporter\_\-multi\_\-add\_\-reporter}!Reporters@{Reporters}}
\subsubsection[{oscap\_\-reporter\_\-multi\_\-add\_\-reporter}]{\setlength{\rightskip}{0pt plus 5cm}void oscap\_\-reporter\_\-multi\_\-add\_\-reporter (struct {\bf oscap\_\-reporter} $\ast$ {\em multi}, \/ struct {\bf oscap\_\-reporter} $\ast$ {\em reporter})\hspace{0.3cm}{\ttfamily \mbox{[}related, inherited\mbox{]}}}}
\label{group__Reporters_gad8223c271be6d6adbd418b1e7aefe5e9}
Add a subreporter to given multireporter. It is users responsibility to ensure that reporter type of the first param is OSCAP\_\-REPORTER\_\-MULTI.
\begin{DoxySeeAlso}{See also}
\hyperlink{group__Reporters_gada559d363b02a3fae9647e044a3bb5f1}{OSCAP\_\-REPORTER\_\-MULTI}
\end{DoxySeeAlso}
\hypertarget{group__Reporters_gadf1ddca067c1d7c9badbada6ce1e5efb}{
\index{Reporters@{Reporters}!oscap\_\-reporter\_\-new@{oscap\_\-reporter\_\-new}}
\index{oscap\_\-reporter\_\-new@{oscap\_\-reporter\_\-new}!Reporters@{Reporters}}
\subsubsection[{oscap\_\-reporter\_\-new}]{\setlength{\rightskip}{0pt plus 5cm}struct {\bf oscap\_\-reporter} $\ast$ oscap\_\-reporter\_\-new (const struct {\bf oscap\_\-reporter\_\-type} $\ast$ {\em type}, \/ void $\ast$ {\em user})\hspace{0.3cm}{\ttfamily \mbox{[}read, inherited\mbox{]}}}}
\label{group__Reporters_gadf1ddca067c1d7c9badbada6ce1e5efb}
Create a new reporter of given type.
\begin{DoxyParams}{Parameters}
\item[{\em type}]reporter handler set \item[{\em user}]reporter-\/specific user-\/supplied data \end{DoxyParams}
\hypertarget{group__Reporters_ga52380231fa87e51e08902c26137e441a}{
\index{Reporters@{Reporters}!oscap\_\-reporter\_\-new\_\-filter@{oscap\_\-reporter\_\-new\_\-filter}}
\index{oscap\_\-reporter\_\-new\_\-filter@{oscap\_\-reporter\_\-new\_\-filter}!Reporters@{Reporters}}
\subsubsection[{oscap\_\-reporter\_\-new\_\-filter}]{\setlength{\rightskip}{0pt plus 5cm}struct {\bf oscap\_\-reporter} $\ast$ oscap\_\-reporter\_\-new\_\-filter (struct {\bf oscap\_\-reporter} $\ast$ {\em pos\_\-child}, \/ struct {\bf oscap\_\-reporter} $\ast$ {\em neg\_\-child}, \/ {\bf oscap\_\-reporter\_\-family\_\-t} {\em family}, \/ {\bf oscap\_\-reporter\_\-code\_\-t} {\em min\_\-code}, \/ {\bf oscap\_\-reporter\_\-code\_\-t} {\em max\_\-code})\hspace{0.3cm}{\ttfamily \mbox{[}related, inherited\mbox{]}}}}
\label{group__Reporters_ga52380231fa87e51e08902c26137e441a}
Create a new filtering reporter. Messages will be forwarded to the pos\_\-child reporter if they match given family and code range and to neg\_\-child if they do not. Either of these reporters can be NULL. The child reporters will be freed with filter. If you want to match all error codes, you can use OSCAP\_\-REPORTER\_\-ALL instead of two last params.
\begin{DoxyParams}{Parameters}
\item[{\em pos\_\-child}]Reporter to forward messages that pass filter criteria. \item[{\em neg\_\-child}]Reporter to forward messages that do NOT pass filter criteria. \item[{\em family}]Error family to let pass through the filter. \item[{\em min\_\-code}]Minimum error code number to match (inclusive). \item[{\em max\_\-code}]Maximum error code number to match (inclusive). \end{DoxyParams}
\hypertarget{group__Reporters_ga93a7de375fcf4507df3e7db4a0e31464}{
\index{Reporters@{Reporters}!oscap\_\-reporter\_\-report@{oscap\_\-reporter\_\-report}}
\index{oscap\_\-reporter\_\-report@{oscap\_\-reporter\_\-report}!Reporters@{Reporters}}
\subsubsection[{oscap\_\-reporter\_\-report}]{\setlength{\rightskip}{0pt plus 5cm}void oscap\_\-reporter\_\-report (struct {\bf oscap\_\-reporter} $\ast$ {\em reporter}, \/ struct {\bf oscap\_\-reporter\_\-message} $\ast$ {\em msg})\hspace{0.3cm}{\ttfamily \mbox{[}inherited\mbox{]}}}}
\label{group__Reporters_ga93a7de375fcf4507df3e7db4a0e31464}
Do report. This function does nothing if {\itshape reporter\/} is null. The message gets freed afterwards.
\begin{DoxyParams}{Parameters}
\item[{\em reporter}]Reporter to use. \item[{\em msg}]Message to send. Will be freed after processing by the reporter. \end{DoxyParams}
\hypertarget{group__Reporters_gaf467a448b5bbbc1f11ae7654608f834a}{
\index{Reporters@{Reporters}!oscap\_\-reporter\_\-report\_\-fmt@{oscap\_\-reporter\_\-report\_\-fmt}}
\index{oscap\_\-reporter\_\-report\_\-fmt@{oscap\_\-reporter\_\-report\_\-fmt}!Reporters@{Reporters}}
\subsubsection[{oscap\_\-reporter\_\-report\_\-fmt}]{\setlength{\rightskip}{0pt plus 5cm}void oscap\_\-reporter\_\-report\_\-fmt (struct {\bf oscap\_\-reporter} $\ast$ {\em reporter}, \/ {\bf oscap\_\-reporter\_\-family\_\-t} {\em family}, \/ {\bf oscap\_\-reporter\_\-code\_\-t} {\em code}, \/ const char $\ast$ {\em fmt}, \/ {\em ...})\hspace{0.3cm}{\ttfamily \mbox{[}inherited\mbox{]}}}}
\label{group__Reporters_gaf467a448b5bbbc1f11ae7654608f834a}
\hypertarget{group__Reporters_gaad5c3f855e30c34d3cc594a136bb5348}{
\index{Reporters@{Reporters}!oscap\_\-reporter\_\-set\_\-userdata@{oscap\_\-reporter\_\-set\_\-userdata}}
\index{oscap\_\-reporter\_\-set\_\-userdata@{oscap\_\-reporter\_\-set\_\-userdata}!Reporters@{Reporters}}
\subsubsection[{oscap\_\-reporter\_\-set\_\-userdata}]{\setlength{\rightskip}{0pt plus 5cm}bool oscap\_\-reporter\_\-set\_\-userdata (struct {\bf oscap\_\-reporter} $\ast$ {\em obj}, \/ const char $\ast$ {\em newval})\hspace{0.3cm}{\ttfamily \mbox{[}inherited\mbox{]}}}}
\label{group__Reporters_gaad5c3f855e30c34d3cc594a136bb5348}
\hypertarget{group__Reporters_ga822c06ccf7401aadc73e11256befbc0d}{
\index{Reporters@{Reporters}!oscap\_\-reporter\_\-type\_\-free@{oscap\_\-reporter\_\-type\_\-free}}
\index{oscap\_\-reporter\_\-type\_\-free@{oscap\_\-reporter\_\-type\_\-free}!Reporters@{Reporters}}
\subsubsection[{oscap\_\-reporter\_\-type\_\-free}]{\setlength{\rightskip}{0pt plus 5cm}void oscap\_\-reporter\_\-type\_\-free (struct {\bf oscap\_\-reporter\_\-type} $\ast$ {\em reptype})\hspace{0.3cm}{\ttfamily \mbox{[}inherited\mbox{]}}}}
\label{group__Reporters_ga822c06ccf7401aadc73e11256befbc0d}
\hypertarget{group__Reporters_ga6113dcd32a3ea7ee6008552a963244ea}{
\index{Reporters@{Reporters}!oscap\_\-reporter\_\-type\_\-new@{oscap\_\-reporter\_\-type\_\-new}}
\index{oscap\_\-reporter\_\-type\_\-new@{oscap\_\-reporter\_\-type\_\-new}!Reporters@{Reporters}}
\subsubsection[{oscap\_\-reporter\_\-type\_\-new}]{\setlength{\rightskip}{0pt plus 5cm}struct {\bf oscap\_\-reporter\_\-type} $\ast$ oscap\_\-reporter\_\-type\_\-new ({\bf oscap\_\-reporter\_\-init\_\-func} {\em init}, \/ {\bf oscap\_\-reporter\_\-report\_\-func} {\em report}, \/ {\bf oscap\_\-reporter\_\-destroy\_\-func} {\em destroy})\hspace{0.3cm}{\ttfamily \mbox{[}read, inherited\mbox{]}}}}
\label{group__Reporters_ga6113dcd32a3ea7ee6008552a963244ea}
Create a new reporter type.
\begin{DoxyParams}{Parameters}
\item[{\em init}]function called upon initialisation with a pointer to user supplied data \item[{\em report}]reporting function, that is called for each reported message \item[{\em destroy}]reporter cleanup function\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\hyperlink{group__Reporters_ga129619e51708aeefb3895ddc4009d8a7}{oscap\_\-reporter\_\-init\_\-func} \hyperlink{group__Reporters_ga0df6aa1cdb494d80c86a23dfbb4fcc3d}{oscap\_\-reporter\_\-report\_\-func} \hyperlink{group__Reporters_gadbcba2c8f868c6d9911f84baa4205ace}{oscap\_\-reporter\_\-destroy\_\-func}
\end{DoxySeeAlso}
\subsection{Variable Documentation}
\hypertarget{group__Reporters_gada559d363b02a3fae9647e044a3bb5f1}{
\index{Reporters@{Reporters}!OSCAP\_\-REPORTER\_\-MULTI@{OSCAP\_\-REPORTER\_\-MULTI}}
\index{OSCAP\_\-REPORTER\_\-MULTI@{OSCAP\_\-REPORTER\_\-MULTI}!Reporters@{Reporters}}
\subsubsection[{OSCAP\_\-REPORTER\_\-MULTI}]{\setlength{\rightskip}{0pt plus 5cm}struct {\bf oscap\_\-reporter\_\-type} {\bf OSCAP\_\-REPORTER\_\-MULTI}\hspace{0.3cm}{\ttfamily \mbox{[}related, inherited\mbox{]}}}}
\label{group__Reporters_gada559d363b02a3fae9647e044a3bb5f1}
Reporter to multiple other reporters. Use \hyperlink{group__Reporters_gad8223c271be6d6adbd418b1e7aefe5e9}{oscap\_\-reporter\_\-multi\_\-add\_\-reporter()} to register reporters. Any message handled by this reporter will be forwarded to all the registered subreporters. The subreporters will be destroyed with the multireporter. No user data allowed.
\begin{DoxySeeAlso}{See also}
\hyperlink{group__Reporters_gad8223c271be6d6adbd418b1e7aefe5e9}{oscap\_\-reporter\_\-multi\_\-add\_\-reporter}
\end{DoxySeeAlso}
\hypertarget{group__Reporters_ga70cb37c716f8ce68ff4f20ecc2895c04}{
\index{Reporters@{Reporters}!OSCAP\_\-REPORTER\_\-STDOUT@{OSCAP\_\-REPORTER\_\-STDOUT}}
\index{OSCAP\_\-REPORTER\_\-STDOUT@{OSCAP\_\-REPORTER\_\-STDOUT}!Reporters@{Reporters}}
\subsubsection[{OSCAP\_\-REPORTER\_\-STDOUT}]{\setlength{\rightskip}{0pt plus 5cm}struct {\bf oscap\_\-reporter\_\-type} {\bf OSCAP\_\-REPORTER\_\-STDOUT}\hspace{0.3cm}{\ttfamily \mbox{[}related, inherited\mbox{]}}}}
\label{group__Reporters_ga70cb37c716f8ce68ff4f20ecc2895c04}
Standard output reporter. This reporter simply prints messages to the standard output. If user data is supplied, it shall be a string that will be printed as a message prefix.
|