1 /* 2 * Copyright (C) 2014 Samsung Electronics 3 * Przemyslaw Marczak <p.marczak@samsung.com> 4 * 5 * SPDX-License-Identifier: GPL-2.0+ 6 */ 7 #ifndef __UUID_H__ 8 #define __UUID_H__ 9 10 enum { 11 UUID_STR_FORMAT_STD, 12 UUID_STR_FORMAT_GUID 13 }; 14 15 #define UUID_STR_LEN 36 16 #define UUID_BIN_LEN 16 17 18 int uuid_str_valid(const char *uuid); 19 int uuid_str_to_bin(char *uuid_str, unsigned char *uuid_bin, int str_format); 20 void uuid_bin_to_str(unsigned char *uuid_bin, char *uuid_str, int str_format); 21 #endif 22