Lines Matching refs:hal_ctx
39 static LibHalContext *hal_ctx;
224 if ((hal_ctx = libhal_ctx_new ()) == NULL) {
228 if (!libhal_ctx_set_dbus_connection (hal_ctx, dbus_bus_get (DBUS_BUS_SYSTEM, &error))) {
233 if (!libhal_ctx_init (hal_ctx, &error)) {
244 udi_exists = libhal_device_exists (hal_ctx, udi, &error);
256 rc = libhal_device_remove_property (hal_ctx, udi, key, &error);
269 rc = libhal_device_set_property_string (hal_ctx, udi, key, str_value, &error);
272 rc = libhal_device_set_property_int (hal_ctx, udi, key, int_value, &error);
275 rc = libhal_device_set_property_uint64 (hal_ctx, udi, key, uint64_value, &error);
278 rc = libhal_device_set_property_double (hal_ctx, udi, key, double_value, &error);
281 rc = libhal_device_set_property_bool (hal_ctx, udi, key, bool_value, &error);
284 rc = libhal_device_property_strlist_prepend (hal_ctx, udi, key, str_value, &error);
287 rc = libhal_device_property_strlist_append (hal_ctx, udi, key, str_value, &error);
290 rc = libhal_device_property_strlist_remove (hal_ctx, udi, key, str_value, &error);