mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
conf: implement snd_config_add_before() and snd_config_add_after()
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
4724158c0a
commit
4c021697f1
3 changed files with 100 additions and 1 deletions
|
|
@ -86,6 +86,21 @@ static inline void list_add_tail(struct list_head *p, struct list_head *list)
|
|||
list->prev = p;
|
||||
}
|
||||
|
||||
/* list_insert - insert a new list entry between two known consecutive entries
|
||||
* @p: the new entry to be inserted between prev and next
|
||||
* @prev: the left-side entry
|
||||
* @next: the right-side entry
|
||||
*/
|
||||
static inline void list_insert(struct list_head *p,
|
||||
struct list_head *prev,
|
||||
struct list_head *next)
|
||||
{
|
||||
next->prev = p;
|
||||
p->next = next;
|
||||
p->prev = prev;
|
||||
prev->next = p;
|
||||
}
|
||||
|
||||
/* list_del - delete the given list entry */
|
||||
static inline void list_del(struct list_head *p)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue