mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-03 00:00:07 +03:00
28 lines
768 B
C
28 lines
768 B
C
|
/*
|
||
|
* UUID/GUID definition
|
||
|
*
|
||
|
* Copyright (C) 2010, 2016 Intel Corp.
|
||
|
* Huang Ying <ying.huang@intel.com>
|
||
|
*
|
||
|
* This program is free software; you can redistribute it and/or
|
||
|
* modify it under the terms of the GNU General Public License version
|
||
|
* 2 as published by the Free Software Foundation;
|
||
|
*
|
||
|
* This program 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 General Public License for more details.
|
||
|
*/
|
||
|
#ifndef _LINUX_UUID_H_
|
||
|
#define _LINUX_UUID_H_
|
||
|
|
||
|
#include <uapi/linux/uuid.h>
|
||
|
#include <string.h>
|
||
|
|
||
|
static inline int uuid_le_cmp(const uuid_le u1, const uuid_le u2)
|
||
|
{
|
||
|
return memcmp(&u1, &u2, sizeof(uuid_le));
|
||
|
}
|
||
|
|
||
|
#endif
|