Remove some macros, we can use the paste operator before __VA_ARGS__

This commit is contained in:
Wim Taymans 2017-08-07 19:55:03 +02:00
parent b90dac7656
commit 791fb53503
19 changed files with 31 additions and 50 deletions

View file

@ -760,7 +760,7 @@ static bool client_node_demarshal_destroy(void *object, void *data, size_t size)
if (!spa_pod_iter_struct(&it, data, size))
return false;
pw_resource_do_na(resource, struct pw_client_node_proxy_methods, destroy);
pw_resource_do(resource, struct pw_client_node_proxy_methods, destroy);
return true;
}

View file

@ -235,7 +235,7 @@ void pw_protocol_native_connection_destroy(struct pw_protocol_native_connection
pw_log_debug("connection %p: destroy", conn);
pw_listener_list_emit_na(&conn->listener_list, struct pw_protocol_native_connection_events, destroy);
pw_listener_list_emit(&conn->listener_list, struct pw_protocol_native_connection_events, destroy);
free(impl->out.buffer_data);
free(impl->in.buffer_data);
@ -430,7 +430,7 @@ pw_protocol_native_connection_end(struct pw_protocol_native_connection *conn,
printf(">>>>>>>>> out:\n");
spa_debug_pod((struct spa_pod *)p);
}
pw_listener_list_emit_na(&conn->listener_list, struct pw_protocol_native_connection_events, need_flush);
pw_listener_list_emit(&conn->listener_list, struct pw_protocol_native_connection_events, need_flush);
}
/** Flush the connection object

View file

@ -352,14 +352,14 @@ static void on_node_need_input(void *data)
{
struct impl *impl = data;
struct pw_node *this = impl->this;
pw_listener_list_emit_na(&this->listener_list, struct pw_node_events, need_input);
pw_listener_list_emit(&this->listener_list, struct pw_node_events, need_input);
}
static void on_node_have_output(void *data)
{
struct impl *impl = data;
struct pw_node *this = impl->this;
pw_listener_list_emit_na(&this->listener_list, struct pw_node_events, have_output);
pw_listener_list_emit(&this->listener_list, struct pw_node_events, have_output);
}
static void