Data Fields

iow_source_t Struct Reference

Structure defining a libtrace IO writer module. More...

Data Fields

const char * name
 The name of the module.
off_t(* write )(iow_t *iow, const char *buffer, off_t len)
 Writes the contents of a buffer using an IO writer.
void(* close )(iow_t *iow)
 Closes an IO writer.

Detailed Description

Structure defining a libtrace IO writer module.


Field Documentation

void(* iow_source_t::close)(iow_t *iow)

Closes an IO writer.

This function should free the IO writer.

Parameters:
iow The IO writer to close

Referenced by wandio_wdestroy().

const char* iow_source_t::name

The name of the module.

Referenced by wandio_wwrite().

off_t(* iow_source_t::write)(iow_t *iow, const char *buffer, off_t len)

Writes the contents of a buffer using an IO writer.

Parameters:
iow The IO writer to write the data with
buffer The buffer to be written
len The amount of writable data in the buffer
Returns:
The amount of data written, or -1 if an error occurs

Referenced by wandio_wwrite().


The documentation for this struct was generated from the following file: