doc} tutorial3.c title
doc} tutorial3.c doc
#include <pipewire/pipewire.h>
struct roundtrip_data {
int pending;
};
static void on_core_done(void *data, uint32_t id, int seq)
{
struct roundtrip_data *d = data;
}
{
.done = on_core_done,
};
struct roundtrip_data d = { .loop = loop };
}
static void registry_event_global(void *data, uint32_t id,
uint32_t permissions, const char *type, uint32_t version,
{
printf("object: id:%u type:%s/%d\n", id, type, version);
}
.global = registry_event_global,
};
int main(int argc, char *argv[])
{
NULL ,
0 );
NULL ,
0 );
0 );
®istry_events, NULL);
roundtrip(core, loop);
return 0;
}