X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc%2Flibvlc_structures.h;h=f2eebd9c6390cb21cd709e9911549d3eb8f62f49;hb=a9fa523c9169698abeed899d4229e55015b660a7;hp=9c833b0b568c1a31f346f63d7b6d8cee70b9ea86;hpb=a308763e5e6312316c38d7e40e1a0eaaa78b3cf5;p=vlc diff --git a/include/vlc/libvlc_structures.h b/include/vlc/libvlc_structures.h index 9c833b0b56..f2eebd9c63 100644 --- a/include/vlc/libvlc_structures.h +++ b/include/vlc/libvlc_structures.h @@ -24,27 +24,7 @@ #ifndef _LIBVLC_STRUCTURES_H #define _LIBVLC_STRUCTURES_H 1 -#if defined (WIN32) && defined (DLL_EXPORT) -# define VLC_PUBLIC_API __declspec(dllexport) -#else -# define VLC_PUBLIC_API -#endif - -#ifdef __LIBVLC__ -/* Avoid unuseful warnings from libvlc with our deprecated APIs */ -# define VLC_DEPRECATED_API VLC_PUBLIC_API -#elif defined(__GNUC__) && \ - (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0) -# define VLC_DEPRECATED_API VLC_PUBLIC_API __attribute__((deprecated)) -#else -# define VLC_DEPRECATED_API VLC_PUBLIC_API -#endif - -#if (defined( WIN32 ) || defined( UNDER_CE )) && !defined( __MINGW32__ ) -typedef signed __int64 vlc_int64_t; -# else -typedef signed long long vlc_int64_t; -#endif +#include # ifdef __cplusplus extern "C" { @@ -81,7 +61,7 @@ typedef struct libvlc_exception_t * @{ */ -typedef vlc_int64_t libvlc_time_t; +typedef int64_t libvlc_time_t; /**@} */ @@ -139,16 +119,26 @@ typedef struct libvlc_media_t libvlc_media_t; typedef struct libvlc_media_player_t libvlc_media_player_t; +/** + * Note the order of libvlc_state_t enum must match exactly the order of + * @see mediacontrol_PlayerStatus and @see input_state_e enums. + * + * Expected states by web plugins are: + * IDLE/CLOSE=0, OPENING=1, BUFFERING=2, PLAYING=3, PAUSED=4, + * STOPPING=5, FORWARD=6, BACKWARD=7, ENDED=8, ERROR=9 + */ typedef enum libvlc_state_t { - libvlc_NothingSpecial, - libvlc_Stopped, + libvlc_NothingSpecial=0, libvlc_Opening, libvlc_Buffering, - libvlc_Ended, - libvlc_Error, libvlc_Playing, - libvlc_Paused + libvlc_Paused, + libvlc_Stopped, + libvlc_Forward, + libvlc_Backward, + libvlc_Ended, + libvlc_Error } libvlc_state_t; /**@} */