]> git.sesse.net Git - vlc/blobdiff - include/vlc/libvlc_media_list_player.h
libvlc media (list) player: remove a bunch of never raised exceptions
[vlc] / include / vlc / libvlc_media_list_player.h
index d2f21515cd2cce6f46075c396cf16bef35a66374..6afb6b6116f90e0224b17dc7d9f6222e25c07364 100644 (file)
@@ -45,6 +45,16 @@ extern "C" {
 
 typedef struct libvlc_media_list_player_t libvlc_media_list_player_t;
 
+/**
+ *  Defines playback modes for playlist.
+ */
+typedef enum libvlc_playback_mode_t
+{
+    libvlc_playback_mode_default,
+    libvlc_playback_mode_loop,
+    libvlc_playback_mode_repeat
+} libvlc_playback_mode_t;
+
 /**
  * Create new media_list_player.
  *
@@ -64,6 +74,14 @@ VLC_PUBLIC_API libvlc_media_list_player_t *
 VLC_PUBLIC_API void
     libvlc_media_list_player_release( libvlc_media_list_player_t * p_mlp );
 
+/**
+ * Return the event manager of this media_list_player.
+ *
+ * \param p_mlp media list player instance
+ */
+VLC_PUBLIC_API libvlc_event_manager_t *
+    libvlc_media_list_player_event_manager(libvlc_media_list_player_t * p_mlp);
+
 /**
  * Replace media player in media_list_player with this instance.
  *
@@ -74,14 +92,12 @@ VLC_PUBLIC_API void
 VLC_PUBLIC_API void
     libvlc_media_list_player_set_media_player(
                                      libvlc_media_list_player_t * p_mlp,
-                                     libvlc_media_player_t * p_mi,
-                                     libvlc_exception_t * p_e );
+                                     libvlc_media_player_t * p_mi );
 
 VLC_PUBLIC_API void
     libvlc_media_list_player_set_media_list(
                                      libvlc_media_list_player_t * p_mlp,
-                                     libvlc_media_list_t * p_mlist,
-                                     libvlc_exception_t * p_e );
+                                     libvlc_media_list_t * p_mlist );
 
 /**
  * Play media list
@@ -111,19 +127,16 @@ VLC_PUBLIC_API void
  * \return true for playing and false for not playing
  */
 VLC_PUBLIC_API int
-    libvlc_media_list_player_is_playing( libvlc_media_list_player_t * p_mlp,
-                                         libvlc_exception_t * p_e );
+    libvlc_media_list_player_is_playing( libvlc_media_list_player_t * p_mlp );
 
 /**
  * Get current libvlc_state of media list player
  *
  * \param p_mlp media list player instance
- * \param p_e initialized exception instance
  * \return libvlc_state_t for media list player
  */
 VLC_PUBLIC_API libvlc_state_t
-    libvlc_media_list_player_get_state( libvlc_media_list_player_t * p_mlp,
-                                        libvlc_exception_t * p_e );
+    libvlc_media_list_player_get_state( libvlc_media_list_player_t * p_mlp );
 
 /**
  * Play media list item at position index
@@ -148,11 +161,9 @@ VLC_PUBLIC_API void
  * Stop playing media list
  *
  * \param p_mlp media list player instance
- * \param p_e initialized exception instance
  */
 VLC_PUBLIC_API void
-    libvlc_media_list_player_stop( libvlc_media_list_player_t * p_mlp,
-                                   libvlc_exception_t * p_e );
+    libvlc_media_list_player_stop( libvlc_media_list_player_t * p_mlp );
 
 /**
  * Play next item from media list
@@ -164,7 +175,28 @@ VLC_PUBLIC_API void
     libvlc_media_list_player_next( libvlc_media_list_player_t * p_mlp,
                                    libvlc_exception_t * p_e );
 
-/* NOTE: shouldn't there also be a libvlc_media_list_player_prev() */
+/**
+ * Play previous item from media list
+ *
+ * \param p_mlp media list player instance
+ * \param p_e initialized exception instance
+ */
+VLC_PUBLIC_API void
+    libvlc_media_list_player_previous( libvlc_media_list_player_t * p_mlp,
+                                       libvlc_exception_t * p_e );
+
+
+
+/**
+ * Sets the playback mode for the playlist
+ *
+ * \param p_mlp media list player instance
+ * \param e_mode playback mode specification
+ */
+VLC_PUBLIC_API void
+    libvlc_media_list_player_set_playback_mode( 
+                                        libvlc_media_list_player_t * p_mlp,
+                                        libvlc_playback_mode_t e_mode );
 
 /** @} media_list_player */