Add try_get_syslog_msg to IPC crate

This commit is contained in:
pjht 2024-09-04 10:48:28 -05:00
parent 82206ed93d
commit cf16ca4b12
Signed by: pjht
GPG Key ID: 7B5F6AFBEC7EE78E

View File

@ -33,3 +33,7 @@ pub fn get_syslog_msg() -> syslog_structs::Message {
ipc::process_messages();
}
}
pub fn try_get_syslog_msg() -> Option<syslog_structs::Message> {
MSG_BUF.lock().pop_front()
}