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