Example #1
0
static void tnt_xlog_free(struct tnt_stream *s) {
	struct tnt_stream_xlog *sx = TNT_SXLOG_CAST(s);
	tnt_log_close(&sx->log);
	tnt_mem_free(s->data);
	s->data = NULL;
}
Example #2
0
inline static int
tnt_log_open_err(struct tnt_log *l, enum tnt_log_error e) {
	tnt_log_seterr(l, e);
	tnt_log_close(l);
	return -1;
}
Example #3
0
/*
 * tnt_xlog_close()
 *
 * close xlog stream; 
 *
 * s - xlog stream pointer
 * 
 * returns 0 on success, or -1 on error.
*/
void tnt_xlog_close(struct tnt_stream *s) {
	struct tnt_stream_xlog *sx = TNT_SXLOG_CAST(s);
	tnt_log_close(&sx->log);
}