コード例 #1
0
static int
noit_livestream_logio_close(noit_log_stream_t ls) {
  noit_livestream_closure_t *jcl;
  jcl = noit_log_stream_get_ctx(ls);
  if(jcl) noit_livestream_closure_free(jcl);
  noit_log_stream_set_ctx(ls, NULL);
  return 0;
}
コード例 #2
0
ファイル: noit_console.c プロジェクト: Icarus-xx/reconnoiter
static int
noit_console_logio_close(noit_log_stream_t ls) {
  noit_console_closure_t ncct;
  ncct = noit_log_stream_get_ctx(ls);
  if(!ncct) return 0;
  ncct->e = NULL;
  noit_log_stream_set_ctx(ls, NULL);
  return 0;
}