3#include <command-parser.h>
4#include <command-handler.h>
7void print_outbound_queue();
9struct command *alloc_command_with_minfree();
int process_queue_reply(struct command *com)
process a reply
int send_command_reply_with_args(struct command *com, byte flags, const char *format,...)
send a reply to a command
void free_commands(int index)
free commands by index (-1 for all)
int send_command(struct command *com)
send a command to another module (or broadcast)
void free_command(struct command *com)
free a command
int deliver_command(struct command *com, pkt_callback)
deliver a command to a module
int get_outbound_command_count_important()
return number of commands to be delivered (apart from announce/noop)
int send_command_reply(struct command *com, byte flags)
send a reply to a command
void clear_outbound_queue()
clear the outbound queue any commands within the queue are silently discarded
void process_command(struct command *com)
command is parsed, now execute it
struct command * get_data_reply(struct command *com)
allocates and initializes a packet to be send as "data" to the command typically you'd add some data ...
int send_data(struct command *com, const char *format,...)
send the format string as data in response to command "com"
void process_command_queue()
this gets called when we got some cpu cycles spare we then send out commands and timeout other comman...
struct command * alloc_command()
allocate a free command
int send_command_fw_info(struct command *com, int err)
send a reply to a command