21 #include "libsigrok-internal.h"
79 return output_module_list;
Packet in a sigrok data feed.
const struct sr_dev_inst * sdi
The device for which this output module is creating output.
int sr_output_free(struct sr_output *o)
Output (file) format struct.
The public libsigrok header file to be used by frontends.
struct sr_output_format * format
A pointer to this output's format.
int(* init)(struct sr_output *o)
This function is called once, at the beginning of an output stream.
int(* receive)(struct sr_output *o, const struct sr_datafeed_packet *packet, GString **out)
This function is passed a copy of every packed in the data feed.
struct sr_output_format ** sr_output_list(void)
int sr_output_send(struct sr_output *o, const struct sr_datafeed_packet *packet, GString **out)
int(* cleanup)(struct sr_output *o)
This function is called after the caller is finished using the output module, and can be used to free...
Output (file) format driver.
struct sr_output * sr_output_new(struct sr_output_format *of, GHashTable *params, const struct sr_dev_inst *sdi)
GHashTable * params
An optional parameter which the frontend can pass in to the output module.