more rename PV -> PINOS, Pv -> Pinos, pv -> pinos

This commit is contained in:
Wim Taymans 2015-07-07 16:46:23 +02:00
parent 0dd41f5e40
commit a3505fb880
46 changed files with 2333 additions and 2267 deletions

View file

@ -30,21 +30,21 @@ dump_object (GDBusProxy *proxy)
}
static void
subscription_cb (PvContext *context, PvSubscriptionEvent type, PvSubscriptionFlags flags,
subscription_cb (PinosContext *context, PinosSubscriptionEvent type, PinosSubscriptionFlags flags,
GDBusProxy *object, gpointer user_data)
{
switch (type) {
case PV_SUBSCRIPTION_EVENT_NEW:
case PINOS_SUBSCRIPTION_EVENT_NEW:
g_print ("object added %s\n", g_dbus_proxy_get_object_path (object));
dump_object (object);
break;
case PV_SUBSCRIPTION_EVENT_CHANGE:
case PINOS_SUBSCRIPTION_EVENT_CHANGE:
g_print ("object changed %s\n", g_dbus_proxy_get_object_path (object));
dump_object (object);
break;
case PV_SUBSCRIPTION_EVENT_REMOVE:
case PINOS_SUBSCRIPTION_EVENT_REMOVE:
g_print ("object removed %s\n", g_dbus_proxy_get_object_path (object));
break;
}
@ -55,17 +55,17 @@ on_state_notify (GObject *gobject,
GParamSpec *pspec,
gpointer user_data)
{
PvContextState state;
PinosContextState state;
g_object_get (gobject, "state", &state, NULL);
g_print ("got context state %d\n", state);
switch (state) {
case PV_CONTEXT_STATE_ERROR:
case PINOS_CONTEXT_STATE_ERROR:
g_main_loop_quit (loop);
break;
case PV_CONTEXT_STATE_READY:
case PINOS_CONTEXT_STATE_READY:
break;
default:
@ -76,17 +76,17 @@ on_state_notify (GObject *gobject,
gint
main (gint argc, gchar *argv[])
{
PvContext *c;
PinosContext *c;
pv_init (&argc, &argv);
pinos_init (&argc, &argv);
loop = g_main_loop_new (NULL, FALSE);
c = pv_context_new (NULL, "test-client", NULL);
c = pinos_context_new (NULL, "test-client", NULL);
g_signal_connect (c, "notify::state", (GCallback) on_state_notify, c);
g_object_set (c, "subscription-mask", PV_SUBSCRIPTION_FLAGS_ALL, NULL);
g_object_set (c, "subscription-mask", PINOS_SUBSCRIPTION_FLAGS_ALL, NULL);
g_signal_connect (c, "subscription-event", (GCallback) subscription_cb, NULL);
pv_context_connect(c, PV_CONTEXT_FLAGS_NOFAIL);
pinos_context_connect(c, PINOS_CONTEXT_FLAGS_NOFAIL);
g_main_loop_run (loop);