1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00
sortix--sortix/libmount/include/mount/uuid.h
Jonas 'Sortie' Termansen e6a1cd6dee Add libmount.
2016-02-03 01:01:20 +01:00

46 lines
1.4 KiB
C

/*******************************************************************************
Copyright(C) Jonas 'Sortie' Termansen 2015.
This file is part of Sortix libmount.
Sortix libmount is free software: you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published by the
Free Software Foundation, either version 3 of the License, or (at your
option) any later version.
Sortix libmount is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Sortix libmount. If not, see <http://www.gnu.org/licenses/>.
mount/uuid.h
Universally unique identifier.
*******************************************************************************/
#ifndef INCLUDE_MOUNT_UUID_H
#define INCLUDE_MOUNT_UUID_H
#if !defined(__cplusplus)
#include <stdbool.h>
#endif
#define UUID_STRING_LENGTH 36 /* and of course a nul byte not included here */
#if defined(__cplusplus)
extern "C" {
#endif
bool uuid_validate(const char*);
void uuid_from_string(unsigned char[16], const char*);
void uuid_to_string(const unsigned char[16], char*);
#if defined(__cplusplus)
} /* extern "C" */
#endif
#endif