doc} tutorial3.c title
doc} tutorial3.c doc
{
int pending, done = 0;
void core_event_done(void *object, uint32_t id, int seq) {
done = 1;
}
}
.done = core_event_done,
};
&core_events, NULL);
}
return 0;
}
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;
}