mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
ucm: Moved ucm to src/ucm subdirectory
- separate code to more files - use standard lists to represent structures - use alsa-lib configuration parser Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
fcc9adb260
commit
1c79fad969
11 changed files with 2888 additions and 3526 deletions
|
|
@ -162,5 +162,13 @@ static __inline__ void list_splice(struct list_head *list, struct list_head *hea
|
|||
#define list_entry(ptr, type, member) \
|
||||
((type *)((char *)(ptr)-(unsigned long)(&((type *)0)->member)))
|
||||
|
||||
/**
|
||||
* list_entry - get the struct for this entry
|
||||
* @ptr: the &struct list_head pointer.
|
||||
* @type: the type of the struct this is embedded in.
|
||||
* @offset: offset of entry inside a struct
|
||||
*/
|
||||
#define list_entry_offset(ptr, type, offset) \
|
||||
((type *)((char *)(ptr)-(offset)))
|
||||
|
||||
#endif /* _LIST_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue