Commit 9f662cc8 authored by Charlie Jacobsen's avatar Charlie Jacobsen
Browse files

Add channel group remove item.

parent 58432a52
......@@ -179,6 +179,17 @@ thc_channel_group_item_add(struct thc_channel_group* channel_group,
}
EXPORT_SYMBOL(thc_channel_group_item_add);
void
LIBASYNC_FUNC_ATTR
thc_channel_group_item_remove(struct thc_channel_group* channel_group,
struct thc_channel_group_item* item)
{
list_del_init(&(item->list));
channel_group->size--;
return 0;
}
EXPORT_SYMBOL(thc_channel_group_item_remove);
int
LIBASYNC_FUNC_ATTR
......
......@@ -23,6 +23,9 @@ int thc_channel_group_init(struct thc_channel_group* channel_group);
int thc_channel_group_item_add(struct thc_channel_group* channel_group,
struct thc_channel_group_item* item);
void thc_channel_group_item_remove(struct thc_channel_group* channel_group,
struct thc_channel_group_item* item);
int thc_channel_group_item_get(struct thc_channel_group* channel_group,
int index,
struct thc_channel_group_item **out_item);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment