00001 00014 #ifndef _KE_QUEUE_H_ 00015 #define _KE_QUEUE_H_ 00016 00029 /* 00030 * INCLUDE FILES 00031 **************************************************************************************** 00032 */ 00033 #include "co_int.h" 00034 #include "co_bool.h" 00035 00036 #include "compiler.h" 00037 #include "ke_config.h" 00038 #include "co_list.h" 00039 00040 /* 00041 * FUNCTION PROTOTYPES 00042 **************************************************************************************** 00043 */ 00053 __INLINE void ke_queue_push(struct co_list *const queue, struct co_list_hdr *const element) 00054 { 00055 co_list_push_back(queue, element); 00056 } 00057 00068 __INLINE struct co_list_hdr *ke_queue_pop(struct co_list *const queue) 00069 { 00070 return co_list_pop_front(queue); 00071 } 00072 00073 struct co_list_hdr *ke_queue_extract(struct co_list * const queue, 00074 bool (*func)(struct co_list_hdr const * elmt, uint32_t arg), 00075 uint32_t arg); 00076 00078 00079 #endif // _KE_QUEUE_H_
1.6.1