home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / xicon05.zip / macdata.h < prev    next >
C/C++ Source or Header  |  1993-05-06  |  2KB  |  65 lines

  1. /* This file is macdata.h (part of XIcon)
  2.  *
  3.  * Copyright (C) 1993 by Norman Walsh
  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 as published by
  7.  *   the Free Software Foundation; either version 2 of the License, or
  8.  *   (at your option) any later version.
  9.  *
  10.  *   This program is distributed in the hope that it will be useful,
  11.  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.  *   GNU General Public License for more details.
  14.  *
  15.  *   You should have received a copy of the GNU General Public License
  16.  *   along with this program; if not, write to the Free Software
  17.  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  ************************************************************************/
  19.  
  20. #ifndef MACDATA_H
  21. #define MACDATA_H
  22.  
  23. #include "icondata.h"
  24.  
  25. enum MacResourceTypes { Mac_xxxx, Mac_ICNp, Mac_icsp, Mac_icl4, Mac_ics4 };
  26.  
  27. typedef struct _RsrcHdrStruct {
  28.   ULONG  DataOffset;
  29.   ULONG  MapOffset;
  30.   ULONG  DataLen;
  31.   ULONG  MapLen;
  32.   BYTE   OSReserved[96];
  33.   BYTE   AppReserved[128];
  34. } RsrcHdrStruct;
  35.  
  36. typedef struct _RsrcMapStruct {
  37.   ULONG   MapCopy[4];
  38.   ULONG   NextMap;
  39.   USHORT  FileRef;
  40.   USHORT  FileAttr;
  41.   USHORT  TypeOffset;
  42.   USHORT  NameOffset;
  43. } RsrcMapStruct;
  44.  
  45. typedef struct _RsrcTypeStruct {
  46.   char    Name[4];
  47.   USHORT  Count;
  48.   USHORT  RefOffset;
  49. } RsrcTypeStruct;
  50.  
  51. typedef struct _RsrcRefStruct {
  52.   USHORT Ident;
  53.   USHORT NameOffset;
  54.   BYTE   Attr;
  55.   ULONG  DataOffset;
  56. } RsrcRefStruct;
  57.  
  58. typedef struct _MacDataStruct {
  59.   ULONG size;
  60.   BYTE  *map;
  61. } MacDataStruct;
  62.  
  63. #endif /* not MACDATA_H */
  64.  
  65.