Lines Matching refs:guid
366 int StrToGuid(const char *str, Guid *guid) { in StrToGuid() argument
392 guid->u.Uuid.time_low = htole32(time_low); in StrToGuid()
393 guid->u.Uuid.time_mid = htole16(time_mid); in StrToGuid()
394 guid->u.Uuid.time_high_and_version = htole16(time_high_and_version); in StrToGuid()
396 guid->u.Uuid.clock_seq_high_and_reserved = chunk[3] & 0xff; in StrToGuid()
397 guid->u.Uuid.clock_seq_low = chunk[4] & 0xff; in StrToGuid()
398 guid->u.Uuid.node[0] = chunk[5] & 0xff; in StrToGuid()
399 guid->u.Uuid.node[1] = chunk[6] & 0xff; in StrToGuid()
400 guid->u.Uuid.node[2] = chunk[7] & 0xff; in StrToGuid()
401 guid->u.Uuid.node[3] = chunk[8] & 0xff; in StrToGuid()
402 guid->u.Uuid.node[4] = chunk[9] & 0xff; in StrToGuid()
403 guid->u.Uuid.node[5] = chunk[10] & 0xff; in StrToGuid()
407 void GuidToStr(const Guid *guid, char *str, unsigned int buflen) { in GuidToStr() argument
411 le32toh(guid->u.Uuid.time_low), in GuidToStr()
412 le16toh(guid->u.Uuid.time_mid), in GuidToStr()
413 le16toh(guid->u.Uuid.time_high_and_version), in GuidToStr()
414 guid->u.Uuid.clock_seq_high_and_reserved, in GuidToStr()
415 guid->u.Uuid.clock_seq_low, in GuidToStr()
416 guid->u.Uuid.node[0], guid->u.Uuid.node[1], in GuidToStr()
417 guid->u.Uuid.node[2], guid->u.Uuid.node[3], in GuidToStr()
418 guid->u.Uuid.node[4], guid->u.Uuid.node[5]) == GUID_STRLEN-1); in GuidToStr()