Home | History | Annotate | Download | only in health

Lines Matching defs:app

68 	struct hdp_application		*app;
109 hdp_application_unref(chan->app);
133 hdp_application_unref(dc_data->app);
192 const struct hdp_application *app = a;
195 return app->id - *id;
283 const struct hdp_application *app = a;
285 return g_strcmp0(app->path, b);
288 static gboolean set_app_path(struct hdp_application *app)
290 app->id = get_app_id();
291 if (!app->id)
293 app->path = g_strdup_printf(MANAGER_PATH "/health_app_%d", app->id);
326 static void remove_application(struct hdp_application *app)
328 DBG("Application %s deleted", app->path);
329 hdp_application_unref(app);
336 struct hdp_application *app = user_data;
339 applications = g_slist_remove(applications, app);
341 app->dbus_watcher = 0; /* Watcher shouldn't be freed in this case */
342 remove_application(app);
348 struct hdp_application *app;
354 app = hdp_get_app_config(&iter, &err);
362 hdp_application_unref(app);
368 if (!set_app_path(app)) {
369 hdp_application_unref(app);
375 app->oname = g_strdup(name);
376 app->conn = dbus_connection_ref(conn);
378 applications = g_slist_prepend(applications, app);
380 app->dbus_watcher = g_dbus_add_disconnect_watch(conn, name,
381 client_disconnected, app, NULL);
384 DBG("Health application created with id %s", app->path);
386 return g_dbus_create_reply(msg, DBUS_TYPE_OBJECT_PATH, &app->path,
394 struct hdp_application *app;
409 app = l->data;
410 applications = g_slist_remove(applications, app);
412 remove_application(app);
456 path = chan->app->path;
767 struct hdp_application *app,
783 if (app) {
784 hdp_chann->mdep = app->id;
785 hdp_chann->app = hdp_application_ref(app);
1068 struct hdp_application *app;
1108 app = l->data;
1114 if (app->role == HDP_SINK)
1116 else if (dev->fr && app->chan_type_set)
1117 *conf = app->chan_type;
1122 if (!dev->fr || app->role == HDP_SOURCE)
1125 if (app->role == HDP_SOURCE)
1153 dev->ndc = create_channel(dev, *conf, NULL, mdlid, app, NULL);
1735 user_data->app, &gerr);
1897 struct hdp_application *app;
1914 app = l->data;
1925 if (app->role == HDP_SINK && config != HDP_NO_PREFERENCE_DC)
1928 if (app->role == HDP_SOURCE && config == HDP_NO_PREFERENCE_DC)
1937 data->app = hdp_application_ref(app);