Skip to content

Commit

Permalink
refactor(lib): add missing peek declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasanchez committed May 11, 2022
1 parent bc4b505 commit 0d39cb6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/inc/util/queue/safe_queue.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,11 @@ void safe_queue_push(safe_queue_t *queue, void *element);
* @return void
*/
void safe_queue_pop(safe_queue_t *queue);

/**
* @brief Safe Peeks a queue of elements
*
* @param queue to be peeked
* @return an element reference
*/
void *safe_queue_peek(safe_queue_t *queue);

0 comments on commit 0d39cb6

Please sign in to comment.