diff --git a/syslog_msg_ipc/src/lib.rs b/syslog_msg_ipc/src/lib.rs index acfbbca..dcc5228 100644 --- a/syslog_msg_ipc/src/lib.rs +++ b/syslog_msg_ipc/src/lib.rs @@ -33,3 +33,7 @@ pub fn get_syslog_msg() -> syslog_structs::Message { ipc::process_messages(); } } + +pub fn try_get_syslog_msg() -> Option { + MSG_BUF.lock().pop_front() +}