mirror of
https://github.com/openappsec/attachment.git
synced 2026-01-17 16:00:26 +03:00
Chaned PopfromQueue functions
This commit is contained in:
@@ -273,7 +273,7 @@ SendDataNanoAttachmentAsync(NanoAttachment *attachment, AttachmentData *data)
|
||||
// TODO: Implement
|
||||
// Check if the queue is empty, return true if yes - otherwise false.
|
||||
bool
|
||||
isQueueEmpty(NanoAttachment *attachment)
|
||||
isNanoQueueEmpty(NanoAttachment *attachment)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -282,8 +282,11 @@ isQueueEmpty(NanoAttachment *attachment)
|
||||
// [hash on session id] -> [verdict+modification]
|
||||
// Updating the table, and then return the session ID to the caller
|
||||
SessionID
|
||||
PopFromQueue(NanoAttachment *attachment)
|
||||
PopFromNanoQueue(NanoAttachment *attachment)
|
||||
{
|
||||
// Pop from queue
|
||||
// Put into hash table.
|
||||
|
||||
SessionID session_id = 0;
|
||||
return session_id;
|
||||
}
|
||||
|
||||
@@ -295,7 +295,7 @@ freeCompressedBody(
|
||||
///
|
||||
/// @return Returns true if the queue is empty, false otherwise.
|
||||
///
|
||||
bool isQueueEmpty(NanoAttachment *attachment);
|
||||
bool isNanoQueueEmpty(NanoAttachment *attachment);
|
||||
|
||||
///
|
||||
/// @brief Pops a session ID from the queue and updates the table.
|
||||
@@ -304,7 +304,7 @@ bool isQueueEmpty(NanoAttachment *attachment);
|
||||
///
|
||||
/// @return The session ID that was popped from the queue.
|
||||
///
|
||||
SessionID PopFromQueue(NanoAttachment *attachment);
|
||||
SessionID PopFromNanoQueue(NanoAttachment *attachment);
|
||||
|
||||
///
|
||||
/// @brief Retrieves a verdict response for a given session ID from the table.
|
||||
|
||||
Reference in New Issue
Block a user