MME_SLOTTYPE_*

Slot type definitions

Synopsis:

#include <mme/interface.h>

#define MME_SLOTTYPE_*

Description:

The constants MME_SLOTTYPE_* define the slot types the MME recognizes. The values listed in the table below are used by the slottype field in the:

Constant Value Description
MME_SLOTTYPE_UNKNOWN 0 Unknown device.
MME_SLOTTYPE_USB 1 USB device.
MME_SLOTTYPE_CD 2 Internal CD/DVD drive.
MME_SLOTTYPE_DRIVE 3 Not used.
MME_SLOTTYPE_MEDIAFS 4 Not used.
MME_SLOTTYPE_CD_EXT 5 External CD/DVD drive.
MME_SLOTTYPE_CD_CHGR_INT 6 Internal CD/DVD changer.
MME_SLOTTYPE_CD_CHGR_EXT 7 External CD/DVD changer.
MME_SLOTTYPE_FILESYSTEM 8 Generic POSIX filesystem type.
MME_SLOTTYPE_BLUETOOTH 9 Bluetooth stack.
MME_SLOTTYPE_INTERNET 10 Internet, used for streaming.

Macros for determining slot types

The MME includes some macros that facilitate determining a slot type.

check_slottype_cd

Use the macro check_slottype_cd to determine if the slot type is for any type of CD:

#define check_slottype_cd(slottype) \
  ((slottype == MME_SLOTTYPE_CD || slottype == MME_SLOTTYPE_CD_EXT || \
    slottype == MME_SLOTTYPE_CD_CHGR_INT || slottype == MME_SLOTTYPE_CD_CHGR_EXT))

check_slottype_cd_int

Use the macro check_slottype_cd_int to determine if the slot type is for an internal CD:

#define check_slottype_cd_int(slottype) \
  ((slottype == MME_SLOTTYPE_CD || slottype == MME_SLOTTYPE_CD_CHGR_INT))

check_slottype_cd_int

Use the macro check_slottype_cd_ext to determine if the slot type is for an external CD:

#define check_slottype_cd_ext(slottype) \
  ((slottype == MME_SLOTTYPE_CD_EXT || slottype == MME_SLOTTYPE_CD_CHGR_EXT))

is_mediafs_type

Use the macro is_mediafs_type to determine if the slot type is for a media filesystem:

#define is_mediafs_type(SLOTTYPE) \
  ((SLOTTYPE == MME_SLOTTYPE_MEDIAFS) || (SLOTTYPE == MME_SLOTTYPE_MEDIAFS_2WIRE))

Classification:

QNX Multimedia

See also:

mme_play_info_t