Lines Matching refs:hal_ctx

716 	LibHalContext *hal_ctx;
890 * @param hal_ctx libhal context
895 libhal_drive_from_udi (LibHalContext *hal_ctx, const char *udi)
904 LIBHAL_CHECK_LIBHALCONTEXT(hal_ctx, NULL);
911 if (!libhal_device_query_capability (hal_ctx, udi, "storage", &error))
919 drive->hal_ctx = hal_ctx;
925 properties = libhal_device_get_all_properties (hal_ctx, udi, &error);
1084 * @param hal_ctx libhal context
1089 libhal_volume_from_udi (LibHalContext *hal_ctx, const char *udi)
1098 LIBHAL_CHECK_LIBHALCONTEXT(hal_ctx, NULL);
1106 if (!libhal_device_query_capability (hal_ctx, udi, "volume", &error))
1116 properties = libhal_device_get_all_properties (hal_ctx, udi, &error);
1298 * @param hal_ctx libhal context to use
1303 libhal_drive_from_device_file (LibHalContext *hal_ctx, const char *device_file)
1312 LIBHAL_CHECK_LIBHALCONTEXT(hal_ctx, NULL);
1318 if ((hal_udis = libhal_manager_find_device_string_match (hal_ctx, "block.device",
1333 if (libhal_device_query_capability (hal_ctx, udi, "volume", &err1)) {
1335 storage_udi = libhal_device_get_property_string (hal_ctx, udi, "block.storage_device", &err1);
1341 } else if (libhal_device_query_capability (hal_ctx, udi, "storage", &err2)) {
1351 result = libhal_drive_from_udi (hal_ctx, found_udi);
1361 * @param hal_ctx libhal context to use
1366 libhal_volume_from_device_file (LibHalContext *hal_ctx, const char *device_file)
1375 LIBHAL_CHECK_LIBHALCONTEXT(hal_ctx, NULL);
1381 if ((hal_udis = libhal_manager_find_device_string_match (hal_ctx, "block.device",
1388 if (libhal_device_query_capability (hal_ctx, udi, "volume", &error)) {
1397 result = libhal_volume_from_udi (hal_ctx, found_udi);
1706 libhal_drive_find_all_volumes (LibHalContext *hal_ctx, LibHalDrive *drive, int *num_volumes)
1715 LIBHAL_CHECK_LIBHALCONTEXT(hal_ctx, NULL);
1727 if ((udis = libhal_manager_find_device_string_match (hal_ctx, "block.storage_device",
1759 libhal_volume_crypto_get_clear_volume_udi (LibHalContext *hal_ctx, LibHalVolume *volume)
1768 LIBHAL_CHECK_LIBHALCONTEXT (hal_ctx, NULL);
1771 clear_devices = libhal_manager_find_device_string_match (hal_ctx,
1791 libhal_drive_policy_default_get_mount_root (LibHalContext *hal_ctx)
1796 LIBHAL_CHECK_LIBHALCONTEXT(hal_ctx, NULL);
1799 if ((result = libhal_device_get_property_string (hal_ctx, "/org/freedesktop/Hal/devices/computer",
1807 libhal_drive_policy_default_use_managed_keyword (LibHalContext *hal_ctx)
1812 LIBHAL_CHECK_LIBHALCONTEXT(hal_ctx, FALSE);
1815 if ((result = libhal_device_get_property_bool (hal_ctx, "/org/freedesktop/Hal/devices/computer",
1823 libhal_drive_policy_default_get_managed_keyword_primary (LibHalContext *hal_ctx)
1828 LIBHAL_CHECK_LIBHALCONTEXT(hal_ctx, NULL);
1831 if ((result = libhal_device_get_property_string (hal_ctx, "/org/freedesktop/Hal/devices/computer",
1839 libhal_drive_policy_default_get_managed_keyword_secondary (LibHalContext *hal_ctx)
1844 LIBHAL_CHECK_LIBHALCONTEXT(hal_ctx, NULL);
1847 if ((result = libhal_device_get_property_string (hal_ctx, "/org/freedesktop/Hal/devices/computer",
1878 mopts_collect (LibHalContext *hal_ctx, const char *namespace, int namespace_len,
1885 if(hal_ctx == 0) {
1893 properties = libhal_device_get_all_properties (hal_ctx, udi, &error);
1968 mopts_collect (drive->hal_ctx, stor_mount_option_default_begin, sizeof (stor_mount_option_default_begin),
1970 mopts_collect (drive->hal_ctx, stor_mount_option_begin, sizeof (stor_mount_option_begin),
1973 mopts_collect (drive->hal_ctx, stor_mount_option_default_begin, sizeof (stor_mount_option_default_begin),
1975 mopts_collect (drive->hal_ctx, stor_mount_option_begin, sizeof (stor_mount_option_begin),
2011 mopts_collect (drive->hal_ctx, stor_mount_option_default_begin, sizeof (stor_mount_option_default_begin),
2013 mopts_collect (drive->hal_ctx, vol_mount_option_begin, sizeof (vol_mount_option_begin),
2016 mopts_collect (drive->hal_ctx, stor_mount_option_default_begin, sizeof (stor_mount_option_default_begin),
2018 mopts_collect (drive->hal_ctx, vol_mount_option_begin, sizeof (vol_mount_option_begin),