Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
output.h File Reference

Report functions. More...

#include "stats.h"

Go to the source code of this file.

Typedefs

typedef void criterion_reporter(FILE *stream, struct criterion_global_stats *)
 

Functions

CR_API int criterion_register_output_provider (const char *name, criterion_reporter *reporter)
 
CR_API int criterion_add_output (const char *provider, const char *path)
 

Detailed Description

Report functions.

Definition in file output.h.

Typedef Documentation

◆ criterion_reporter

typedef void criterion_reporter(FILE *stream, struct criterion_global_stats *)

Definition at line 33 of file output.h.

Function Documentation

◆ criterion_add_output()

CR_API int criterion_add_output ( const char * provider,
const char * path )

Use an output provider to write a report in a specific path.

Parameters
[in]providerThe name of a registered output provider.
[in]pathThe path to the file to write the report to.
Returns
-1 on error.

◆ criterion_register_output_provider()

CR_API int criterion_register_output_provider ( const char * name,
criterion_reporter * reporter )

Register an output provider.

Parameters
[in]nameThe name the output provider shall be registered as.
[in]reporterThe output reporting function.
Returns
1 if no output provider is registered at that name, 0 otherwise, and -1 on error.