static int membergen_generate(struct cw_channel *chan, void *data, int samples) { struct cw_conf_member *member = data; // If this is a talker, don't send any packets if (member->type==MEMBERTYPE_TALKER) return 0; if (member->framelen!=0) process_outgoing( member, samples ); return 0; }
void serial_port_serialw (struct serial_port* port) { DBG_LOG(fprintf(debug_log_file, "event: serialw\n")); /* Serial port is ready to be written to. This means that * either the current outgoing packet has been fully transmitted * and can be removed from the buffer, or the port is ready for * writing and the pending packet(s) can be written out. */ process_outgoing(port); /* If the buffer has been fully processed, empty it. This makes * maximum room for the read about to happen. */ if ( port->outgoingLen > 0 && port->outgoingSent == port->outgoingLen) { port->outgoingLen = 0; port->outgoingSent = 0; } }