mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-09 13:30:06 -05:00
types: work on types
Move static pod types to type system work on type info for types Move the event and command ids to an enum to make it easier to extend later.
This commit is contained in:
parent
fca3e1d85d
commit
805e3bb6c1
82 changed files with 812 additions and 924 deletions
|
|
@ -219,14 +219,14 @@ static void on_monitor_event(void *data, struct spa_event *event)
|
|||
now_nsec = now.tv_sec * SPA_NSEC_PER_SEC + now.tv_nsec;
|
||||
|
||||
item = SPA_POD_CONTENTS(struct spa_event, event);
|
||||
switch(SPA_EVENT_TYPE(event)) {
|
||||
case SPA_ID_EVENT_MONITOR_Added:
|
||||
switch (SPA_MONITOR_EVENT_ID(event)) {
|
||||
case SPA_MONITOR_EVENT_Added:
|
||||
add_item(this, item, now_nsec);
|
||||
break;
|
||||
case SPA_ID_EVENT_MONITOR_Removed:
|
||||
case SPA_MONITOR_EVENT_Removed:
|
||||
remove_item(this, item, now_nsec);
|
||||
break;
|
||||
case SPA_ID_EVENT_MONITOR_Changed:
|
||||
case SPA_MONITOR_EVENT_Changed:
|
||||
change_item(this, item, now_nsec);
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue