Lines Matching refs:udi
59 "usage : hal-get-property --udi <udi> --key <key> \n"
63 " --udi Unique Device Id\n"
85 char *udi = NULL;
105 {"udi", 1, NULL, 0},
134 } else if (strcmp (opt, "udi") == 0) {
135 udi = strdup (optarg);
151 if (udi == NULL || key == NULL) {
177 udi_exists = libhal_device_exists (hal_ctx, udi, &error);
179 fprintf (stderr, "error: UDI %s does not exist\n", udi);
189 type = libhal_device_get_property_type (hal_ctx, udi, key, &error);
202 str = libhal_device_get_property_string (hal_ctx, udi, key, &error);
213 libhal_device_get_property_int (hal_ctx, udi, key, &error));
220 (long long unsigned int) libhal_device_get_property_uint64 (hal_ctx, udi, key, &error));
226 libhal_device_get_property_double (hal_ctx, udi, key, &error));
232 libhal_device_get_property_bool (hal_ctx, udi, key, &error) ? "true" : "false");
240 if ((strlist = libhal_device_get_property_strlist (hal_ctx, udi, key, &error)) != NULL) {