Move subscription signal to context

Emit the subscription signal event directly from the context, This is
easier and it avoids having two subscribe objects.

Remove client proxy property from the context, we don't need it anymore.

Only expose objects when the client manager has a name-owner.
This commit is contained in:
Wim Taymans 2015-04-27 11:06:48 +02:00
parent 2b1558d0e5
commit e151150cad
4 changed files with 115 additions and 100 deletions

View file

@ -69,12 +69,8 @@ on_state_notify (GObject *gobject,
break;
case PV_CONTEXT_STATE_READY:
{
PvSubscribe *subscribe;
subscribe = pv_subscribe_new ();
g_object_set (subscribe, "subscription-mask", PV_SUBSCRIPTION_FLAGS_ALL, NULL);
g_signal_connect (subscribe, "subscription-event", (GCallback) subscription_cb, NULL);
pv_context_set_subscribe (c, subscribe);
g_object_set (c, "subscription-mask", PV_SUBSCRIPTION_FLAGS_ALL, NULL);
g_signal_connect (c, "subscription-event", (GCallback) subscription_cb, NULL);
break;
}