X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc%2Fmediacontrol_structures.h;h=6a3748276664ddd6c649cda61bc1dd308b65bb97;hb=665ba714270b60aef0af2029d2eae6acb86ef7ff;hp=ac7831875bd9f1030d0a4e49c3f021ef7a9d8555;hpb=25aa7cd697491ba163a49637abccc25c700b8ca3;p=vlc diff --git a/include/vlc/mediacontrol_structures.h b/include/vlc/mediacontrol_structures.h index ac7831875b..6a37482766 100644 --- a/include/vlc/mediacontrol_structures.h +++ b/include/vlc/mediacontrol_structures.h @@ -1,7 +1,7 @@ /***************************************************************************** - * 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 @@ -20,6 +20,12 @@ * 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. @@ -27,13 +33,15 @@ * @{ */ -#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" { # endif +#include + /** * A position may have different origins: * - absolute counts from the movie start @@ -60,12 +68,14 @@ typedef enum { /** * 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; /** @@ -74,7 +84,7 @@ typedef enum { typedef struct { mediacontrol_PositionOrigin origin; mediacontrol_PositionKey key; - vlc_int64_t value; + int64_t value; } mediacontrol_Position; /** @@ -84,7 +94,7 @@ typedef struct { typedef struct { int width; int height; - u_int32_t type; + uint32_t type; int64_t date; int size; char *data;