syslog: Added channel close callback.

This commit is contained in:
Fotis Panagiotopoulos
2021-06-17 17:45:01 +03:00
committed by Xiang Xiao
parent 83ac6cd399
commit b16de69e56
4 changed files with 13 additions and 5 deletions
+2
View File
@@ -93,6 +93,7 @@ typedef CODE ssize_t (*syslog_write_t)(FAR struct syslog_channel_s *channel,
typedef CODE int (*syslog_putc_t)(FAR struct syslog_channel_s *channel,
int ch);
typedef CODE int (*syslog_flush_t)(FAR struct syslog_channel_s *channel);
typedef CODE void (*syslog_close_t)(FAR struct syslog_channel_s *channel);
/* SYSLOG device operations */
@@ -102,6 +103,7 @@ struct syslog_channel_ops_s
syslog_putc_t sc_force; /* Low-level output for interrupt handlers */
syslog_flush_t sc_flush; /* Flush buffered output (on crash) */
syslog_write_t sc_write; /* Write multiple bytes */
syslog_close_t sc_close; /* Channel close callback */
};
/* This structure provides the interface to a SYSLOG channel */