Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
xcap
xcap-async-module
Commits
9f662cc8
Commit
9f662cc8
authored
Mar 30, 2016
by
Charlie Jacobsen
Browse files
Add channel group remove item.
parent
58432a52
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/common/thc_ipc.c
View file @
9f662cc8
...
...
@@ -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
...
...
src/include/thc_ipc.h
View file @
9f662cc8
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment