Warning, file /multimedia/libkcompactdisc/src/wmlib/include/wm_platform.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 #ifndef WM_PLATFORM_H 0002 #define WM_PLATFORM_H 0003 /* 0004 * This file is part of WorkMan, the civilized CD player library 0005 * Copyright (C) 1991-1997 by Steven Grimm <koreth@midwinter.com> 0006 * Copyright (C) by Dirk Försterling <milliByte@DeathsDoor.com> 0007 * 0008 * This library is free software; you can redistribute it and/or 0009 * modify it under the terms of the GNU Library General Public 0010 * License as published by the Free Software Foundation; either 0011 * version 2 of the License, or (at your option) any later version. 0012 * 0013 * This library is distributed in the hope that it will be useful, 0014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0016 * Library General Public License for more details. 0017 * 0018 * You should have received a copy of the GNU Library General Public 0019 * License along with this library; if not, write to the Free 0020 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 0021 * 0022 * The platform interface 0023 * 0024 * This is just one more step to a more modular and understandable code. 0025 */ 0026 0027 #define WM_CDS_ERROR(status) ((status) < 0 ||\ 0028 (status) == WM_CDM_UNKNOWN) 0029 0030 #define WM_CDS_NO_DISC(status) ((status) < 0 ||\ 0031 (status) == WM_CDM_UNKNOWN ||\ 0032 (status) == WM_CDM_EJECTED ||\ 0033 (status) == WM_CDM_NO_DISC) 0034 0035 #define WM_CDS_DISC_READY(status) ((status) == WM_CDM_TRACK_DONE ||\ 0036 (status) == WM_CDM_PLAYING ||\ 0037 (status) == WM_CDM_FORWARD ||\ 0038 (status) == WM_CDM_PAUSED ||\ 0039 (status) == WM_CDM_STOPPED ||\ 0040 (status) == WM_CDM_LOADING ||\ 0041 (status) == WM_CDM_BUFFERING) 0042 0043 #define WM_CDS_DISC_PLAYING(status) ((status) == WM_CDM_TRACK_DONE ||\ 0044 (status) == WM_CDM_PLAYING ||\ 0045 (status) == WM_CDM_FORWARD ||\ 0046 (status) == WM_CDM_PAUSED) 0047 #define WM_CDM_BACK 1 0048 #define WM_CDM_TRACK_DONE 1 0049 #define WM_CDM_PLAYING 2 0050 #define WM_CDM_FORWARD 3 0051 #define WM_CDM_PAUSED 4 0052 #define WM_CDM_STOPPED 5 0053 #define WM_CDM_EJECTED 6 0054 #define WM_CDM_DEVICECHANGED 9 /* deprecated */ 0055 #define WM_CDM_NO_DISC 10 0056 #define WM_CDM_UNKNOWN 11 0057 #define WM_CDM_CDDAERROR 12 0058 #define WM_CDM_LOADING 13 /* tribute to phonon state machine */ 0059 #define WM_CDM_BUFFERING 14 /* tribute to phonon state machine */ 0060 #define WM_CDM_CDDAACK 0xF0 0061 0062 #endif /* WM_PLATFORM_H */