75       fprintf(stderr, 
"could not alloc corsaro_in\n");
 
   82     fprintf(stderr, 
"could not alloc record\n");
 
   90       fprintf(stderr, 
"could not start corsaro\n");
 
   99 static void usage(
const char *name)
 
  102           "usage: %s input_file\n", name);
 
  106 int main(
int argc, 
char *argv[])
 
  125       fprintf(stderr, 
"failed to init corsaro\n");
 
  145       fprintf(stderr, 
"corsaro_in_read_record failed to read record\n");
 
void corsaro_in_free_record(corsaro_in_record_t *record)
Free an corsaro record object. 
int main(int argc, char *argv[])
Entry point for the cors2ascii tool. 
corsaro_in_t * corsaro_alloc_input(const char *corsarouri)
Allocate an corsaro object for reading an corsaro file. 
Header file which exports the public libcorsaro API. 
Header file dealing with the corsaro logging sub-system. 
A reusable opaque structure for corsaro to read an input record into. 
corsaro_plugin_manager_t * plugin_manager
A pointer to the corsaro plugin manager state. 
static corsaro_in_record_t * record
The record object to read into. 
int corsaro_finalize_input(corsaro_in_t *corsaro)
Close the input file and free resources allocated by corsaro. 
int corsaro_start_input(corsaro_in_t *corsaro)
Initialize an corsaro input object that has already been allocated. 
int corsaro_io_print_record(corsaro_plugin_manager_t *plugin_manager, corsaro_in_record_type_t record_type, corsaro_in_record_t *record)
Print a generic corsaro record to stdout. 
corsaro_in_record_t * corsaro_in_alloc_record(corsaro_in_t *corsaro)
Allocate a reusable corsaro record object. 
static int init_corsaro(char *corsarouri)
Initialize a corsaro_in object for the given file name. 
Header file dealing with the corsaro file IO. 
static void clean()
Cleanup and free state. 
The null type used for wildcard matching. 
off_t corsaro_in_read_record(corsaro_in_t *corsaro, corsaro_in_record_type_t *record_type, corsaro_in_record_t *record)
Read the next corsaro record from the given corsaro input file. 
static void usage(const char *name)
Print usage information to stderr. 
enum corsaro_in_record_type corsaro_in_record_type_t
Corsaro input record types.