mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-09-06 16:56:00 +00:00
doc: tutorial3: mark vtable static
This commit is contained in:
parent
473809190b
commit
94d405be3b
|
@ -22,13 +22,14 @@ static void on_core_done(void *data, uint32_t id, int seq)
|
|||
|
||||
static int roundtrip(struct pw_core *core, struct pw_main_loop *loop)
|
||||
{
|
||||
struct roundtrip_data d = { .loop = loop };
|
||||
struct spa_hook core_listener;
|
||||
const struct pw_core_events core_events = {
|
||||
static const struct pw_core_events core_events = {
|
||||
PW_VERSION_CORE_EVENTS,
|
||||
.done = on_core_done,
|
||||
};
|
||||
|
||||
struct roundtrip_data d = { .loop = loop };
|
||||
struct spa_hook core_listener;
|
||||
|
||||
pw_core_add_listener(core, &core_listener,
|
||||
&core_events, &d);
|
||||
|
||||
|
|
Loading…
Reference in a new issue