VLC_API int intf_Create( vlc_object_t *, const char * );
#define intf_Create(a,b) intf_Create(VLC_OBJECT(a),b)
-VLC_API int intf_Eject( vlc_object_t *, const char * );
-#define intf_Eject(a,b) intf_Eject(VLC_OBJECT(a),b)
-
VLC_API void libvlc_Quit( libvlc_int_t * );
/*@}*/
/*****************************************************************************
- * intf_eject.c: CD/DVD-ROM ejection handling functions
+ * eject.c: CD/DVD-ROM ejection handling functions
*****************************************************************************
- * Copyright (C) 2001-2004 the VideoLAN team
- * $Id$
+ * Copyright (C) 2001-2011 the VideoLAN team
*
* Authors: Julien Blache <jb@technologeek.org> for the Linux part
* with code taken from the Linux "eject" command
* This file contain functions to eject CD and DVD drives
*/
-#ifdef HAVE_CONFIG_H
+/*#ifdef HAVE_CONFIG_H
# include "config.h"
-#endif
+#endif*/
#include <vlc_common.h>
#include <vlc_fs.h>
-#include <vlc_interface.h>
#if defined( WIN32 ) && !defined( UNDER_CE )
# include <mmsystem.h>
#undef intf_Eject
/**
- * \brief Ejects the CD /DVD
- * \ingroup vlc_interface
+ * Ejects the optical disc in a device
* \param p_this the calling vlc_object_t
* \param psz_device the CD/DVD to eject
- * \return 0 on success, 1 on failure, -1 if not implemented
+ * \return VLC_SUCCESS or VLC_EGENERIC
*/
-int intf_Eject( vlc_object_t *p_this, const char *psz_device )
+static int intf_Eject( vlc_object_t *p_this, const char *psz_device )
{
VLC_UNUSED(p_this);
return VLC_EGENERIC;
#endif
}
+
+#define intf_Eject(o, p) intf_Eject(VLC_OBJECT(o), p)
add_directory("browse-dir", NULL, BROWSE_TEXT, BROWSE_LONGTEXT, false)
vlc_module_end ()
+#include "eject.c"
+
/*****************************************************************************
* intf_sys_t: description and status of ncurses interface
*****************************************************************************/
I_DIR_OR_FOLDER( N_("Select a device or a VIDEO_TS directory"), \
N_("Select a device or a VIDEO_TS folder") )
+#include "../../eject.c"
+
/* Populate a combobox with the devices matching a pattern.
Combobox will automatically do autocompletion on the edit zone */
#define POPULATE_WITH_DEVS(ppsz_devlist, targetCombo) \