mirror of
https://salsa.debian.org/ha-team/libqb
synced 2026-01-01 03:29:01 +00:00
LOG: add qb_log_file_close()
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
This commit is contained in:
parent
2836e5bcf9
commit
da28f16dd8
@ -178,6 +178,11 @@ int32_t qb_log_filter_ctl(uint32_t t, enum qb_log_filter_conf c,
|
||||
|
||||
int32_t qb_log_file_open(const char *filename);
|
||||
|
||||
/**
|
||||
* Close a log file and release is resources.
|
||||
*/
|
||||
void qb_log_file_close(int32_t t);
|
||||
|
||||
/**
|
||||
* Start the logging pthread.
|
||||
*/
|
||||
|
||||
@ -84,4 +84,10 @@ int32_t qb_log_file_open(const char *filename)
|
||||
return t->pos;
|
||||
}
|
||||
|
||||
void qb_log_file_close(int32_t t)
|
||||
{
|
||||
struct qb_log_target * target = qb_log_target_get(t);
|
||||
target->close(target);
|
||||
qb_log_target_free(target);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user