Added response verdict popping from the queue and implemented PopFromNanoQueue.

This commit is contained in:
Granyaa
2026-01-14 17:05:26 +02:00
parent 5e70658d77
commit c494a7e59c
3 changed files with 80 additions and 2 deletions

View File

@@ -231,4 +231,18 @@ nano_request_delayed_verdict(
void
nano_send_metric_data_sender(NanoAttachment *attachment);
///
/// @brief Pops one element from the shared memory queue and returns its session ID.
///
/// This function checks if data is available in the queue, receives the data,
/// extracts the session ID from the HttpReplyFromService structure, and pops
/// the element from the queue.
///
/// @param attachment A pointer to a NanoAttachment structure representing the attachment to the nano service.
///
/// @return The session ID of the popped element, or 0 if the queue is empty or an error occurred.
///
AttachmentVerdictResponse
PopResponseVerdictFromQueue(NanoAttachment *attachment);
#endif // __NANO_ATTACHMENT_IO_H__