Add client info message

Update client info and improve core info
This commit is contained in:
Wim Taymans 2016-12-21 17:19:06 +01:00
parent 2f18af1fb2
commit ff5e260d67
11 changed files with 165 additions and 21 deletions

View file

@ -551,6 +551,7 @@ pinos_context_connect (PinosContext *context)
socklen_t size;
const char *runtime_dir, *name = NULL;
int name_size, fd;
PinosMessageClientUpdate cu;
PinosMessageGetRegistry grm;
context_set_state (context, PINOS_CONTEXT_STATE_CONNECTING, NULL);
@ -608,6 +609,12 @@ pinos_context_connect (PinosContext *context)
context->core_proxy->dispatch_func = core_dispatch_func;
context->core_proxy->dispatch_data = impl;
cu.props = &context->properties->dict;
pinos_proxy_send_message (context->core_proxy,
PINOS_MESSAGE_CLIENT_UPDATE,
&cu,
true);
context->registry_proxy = pinos_proxy_new (context,
SPA_ID_INVALID,
context->uri.registry);