DOSBox-X
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
src/aviwriter/guid.h
00001 /*
00002  *  Copyright (C) 2018  Jon Campbell
00003  *
00004  *  This program is free software; you can redistribute it and/or modify
00005  *  it under the terms of the GNU General Public License as published by
00006  *  the Free Software Foundation; either version 2 of the License, or
00007  *  (at your option) any later version.
00008  *
00009  *  This program is distributed in the hope that it will be useful,
00010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *  GNU General Public License for more details.
00013  *
00014  *  You should have received a copy of the GNU General Public License
00015  *  along with this program; if not, write to the Free Software
00016  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00017  */
00018 
00019 #ifndef __ISP_UTILS_V4_GUID_H
00020 #define __ISP_UTILS_V4_GUID_H
00021 
00022 #include <stdint.h>
00023 
00024 #include "config.h"
00025 
00026 #include "informational.h"
00027 
00028 #if defined(_MSC_VER)
00029 # pragma pack(push,1)
00030 #endif
00031 
00032 /* [doc] windows_GUID
00033  *
00034  * Packed portable representation of the Microsoft Windows GUID
00035  * structure.
00036  */
00037 typedef struct {                                        /* (sizeof) (offset hex) (offset dec) */
00038         uint32_t _Little_Endian_        a;              /* (4)   +0x00 +0 */
00039         uint16_t _Little_Endian_        b,c;            /* (2,2) +0x04 +4 */
00040         uint8_t _Little_Endian_         d[2];           /* (2)   +0x08 +8 */
00041         uint8_t _Little_Endian_         e[6];           /* (6)   +0x0A +10 */
00042 } GCC_ATTRIBUTE(packed) windows_GUID;                   /* (16)  =0x10 =16 */
00043 #define windows_GUID_size (16)
00044 
00045 #if defined(_MSC_VER)
00046 # pragma pack(pop)
00047 #endif
00048 
00049 unsigned char windows_IsEqualGUID(const windows_GUID *a,const windows_GUID *b);
00050 
00051 #endif
00052