Lines Matching defs:hal_ctx

62 static LibHalContext *hal_ctx;
98 props = libhal_device_get_all_properties (hal_ctx, udi, &error);
185 if (!libhal_device_exists (hal_ctx, udi, &error)) {
259 device_names = libhal_get_all_devices (hal_ctx, &num_devices, &error);
273 devices[i].parent = libhal_device_get_property_string (hal_ctx,
405 type = libhal_device_get_property_type (hal_ctx, udi, key, &error);
409 str = libhal_device_get_property_string (hal_ctx, udi, key, &error);
415 dbus_int32_t value = libhal_device_get_property_int (hal_ctx, udi, key, &error);
422 dbus_uint64_t value = libhal_device_get_property_uint64 (hal_ctx, udi, key, &error);
429 libhal_device_get_property_double (hal_ctx, udi, key, &error));
433 libhal_device_get_property_bool (hal_ctx, udi, key, &error) ? "true" : "false");
445 strlist = libhal_device_get_property_strlist (hal_ctx, udi, key, &error);
675 if ((hal_ctx = libhal_ctx_new ()) == NULL) {
679 if (!libhal_ctx_set_dbus_connection (hal_ctx, conn)) {
684 if (!libhal_ctx_init (hal_ctx, &error)) {
694 libhal_ctx_set_device_added (hal_ctx, device_added);
695 libhal_ctx_set_device_removed (hal_ctx, device_removed);
696 libhal_ctx_set_device_new_capability (hal_ctx, device_new_capability);
697 libhal_ctx_set_device_lost_capability (hal_ctx, device_lost_capability);
698 libhal_ctx_set_device_property_modified (hal_ctx, property_modified);
699 libhal_ctx_set_device_condition (hal_ctx, device_condition);
711 if ( libhal_device_property_watch_all (hal_ctx, &error) == FALSE) {
722 if ( libhal_ctx_shutdown (hal_ctx, &error) == FALSE)
724 libhal_ctx_free (hal_ctx);