improve v2 compat mode

Always send the server types when we got the first client types and
don't rely on the message sequence number.
Add some more types in the typemap.
This commit is contained in:
Wim Taymans 2020-02-06 16:56:19 +01:00
parent b2dfa83052
commit 7a395bccaf
3 changed files with 11 additions and 6 deletions

View file

@ -100,6 +100,7 @@ typedef uint32_t (*pw_permission_func_t) (struct pw_global *global,
struct protocol_compat_v2 {
/* v2 typemap */
struct pw_map types;
unsigned int send_types:1;
};
#define pw_impl_core_emit(s,m,v,...) spa_hook_list_call(&s->listener_list, struct pw_impl_core_events, m, v, ##__VA_ARGS__)