#line 277 "/home/travis/build/felix-lang/felix/src/packages/sdl.fdoc"
  
  //Module        : SDL_cdrom_h
  //Timestamp     : 2006/1/6 2:18:42 UTC
  //Timestamp     : 2006/1/6 13:18:42 (local)
  //Raw Header    : SDL_cdrom.h
  //Preprocessor  : gcc -E
  //Input file: sdl.flxcc.i
  //Flxcc Control : sdl.flxcc
  //Felix Version : 1.1.2_rc1
  
  //#define MSF_TO_FRAMES(M, S, F)        ((M)*60*CD_FPS+(S)*CD_FPS+(F))
  //#define FRAMES_TO_MSF(f, M,S,F)       {                                       \
  //#define CD_FPS        75
  //#define CD_INDRIVE(status)    ((int)status > 0)
  //#define SDL_DATA_TRACK        0x04
  //#define SDL_AUDIO_TRACK       0x00
  //#define SDL_MAX_TRACKS        99
  //#define _SDL_cdrom_h
  
  open module SDL_cdrom_h
  {
    requires package "sdl";
    header '#include "SDL_cdrom.h"';
  
    //ABSTRACT TYPES
    type CDstatus = 'CDstatus';
  
    //CSTRUCTS
    cstruct SDL_CD {
      id: int;
      status: CDstatus;
      numtracks: int;
      cur_track: int;
      cur_frame: int;
      track: &SDL_CDtrack;
    };
    cstruct SDL_CDtrack {
      id: uint8;
      type_: uint8;
      unused: uint16;
      length: uint32;
      offset: uint32;
    };
  
    //STRUCT or UNION TAG ALIASES
  
    /*
    //TYPE ALIASES
    typedef _struct_SDL_CD = SDL_CD;
    typedef _struct_SDL_CDtrack = SDL_CDtrack;
    */
  
    //ENUMERATION CONSTANTS
    const CD_TRAYEMPTY: int = 'CD_TRAYEMPTY';
    const CD_PLAYING: int = 'CD_PLAYING';
    const CD_ERROR: int = 'CD_ERROR';
    const CD_PAUSED: int = 'CD_PAUSED';
    const CD_STOPPED: int = 'CD_STOPPED';
  
    //PROCEDURES
    proc SDL_CDClose: &SDL_CD;
  
    //FUNCTIONS
    fun SDL_CDEject: &SDL_CD -> int;
    fun SDL_CDName: int -> &char;
    fun SDL_CDNumDrives: 1 -> int;
    fun SDL_CDOpen: int -> &SDL_CD;
    fun SDL_CDPause: &SDL_CD -> int;
    fun SDL_CDPlay: &SDL_CD * int * int -> int;
    fun SDL_CDPlayTracks: &SDL_CD * int * int * int * int -> int;
    fun SDL_CDResume: &SDL_CD -> int;
    fun SDL_CDStatus: &SDL_CD -> CDstatus;
    fun SDL_CDStop: &SDL_CD -> int;
  }