1 /*
2  * Copyright (C) 2015-2019 Alibaba Group Holding Limited
3  */
4 
5 #ifndef ULOG_RING_FIFO_H_
6 #define ULOG_RING_FIFO_H_
7 #include <stdint.h>
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12 typedef void (*pop_callback)(void*, void* src, const uint16_t len);
13 
14 extern int uring_fifo_push_s(const void* buf, const uint16_t len);
15 
16 extern int uring_fifo_pop_cb(pop_callback cb, void* cb_arg);
17 
18 extern int uring_fifo_init(void);
19 #ifdef __cplusplus
20 }
21 #endif
22 
23 #endif /*ULOG_RING_FIFO_H_*/
24