X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc%2Fdeprecated.h;h=c683ecb99f454ea73e63114ab87f05d454dde6bd;hb=bd83a7c2c6407df668eee8e028cca62a081cd0e0;hp=d88439e73c0df1597c4569194008bb7226b8f78b;hpb=57530c1b6605efa9510c28f0d3e5b4898f10eb1c;p=vlc diff --git a/include/vlc/deprecated.h b/include/vlc/deprecated.h index d88439e73c..c683ecb99f 100644 --- a/include/vlc/deprecated.h +++ b/include/vlc/deprecated.h @@ -1,11 +1,11 @@ /***************************************************************************** * deprecated.h: libvlc deprecated API ***************************************************************************** - * Copyright (C) 1998-2005 the VideoLAN team + * Copyright (C) 1998-2008 the VideoLAN team * $Id$ * * Authors: Clément Stenac - * Jean-Paul Saman + * Jean-Paul Saman * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -22,13 +22,42 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ -#ifndef _LIBVLC_DEPRECATED_H -#define _LIBVLC_DEPRECATED_H 1 +#ifndef LIBVLC_DEPRECATED_H +#define LIBVLC_DEPRECATED_H 1 + +/** + * \file + * This file defines libvlc depreceated API + */ # ifdef __cplusplus extern "C" { # endif +/** + * Set the default video output's parent. + * + * This setting will be used as default for all video outputs. + * + * \param p_instance libvlc instance + * \param drawable the new parent window (Drawable on X11, CGrafPort on MacOSX, HWND on Win32) + * \param p_e an initialized exception pointer + * @deprecated Use libvlc_media_player_set_drawable + */ +VLC_PUBLIC_API void libvlc_video_set_parent( libvlc_instance_t *, libvlc_drawable_t, libvlc_exception_t * ); + +/** + * Set the default video output parent. + * + * This setting will be used as default for all video outputs. + * + * \param p_instance libvlc instance + * \param drawable the new parent window (Drawable on X11, CGrafPort on MacOSX, HWND on Win32) + * \param p_e an initialized exception pointer + * @deprecated Use libvlc_media_player_get_drawable + */ +VLC_PUBLIC_API libvlc_drawable_t libvlc_video_get_parent( libvlc_instance_t *, libvlc_exception_t * ); + /* * This function shall not be used at all. It may lead to crash and race condition. */ @@ -103,6 +132,8 @@ VLC_DEPRECATED_API int libvlc_playlist_isplaying( libvlc_instance_t *, VLC_DEPRECATED_API int libvlc_playlist_items_count( libvlc_instance_t *, libvlc_exception_t * ); +VLC_DEPRECATED_API int libvlc_playlist_get_current_index( libvlc_instance_t *, + libvlc_exception_t *); /** * Lock the playlist. *