1 /*
2  * Copyright (c) 2020-2021 Huawei Device Co., Ltd.
3  *
4  * HDF is dual licensed: you can use it either under the terms of
5  * the GPL, or the BSD license, at your option.
6  * See the LICENSE file in the root of this repository for complete details.
7  */
8 
9 #ifndef HDF_WLAN_PRIORITY_QUEUE_H
10 #define HDF_WLAN_PRIORITY_QUEUE_H
11 
12 #include "hdf_base.h"
13 #include "osal_sem.h"
14 
15 #define HIGHEST_PRIORITY 0
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 typedef struct {
22 } PriorityQueue;
23 
24 PriorityQueue *CreatePriorityQueue(uint16_t queueSize, uint8_t priorityLevelCount);
25 void DestroyPriorityQueue(PriorityQueue *);
26 void *PopPriorityQueue(PriorityQueue *queue, uint32_t waitInMS);
27 int32_t PushPriorityQueue(PriorityQueue *queue, const uint8_t priority, void *context);
28 
29 #ifdef __cplusplus
30 }
31 #endif
32 
33 #endif