00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #ifndef VLC_CONTROL_STRUCTURES_H
00031 #define VLC_CONTROL_STRUCTURES_H 1
00032
00033 # ifdef __cplusplus
00034 extern "C" {
00035 # endif
00036
00037 #include <stdint.h>
00038
00039
00040
00041
00042
00043
00044
00045 typedef enum {
00046 mediacontrol_AbsolutePosition,
00047 mediacontrol_RelativePosition,
00048 mediacontrol_ModuloPosition
00049 } mediacontrol_PositionOrigin;
00050
00051
00052
00053
00054
00055
00056
00057 typedef enum {
00058 mediacontrol_ByteCount,
00059 mediacontrol_SampleCount,
00060 mediacontrol_MediaTime
00061 } mediacontrol_PositionKey;
00062
00063
00064
00065
00066
00067
00068 typedef enum {
00069 mediacontrol_UndefinedStatus=0, mediacontrol_InitStatus,
00070 mediacontrol_BufferingStatus, mediacontrol_PlayingStatus,
00071 mediacontrol_PauseStatus, mediacontrol_StopStatus,
00072 mediacontrol_ForwardStatus, mediacontrol_BackwardStatus,
00073 mediacontrol_EndStatus, mediacontrol_ErrorStatus,
00074 } mediacontrol_PlayerStatus;
00075
00076
00077
00078
00079 typedef struct {
00080 mediacontrol_PositionOrigin origin;
00081 mediacontrol_PositionKey key;
00082 int64_t value;
00083 } mediacontrol_Position;
00084
00085
00086
00087
00088
00089 typedef struct {
00090 int width;
00091 int height;
00092 uint32_t type;
00093 int64_t date;
00094 int size;
00095 char *data;
00096 } mediacontrol_RGBPicture;
00097
00098
00099
00100
00101
00102 typedef struct {
00103 int size;
00104 char **data;
00105 } mediacontrol_PlaylistSeq;
00106
00107 typedef struct {
00108 int code;
00109 char *message;
00110 } mediacontrol_Exception;
00111
00112
00113
00114
00115 #define mediacontrol_PositionKeyNotSupported 1
00116 #define mediacontrol_PositionOriginNotSupported 2
00117 #define mediacontrol_InvalidPosition 3
00118 #define mediacontrol_PlaylistException 4
00119 #define mediacontrol_InternalException 5
00120
00121
00122
00123
00124
00125 typedef struct {
00126 mediacontrol_PlayerStatus streamstatus;
00127 char *url;
00128 int64_t position;
00129 int64_t length;
00130 } mediacontrol_StreamInformation;
00131
00132
00133 # ifdef __cplusplus
00134 }
00135 # endif
00136
00137 #endif
00138
00139