Home | History | Annotate | Download | only in dbus

Lines Matching refs:uuid

523  * Generates a new UUID. If you change how this is done,
526 * @param uuid the uuid to initialize
529 _dbus_generate_uuid (DBusGUID *uuid)
535 uuid->as_uint32s[DBUS_UUID_LENGTH_WORDS - 1] = DBUS_UINT32_TO_BE (now);
537 _dbus_generate_random_bytes_buffer (uuid->as_bytes, DBUS_UUID_LENGTH_BYTES - 4);
541 * Hex-encode a UUID.
543 * @param uuid the uuid
544 * @param encoded string to append hex uuid to
548 _dbus_uuid_encode (const DBusGUID *uuid,
552 _dbus_string_init_const_len (&binary, uuid->as_bytes, DBUS_UUID_LENGTH_BYTES);
558 DBusGUID *uuid,
576 "UUID file '%s' should contain a hex string of length %d, not length %d, with no other text",
592 "UUID file '%s' contains invalid hex data",
600 "UUID file '%s' contains %d bytes of hex-encoded data instead of %d",
607 _dbus_string_copy_to_buffer (&decoded, uuid->as_bytes, DBUS_UUID_LENGTH_BYTES);
625 DBusGUID *uuid,
632 _dbus_generate_uuid (uuid);
634 if (!_dbus_uuid_encode (uuid, &encoded))
675 * Reads (and optionally writes) a uuid to a file. Initializes the uuid
679 * @param uuid uuid to be initialized with the loaded uuid
680 * @param create_if_not_found #TRUE to create a new uuid and save it if the file doesn't exist
686 DBusGUID *uuid,
694 if (_dbus_read_uuid_file_without_creating (filename, uuid, &read_error))
715 return _dbus_create_uuid_file_exclusively (filename, uuid, error);
724 * Gets the hex-encoded UUID of the machine this function is
725 * executed on. This UUID is guaranteed to be the same for a given
730 * @param uuid_str string to append hex-encoded machine uuid to
751 _dbus_warn_check_failed ("D-Bus library appears to be incorrectly set up; failed to read machine uuid: %s\n"