/*****************************************************************************
- * control_structures.h: global header for mediacontrol
+ * mediacontrol_structures.h: global header for mediacontrol
*****************************************************************************
- * Copyright (C) 2005 the VideoLAN team
+ * Copyright (C) 2005-2008 the VideoLAN team
* $Id$
*
* Authors: Olivier Aubert <olivier.aubert@liris.univ-lyon1.fr>
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
+
+/**
+ * \file
+ * This file defines libvlc mediacontrol_* data structures
+ */
+
/**
* \defgroup mediacontrol_structures MediaControl Structures
* Data structures used in the MediaControl API.
* @{
*/
-#ifndef _VLC_CONTROL_STRUCTURES_H
-#define _VLC_CONTROL_STRUCTURES_H 1
+#ifndef VLC_CONTROL_STRUCTURES_H
+#define VLC_CONTROL_STRUCTURES_H 1
# ifdef __cplusplus
extern "C" {
/**
* Possible player status
+ * Note the order of these enums must match exactly the order of
+ * libvlc_state_t and input_state_e enums.
*/
typedef enum {
- mediacontrol_PlayingStatus, mediacontrol_PauseStatus,
- mediacontrol_ForwardStatus, mediacontrol_BackwardStatus,
- mediacontrol_InitStatus, mediacontrol_EndStatus,
- mediacontrol_UndefinedStatus
+ mediacontrol_UndefinedStatus=0, mediacontrol_InitStatus,
+ mediacontrol_BufferingStatus, mediacontrol_PlayingStatus,
+ mediacontrol_PauseStatus, mediacontrol_StopStatus,
+ mediacontrol_EndStatus, mediacontrol_ErrorStatus,
} mediacontrol_PlayerStatus;
/**