| 1 | /*
|
|---|
| 2 | * This program is free software; you can redistribute it and/or modify
|
|---|
| 3 | * it under the terms of the GNU General Public License as published by
|
|---|
| 4 | * the Free Software Foundation; either version 2, or (at your option)
|
|---|
| 5 | * any later version.
|
|---|
| 6 | *
|
|---|
| 7 | * This program is distributed in the hope that it will be useful,
|
|---|
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|---|
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|---|
| 10 | * GNU General Public License for more details.
|
|---|
| 11 | *
|
|---|
| 12 | * You should have received a copy of the GNU General Public License
|
|---|
| 13 | * along with this program; see the file COPYING. If not, write to
|
|---|
| 14 | * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
|---|
| 15 | */
|
|---|
| 16 | /*
|
|---|
| 17 | * If you need another license for your project/product (commercial,
|
|---|
| 18 | * noncommercial, whatever) contact me at
|
|---|
| 19 | *
|
|---|
| 20 | * http://www.os2world.com/cdwriting
|
|---|
| 21 | * http://www.geocities.com/SiliconValley/Sector/5785/
|
|---|
| 22 | *
|
|---|
| 23 | */
|
|---|
| 24 |
|
|---|
| 25 | #ifndef _COMMON_H_INCLUDED
|
|---|
| 26 | #define _COMMON_H_INCLUDED
|
|---|
| 27 |
|
|---|
| 28 | #define FIELDOFFSETUL(type, field) ((ULONG)&(((type *)0)->field))
|
|---|
| 29 |
|
|---|
| 30 | /* ID tag defines and defines for info querying */
|
|---|
| 31 | #define IDINFO_NAME 1
|
|---|
| 32 | #define IDINFO_ARTIST 2
|
|---|
| 33 | #define IDINFO_ALBUM 3
|
|---|
| 34 | #define IDINFO_YEAR 4
|
|---|
| 35 | #define IDINFO_COMMENT 5
|
|---|
| 36 | #define IDINFO_GENRE 6
|
|---|
| 37 |
|
|---|
| 38 | #define IDINFO_PLAYTIME 7
|
|---|
| 39 | #define IDINFO_BPS 8
|
|---|
| 40 | #define IDINFO_SAMPLERATE 9
|
|---|
| 41 | #define IDINFO_CHANNELS 10
|
|---|
| 42 | #define IDINFO_BITRATE 11 /* New with 0.2.7 */
|
|---|
| 43 |
|
|---|
| 44 | #define IDINFO_LASTINFO 11
|
|---|
| 45 |
|
|---|
| 46 | #define IDINFO_WIDTH 1
|
|---|
| 47 | #define IDINFO_HEIGHT 2
|
|---|
| 48 | #define IDINFO_BPP 3
|
|---|
| 49 | #define IDINFO_FORMAT 4
|
|---|
| 50 |
|
|---|
| 51 |
|
|---|
| 52 | #define MRFALSE (MRESULT) FALSE
|
|---|
| 53 | #define MRTRUE (MRESULT) TRUE
|
|---|
| 54 |
|
|---|
| 55 | /* Fonts to use in dialogs */
|
|---|
| 56 | #define DEFAULT_DIALOG_FONT "9.WarpSans"
|
|---|
| 57 | #define DEFAULT_DIALOG_FONT_WARP3 "8.Helv"
|
|---|
| 58 |
|
|---|
| 59 | /* Retore keys from Warp 4 */
|
|---|
| 60 | #ifndef IDKEY_FDRGRIDINFO
|
|---|
| 61 | #define IDKEY_FDRGRIDINFO 2938
|
|---|
| 62 | #endif
|
|---|
| 63 |
|
|---|
| 64 | #ifndef IDKEY_FDRLONGARRAY
|
|---|
| 65 | #define IDKEY_FDRLONGARRAY 2931
|
|---|
| 66 | #endif
|
|---|
| 67 |
|
|---|
| 68 | #endif
|
|---|