static void control_connection_send_stats(ControlConnection *cc, GString *command, gpointer user_data) { gchar *stats = stats_generate_csv(); GString *result = g_string_new(stats); g_free(stats); control_connection_send_reply(cc, result); }
static gboolean control_channel_send_stats(GIOChannel *channel, GString *command) { GString *csv; csv = stats_generate_csv(); return control_channel_send_reply(channel, csv); }
static void control_connection_send_stats(ControlConnection *self, GString *command) { control_connection_send_reply(self, stats_generate_csv(), TRUE); }