1*6d49e1aeSJan Lentfer /* 2*6d49e1aeSJan Lentfer * Universally Unique IDentifier (UUID) 3*6d49e1aeSJan Lentfer * Copyright (c) 2008, Jouni Malinen <j@w1.fi> 4*6d49e1aeSJan Lentfer * 5*6d49e1aeSJan Lentfer * This program is free software; you can redistribute it and/or modify 6*6d49e1aeSJan Lentfer * it under the terms of the GNU General Public License version 2 as 7*6d49e1aeSJan Lentfer * published by the Free Software Foundation. 8*6d49e1aeSJan Lentfer * 9*6d49e1aeSJan Lentfer * Alternatively, this software may be distributed under the terms of BSD 10*6d49e1aeSJan Lentfer * license. 11*6d49e1aeSJan Lentfer * 12*6d49e1aeSJan Lentfer * See README and COPYING for more details. 13*6d49e1aeSJan Lentfer */ 14*6d49e1aeSJan Lentfer 15*6d49e1aeSJan Lentfer #ifndef UUID_H 16*6d49e1aeSJan Lentfer #define UUID_H 17*6d49e1aeSJan Lentfer 18*6d49e1aeSJan Lentfer #define UUID_LEN 16 19*6d49e1aeSJan Lentfer 20*6d49e1aeSJan Lentfer int uuid_str2bin(const char *str, u8 *bin); 21*6d49e1aeSJan Lentfer int uuid_bin2str(const u8 *bin, char *str, size_t max_len); 22*6d49e1aeSJan Lentfer int is_nil_uuid(const u8 *uuid); 23*6d49e1aeSJan Lentfer void uuid_gen_mac_addr(const u8 *mac_addr, u8 *uuid); 24*6d49e1aeSJan Lentfer 25*6d49e1aeSJan Lentfer #endif /* UUID_H */ 26