uuid.h (d0b3c59ba652f183eeec1414dd9fbdc56bf05cc8) | uuid.h (2b9481465d6ee67ac62c160dbf79c3ec3348c611) |
---|---|
1/* 2 * This file and its contents are supplied under the terms of the 3 * Common Development and Distribution License ("CDDL"), version 1.0. 4 * You may only use this file in accordance with the terms of version 5 * 1.0 of the CDDL. 6 * 7 * A full copy of the text of the CDDL should have accompanied this 8 * source. A copy of the CDDL is also available via the Internet at --- 11 unchanged lines hidden (view full) --- 20#include <uuid/uuid.h> 21 22/* Status codes returned by the functions. */ 23#define uuid_s_ok 0 24#define uuid_s_bad_version 1 25#define uuid_s_invalid_string_uuid 2 26 27static __inline void | 1/* 2 * This file and its contents are supplied under the terms of the 3 * Common Development and Distribution License ("CDDL"), version 1.0. 4 * You may only use this file in accordance with the terms of version 5 * 1.0 of the CDDL. 6 * 7 * A full copy of the text of the CDDL should have accompanied this 8 * source. A copy of the CDDL is also available via the Internet at --- 11 unchanged lines hidden (view full) --- 20#include <uuid/uuid.h> 21 22/* Status codes returned by the functions. */ 23#define uuid_s_ok 0 24#define uuid_s_bad_version 1 25#define uuid_s_invalid_string_uuid 2 26 27static __inline void |
28uuid_from_string(char *str, uuid_t *uuidp, uint32_t *status) | 28uuid_from_string(const char *str, uuid_t *uuidp, uint32_t *status) |
29{ | 29{ |
30 if (uuid_parse(str, *uuidp) == 0) { | 30 if (uuid_parse((char *)str, *uuidp) == 0) { |
31 *status = uuid_s_ok; 32 } else { 33 *status = uuid_s_invalid_string_uuid; 34 } 35} 36 37static __inline void 38uuid_enc_le(void *buf, uuid_t *uuidp) --- 17 unchanged lines hidden --- | 31 *status = uuid_s_ok; 32 } else { 33 *status = uuid_s_invalid_string_uuid; 34 } 35} 36 37static __inline void 38uuid_enc_le(void *buf, uuid_t *uuidp) --- 17 unchanged lines hidden --- |