/src/Core/CDROM.xs
http://github.com/PerlGameDev/SDL · Unknown · 29 lines · 22 code · 7 blank · 0 comment · 0 complexity · b4c530dfc8534cccc5ff6936bf1c9f24 MD5 · raw file
- #include "EXTERN.h"
- #include "perl.h"
- #include "XSUB.h"
- #include "ppport.h"
- #ifndef aTHX_
- #define aTHX_
- #endif
- #include <SDL.h>
- MODULE = SDL::CDROM PACKAGE = SDL::CDROM PREFIX = cd_
- int
- cd_num_drives()
- CODE:
- RETVAL = SDL_CDNumDrives();
- OUTPUT:
- RETVAL
- char *
- cd_name( drive )
- int drive
- CODE:
- RETVAL = strdup(SDL_CDName(drive));
- OUTPUT:
- RETVAL