/*! Eject media. Return 1 if successful, 0 otherwise. */ static int eject_media_freebsd (void *p_user_data) { _img_private_t *p_env = p_user_data; return (p_env->access_mode == _AM_IOCTL) ? eject_media_freebsd_ioctl(p_env) : eject_media_freebsd_cam(p_env); }
/*! Eject media. Return 1 if successful, 0 otherwise. */ static int eject_media_freebsd (void *p_user_data) { _img_private_t *p_env = p_user_data; switch (p_env->access_mode) { case _AM_CAM: case _AM_MMC_RDWR: case _AM_MMC_RDWR_EXCL: return eject_media_freebsd_cam(p_env); case _AM_IOCTL: return eject_media_freebsd_ioctl(p_env); case _AM_NONE: cdio_info ("access mode not set"); return 0; } return 0; }