コード例 #1
0
ファイル: stats-control.c プロジェクト: balabit/syslog-ng
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);
}
コード例 #2
0
ファイル: control.c プロジェクト: millken/zhuxianB30
static gboolean
control_channel_send_stats(GIOChannel *channel, GString *command)
{
  GString *csv;
  
  csv = stats_generate_csv();
  return control_channel_send_reply(channel, csv);
}
コード例 #3
0
ファイル: control.c プロジェクト: essodjolo/syslog-ng-3.4
static void
control_connection_send_stats(ControlConnection *self, GString *command)
{
  control_connection_send_reply(self, stats_generate_csv(), TRUE);
}