1 Star 0 Fork 11

OHOS_nanopi_m1_plus / oh-dropbear

forked from xfan1024 / oh-dropbear 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
list.h 534 Bytes
一键复制 编辑 原始数据 按行查看 历史
xfan1024 提交于 2021-08-13 14:40 . Init commit: dropbear-2020.81
#ifndef DROPBEAR_DROPBEAR_LIST_H
#define DROPBEAR_DROPBEAR_LIST_H
struct _m_list;
struct _m_list_elem {
void *item;
struct _m_list_elem *next;
struct _m_list_elem *prev;
struct _m_list *list;
};
typedef struct _m_list_elem m_list_elem;
struct _m_list {
m_list_elem *first;
m_list_elem *last;
};
typedef struct _m_list m_list;
m_list * list_new(void);
void list_append(m_list *list, void *item);
/* returns the item for the element removed */
void * list_remove(m_list_elem *elem);
#endif /* DROPBEAR_DROPBEAR_LIST_H */
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ohos_nanopi_m1_plus/oh-dropbear.git
git@gitee.com:ohos_nanopi_m1_plus/oh-dropbear.git
ohos_nanopi_m1_plus
oh-dropbear
oh-dropbear
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891