2000-02-13 05:31:35 +01:00
|
|
|
/*****************************************************************************
|
2003-06-24 15:33:49 +02:00
|
|
|
* vlc_interface.h: interface access for other threads
|
1999-08-08 14:42:54 +02:00
|
|
|
* This library provides basic functions for threads to interact with user
|
|
|
|
* interface, such as message output.
|
2000-02-13 05:31:35 +01:00
|
|
|
*****************************************************************************
|
2005-07-09 08:17:09 +02:00
|
|
|
* Copyright (C) 1999, 2000 the VideoLAN team
|
2004-03-15 18:06:17 +01:00
|
|
|
* $Id$
|
2000-03-03 08:03:34 +01:00
|
|
|
*
|
2001-03-21 14:42:35 +01:00
|
|
|
* Authors: Vincent Seguin <seguin@via.ecp.fr>
|
2000-03-03 08:03:34 +01:00
|
|
|
*
|
|
|
|
* 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
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
2003-02-07 01:26:23 +01:00
|
|
|
*
|
2000-03-03 08:03:34 +01:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2000-05-25 00:39:44 +02:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
2000-03-03 08:03:34 +01:00
|
|
|
*
|
2000-05-25 00:39:44 +02:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
2006-01-13 00:10:04 +01:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
|
2000-03-03 08:03:34 +01:00
|
|
|
*****************************************************************************/
|
|
|
|
|
2008-08-11 18:13:10 +02:00
|
|
|
#ifndef VLC_INTF_H_
|
|
|
|
#define VLC_INTF_H_
|
2006-11-26 15:20:34 +01:00
|
|
|
|
|
|
|
# ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
# endif
|
2005-12-05 16:51:39 +01:00
|
|
|
|
2003-07-20 12:38:49 +02:00
|
|
|
typedef struct intf_dialog_args_t intf_dialog_args_t;
|
|
|
|
|
2003-09-18 19:54:02 +02:00
|
|
|
/**
|
|
|
|
* \file
|
2004-01-25 19:17:08 +01:00
|
|
|
* This file contains structures and function prototypes for
|
|
|
|
* interface management in vlc
|
2003-09-18 19:54:02 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* \defgroup vlc_interface Interface
|
|
|
|
* These functions and structures are for interface management
|
|
|
|
* @{
|
|
|
|
*/
|
2006-11-26 15:20:34 +01:00
|
|
|
|
|
|
|
/** Describe all interface-specific data of the interface thread */
|
2002-07-20 20:01:43 +02:00
|
|
|
struct intf_thread_t
|
1999-08-08 14:42:54 +02:00
|
|
|
{
|
* ALL: the first libvlc commit.
As for video output 4, this breaks almost everything, but I'll slowly
do what remains to be fixed during the weekend.
Changes in vlc:
===============
* vlc is now a very small program (20 lines) which uses the libvlc API;
it is quite simple for the moment but can be extended in the future.
* interfaces, decoders, video outputs, etc. are now almost the same
objects (yes, I know, this is C++ redone in C) and are structured in
a tree. More about this later, but basically it allows the following
nice features:
- several interfaces
- several playlists with several outputs
- input plugins spawning helper interfaces (will be used for DVD menus)
- anything spawning anything; I swear there are useful uses for this!
* libvlc can be used in other programs; I'm currently writing a Mozilla
plugin for my employer.
Things currently broken:
========================
* most interfaces, most ports
* the playlist handling (almost finished rewriting this though). This means
no file can be played from the GUI, you need to use the commandline. This
also means it segfaults at EOF, when exiting the program, and it sometimes
refuses to open a file when asked to.
2002-06-01 14:32:02 +02:00
|
|
|
VLC_COMMON_MEMBERS
|
|
|
|
|
|
|
|
/* Thread properties and locks */
|
2008-09-13 18:43:53 +02:00
|
|
|
#if defined( __APPLE__ ) || defined( WIN32 )
|
2008-04-14 00:08:29 +02:00
|
|
|
bool b_should_run_on_first_thread;
|
2008-07-24 21:00:26 +02:00
|
|
|
#endif
|
1999-08-08 14:42:54 +02:00
|
|
|
|
2000-02-13 05:31:35 +01:00
|
|
|
/* Specific interfaces */
|
2003-10-15 00:41:41 +02:00
|
|
|
intf_sys_t * p_sys; /** system interface */
|
2007-11-04 22:05:00 +01:00
|
|
|
char * psz_intf; /** intf name specified */
|
2003-02-07 01:26:23 +01:00
|
|
|
|
2003-09-18 19:54:02 +02:00
|
|
|
/** Interface module */
|
* ALL: the first libvlc commit.
As for video output 4, this breaks almost everything, but I'll slowly
do what remains to be fixed during the weekend.
Changes in vlc:
===============
* vlc is now a very small program (20 lines) which uses the libvlc API;
it is quite simple for the moment but can be extended in the future.
* interfaces, decoders, video outputs, etc. are now almost the same
objects (yes, I know, this is C++ redone in C) and are structured in
a tree. More about this later, but basically it allows the following
nice features:
- several interfaces
- several playlists with several outputs
- input plugins spawning helper interfaces (will be used for DVD menus)
- anything spawning anything; I swear there are useful uses for this!
* libvlc can be used in other programs; I'm currently writing a Mozilla
plugin for my employer.
Things currently broken:
========================
* most interfaces, most ports
* the playlist handling (almost finished rewriting this though). This means
no file can be played from the GUI, you need to use the commandline. This
also means it segfaults at EOF, when exiting the program, and it sometimes
refuses to open a file when asked to.
2002-06-01 14:32:02 +02:00
|
|
|
module_t * p_module;
|
2003-09-18 19:54:02 +02:00
|
|
|
void ( *pf_run ) ( intf_thread_t * ); /** Run function */
|
2000-02-14 09:44:59 +01:00
|
|
|
|
2003-09-18 19:54:02 +02:00
|
|
|
/** Specific for dialogs providers */
|
2003-07-20 12:38:49 +02:00
|
|
|
void ( *pf_show_dialog ) ( intf_thread_t *, int, int,
|
|
|
|
intf_dialog_args_t * );
|
2003-07-17 19:30:40 +02:00
|
|
|
|
* ALL: the first libvlc commit.
As for video output 4, this breaks almost everything, but I'll slowly
do what remains to be fixed during the weekend.
Changes in vlc:
===============
* vlc is now a very small program (20 lines) which uses the libvlc API;
it is quite simple for the moment but can be extended in the future.
* interfaces, decoders, video outputs, etc. are now almost the same
objects (yes, I know, this is C++ redone in C) and are structured in
a tree. More about this later, but basically it allows the following
nice features:
- several interfaces
- several playlists with several outputs
- input plugins spawning helper interfaces (will be used for DVD menus)
- anything spawning anything; I swear there are useful uses for this!
* libvlc can be used in other programs; I'm currently writing a Mozilla
plugin for my employer.
Things currently broken:
========================
* most interfaces, most ports
* the playlist handling (almost finished rewriting this though). This means
no file can be played from the GUI, you need to use the commandline. This
also means it segfaults at EOF, when exiting the program, and it sometimes
refuses to open a file when asked to.
2002-06-01 14:32:02 +02:00
|
|
|
vlc_mutex_t change_lock;
|
2009-01-19 23:40:11 +01:00
|
|
|
|
|
|
|
config_chain_t *p_cfg;
|
* ALL: the first libvlc commit.
As for video output 4, this breaks almost everything, but I'll slowly
do what remains to be fixed during the weekend.
Changes in vlc:
===============
* vlc is now a very small program (20 lines) which uses the libvlc API;
it is quite simple for the moment but can be extended in the future.
* interfaces, decoders, video outputs, etc. are now almost the same
objects (yes, I know, this is C++ redone in C) and are structured in
a tree. More about this later, but basically it allows the following
nice features:
- several interfaces
- several playlists with several outputs
- input plugins spawning helper interfaces (will be used for DVD menus)
- anything spawning anything; I swear there are useful uses for this!
* libvlc can be used in other programs; I'm currently writing a Mozilla
plugin for my employer.
Things currently broken:
========================
* most interfaces, most ports
* the playlist handling (almost finished rewriting this though). This means
no file can be played from the GUI, you need to use the commandline. This
also means it segfaults at EOF, when exiting the program, and it sometimes
refuses to open a file when asked to.
2002-06-01 14:32:02 +02:00
|
|
|
};
|
2002-02-19 01:50:20 +01:00
|
|
|
|
2006-11-26 15:20:34 +01:00
|
|
|
/** \brief Arguments passed to a dialogs provider
|
|
|
|
* This describes the arguments passed to the dialogs provider. They are
|
2007-04-19 16:54:06 +02:00
|
|
|
* mainly used with INTF_DIALOG_FILE_GENERIC.
|
2006-11-26 15:20:34 +01:00
|
|
|
*/
|
2003-07-20 12:38:49 +02:00
|
|
|
struct intf_dialog_args_t
|
|
|
|
{
|
2005-12-11 17:06:19 +01:00
|
|
|
intf_thread_t *p_intf;
|
2003-07-20 12:38:49 +02:00
|
|
|
char *psz_title;
|
|
|
|
|
|
|
|
char **psz_results;
|
|
|
|
int i_results;
|
|
|
|
|
|
|
|
void (*pf_callback) ( intf_dialog_args_t * );
|
|
|
|
void *p_arg;
|
|
|
|
|
|
|
|
/* Specifically for INTF_DIALOG_FILE_GENERIC */
|
|
|
|
char *psz_extensions;
|
2008-04-14 00:08:29 +02:00
|
|
|
bool b_save;
|
|
|
|
bool b_multiple;
|
2005-12-11 17:06:19 +01:00
|
|
|
|
|
|
|
/* Specific to INTF_DIALOG_INTERACTION */
|
|
|
|
interaction_dialog_t *p_dialog;
|
2003-07-20 12:38:49 +02:00
|
|
|
};
|
|
|
|
|
2000-02-13 05:31:35 +01:00
|
|
|
/*****************************************************************************
|
1999-08-08 14:42:54 +02:00
|
|
|
* Prototypes
|
2000-02-13 05:31:35 +01:00
|
|
|
*****************************************************************************/
|
2008-05-31 12:29:30 +02:00
|
|
|
#define intf_Create(a,b) __intf_Create(VLC_OBJECT(a),b)
|
|
|
|
VLC_EXPORT( intf_thread_t *, __intf_Create, ( vlc_object_t *, const char * ) );
|
Changes to the libvlc API:
* ./include/vlc/vlc.h: changed the naming conventions for libvlc. Now
exported functions start with VLC_ instead of vlc_ to avoid conflicts.
* ./include/vlc/vlc.h: removed the vlc_object_t, vlc_list_t, vlc_error_t
and vlc_t types; they are now internal types only.
* ./include/vlc/vlc.h: merged the reentrant and non-reentrant libvlc
calls. In non-reentrant mode, we just use 0 as the first argument. In
reentrant mode, we use an object's ID. (see below)
Internal changes:
* ./src/libvlc.c, ./src/misc/objects.c: instead of manipulating vlc_object_t
pointers, we manipulate their i_object_id. When needed, an object is
retrieved using vlc_object_get (I hope the lookup isn't too expensive,
that's why I designed the pp_objects layout to allow log2(n) seeks).
* ./src/misc/objects.c: activated the per-object variable storage. Unused
yet, unless you want to try "getfoo" and "setfoo blablah" in vlc -I rc.
* ./include/vlc_objects.h: moved the vlc_object_t and vlc_list_t definitions
here.
Misc:
* ./src/vlc.c, ./mozilla/vlcshell.cpp: removed inclusion of config.h in
code portions not part of libvlc; it was just required for the
COPYRIGHT_MESSAGE string which is now available from VLC_Version().
2002-10-12 00:32:56 +02:00
|
|
|
VLC_EXPORT( int, intf_RunThread, ( intf_thread_t * ) );
|
2002-07-17 23:54:37 +02:00
|
|
|
VLC_EXPORT( void, intf_StopThread, ( intf_thread_t * ) );
|
2000-01-11 00:36:06 +01:00
|
|
|
|
2006-11-26 15:20:34 +01:00
|
|
|
#define intf_Eject(a,b) __intf_Eject(VLC_OBJECT(a),b)
|
|
|
|
VLC_EXPORT( int, __intf_Eject, ( vlc_object_t *, const char * ) );
|
|
|
|
|
2009-01-24 19:21:57 +01:00
|
|
|
VLC_EXPORT( void, libvlc_Quit, ( libvlc_int_t * ) );
|
|
|
|
|
2009-01-11 18:05:00 +01:00
|
|
|
VLC_EXPORT( int, interaction_Register, ( intf_thread_t * ) );
|
|
|
|
VLC_EXPORT( int, interaction_Unregister, ( intf_thread_t * ) );
|
|
|
|
|
2003-09-18 19:54:02 +02:00
|
|
|
/*@}*/
|
|
|
|
|
2002-10-03 19:01:59 +02:00
|
|
|
/*****************************************************************************
|
|
|
|
* Macros
|
|
|
|
*****************************************************************************/
|
2002-11-11 15:39:12 +01:00
|
|
|
#if defined( WIN32 ) && !defined( UNDER_CE )
|
2002-10-03 19:01:59 +02:00
|
|
|
# define CONSOLE_INTRO_MSG \
|
2004-10-01 14:24:16 +02:00
|
|
|
if( !getenv( "PWD" ) || !getenv( "PS1" ) ) /* detect cygwin shell */ \
|
|
|
|
{ \
|
2002-10-04 14:01:40 +02:00
|
|
|
AllocConsole(); \
|
|
|
|
freopen( "CONOUT$", "w", stdout ); \
|
|
|
|
freopen( "CONOUT$", "w", stderr ); \
|
|
|
|
freopen( "CONIN$", "r", stdin ); \
|
2004-10-01 14:24:16 +02:00
|
|
|
} \
|
2008-08-13 20:41:48 +02:00
|
|
|
msg_Info( p_intf, "%s", COPYRIGHT_MESSAGE ); \
|
2002-10-04 14:01:40 +02:00
|
|
|
msg_Info( p_intf, _("\nWarning: if you can't access the GUI " \
|
2006-03-28 15:57:36 +02:00
|
|
|
"anymore, open a command-line window, go to the " \
|
2002-10-04 14:01:40 +02:00
|
|
|
"directory where you installed VLC and run " \
|
2008-07-06 13:09:18 +02:00
|
|
|
"\"vlc -I qt\"\n") )
|
2002-10-03 19:01:59 +02:00
|
|
|
#else
|
|
|
|
# define CONSOLE_INTRO_MSG
|
|
|
|
#endif
|
2003-07-17 19:30:40 +02:00
|
|
|
|
|
|
|
/* Interface dialog ids for dialog providers */
|
2008-03-29 00:29:26 +01:00
|
|
|
typedef enum vlc_dialog {
|
2008-05-12 17:03:20 +02:00
|
|
|
INTF_DIALOG_FILE_SIMPLE = 1,
|
|
|
|
INTF_DIALOG_FILE,
|
|
|
|
INTF_DIALOG_DISC,
|
|
|
|
INTF_DIALOG_NET,
|
|
|
|
INTF_DIALOG_CAPTURE,
|
|
|
|
INTF_DIALOG_SAT,
|
|
|
|
INTF_DIALOG_DIRECTORY,
|
|
|
|
|
|
|
|
INTF_DIALOG_STREAMWIZARD,
|
|
|
|
INTF_DIALOG_WIZARD,
|
|
|
|
|
|
|
|
INTF_DIALOG_PLAYLIST,
|
|
|
|
INTF_DIALOG_MESSAGES,
|
|
|
|
INTF_DIALOG_FILEINFO,
|
|
|
|
INTF_DIALOG_PREFS,
|
|
|
|
INTF_DIALOG_BOOKMARKS,
|
|
|
|
INTF_DIALOG_EXTENDED,
|
|
|
|
|
|
|
|
INTF_DIALOG_POPUPMENU = 20,
|
|
|
|
INTF_DIALOG_AUDIOPOPUPMENU,
|
|
|
|
INTF_DIALOG_VIDEOPOPUPMENU,
|
|
|
|
INTF_DIALOG_MISCPOPUPMENU,
|
|
|
|
|
|
|
|
INTF_DIALOG_FILE_GENERIC = 30,
|
|
|
|
INTF_DIALOG_INTERACTION = 50,
|
|
|
|
|
|
|
|
INTF_DIALOG_UPDATEVLC = 90,
|
|
|
|
INTF_DIALOG_VLM,
|
|
|
|
|
|
|
|
INTF_DIALOG_EXIT = 99
|
2008-03-29 00:29:26 +01:00
|
|
|
} vlc_dialog_t;
|
2003-08-30 15:59:15 +02:00
|
|
|
|
|
|
|
/* Useful text messages shared by interfaces */
|
2005-11-23 16:00:47 +01:00
|
|
|
#define INTF_ABOUT_MSG LICENSE_MSG
|
2006-05-28 14:04:19 +02:00
|
|
|
|
|
|
|
#define EXTENSIONS_AUDIO "*.a52;*.aac;*.ac3;*.dts;*.flac;*.m4a;*.m4p;*.mka;" \
|
2008-09-12 23:14:57 +02:00
|
|
|
"*.mod;*.mp1;*.mp2;*.mp3;*.oga;*.ogg;*.oma;*.spx;" \
|
2008-06-25 07:36:48 +02:00
|
|
|
"*.wav;*.wma;*.xm"
|
2006-05-28 14:04:19 +02:00
|
|
|
|
2007-09-03 23:10:56 +02:00
|
|
|
#define EXTENSIONS_VIDEO "*.asf;*.avi;*.divx;*.dv;*.flv;*.gxf;*.m1v;*.m2v;" \
|
2008-12-19 00:07:02 +01:00
|
|
|
"*.m2t;*.m2ts;*.m4v;*.mkv;*.mov;*.mp2;*.mp4;*.mpeg;*.mpeg1;" \
|
2008-09-17 20:52:49 +02:00
|
|
|
"*.mpeg2;*.mpeg4;*.mpg;*.mts;*.mxf;*.nuv;" \
|
2008-09-12 23:14:57 +02:00
|
|
|
"*.ogg;*.ogm;*.ogv;*.ogx;" \
|
2008-12-19 00:07:02 +01:00
|
|
|
"*.ps;*.rm;*.rmvb;*.ts;*.vob;*.wmv"
|
2006-05-28 14:04:19 +02:00
|
|
|
|
|
|
|
#define EXTENSIONS_PLAYLIST "*.asx;*.b4s;*.m3u;*.pls;*.vlc;*.xspf"
|
|
|
|
|
2006-09-23 14:36:02 +02:00
|
|
|
#define EXTENSIONS_MEDIA EXTENSIONS_VIDEO ";" EXTENSIONS_AUDIO ";" \
|
|
|
|
EXTENSIONS_PLAYLIST
|
|
|
|
|
2008-05-12 17:03:20 +02:00
|
|
|
#define EXTENSIONS_SUBTITLE "*.cdg;*.idx;*.srt;*.sub;*.utf;*.ass;*.ssa;*.aqt;" \
|
2008-05-21 23:18:17 +02:00
|
|
|
"*.jss;*.psb;*.rt;*.smi"
|
2006-11-26 15:20:34 +01:00
|
|
|
|
|
|
|
/** \defgroup vlc_interaction Interaction
|
|
|
|
* \ingroup vlc_interface
|
|
|
|
* Interaction between user and modules
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This structure describes a piece of interaction with the user
|
|
|
|
*/
|
|
|
|
struct interaction_dialog_t
|
|
|
|
{
|
|
|
|
int i_type; ///< Type identifier
|
|
|
|
char *psz_title; ///< Title
|
|
|
|
char *psz_description; ///< Descriptor string
|
|
|
|
char *psz_default_button; ///< default button title (~OK)
|
|
|
|
char *psz_alternate_button;///< alternate button title (~NO)
|
|
|
|
/// other button title (optional,~Cancel)
|
|
|
|
char *psz_other_button;
|
|
|
|
|
|
|
|
char *psz_returned[1]; ///< returned responses from the user
|
|
|
|
|
|
|
|
vlc_value_t val; ///< value coming from core for dialogue
|
|
|
|
int i_timeToGo; ///< time (in sec) until shown progress is finished
|
2008-04-14 00:08:29 +02:00
|
|
|
bool b_cancelled; ///< was the dialogue cancelled ?
|
2006-11-26 15:20:34 +01:00
|
|
|
|
|
|
|
void * p_private; ///< Private interface data
|
|
|
|
|
|
|
|
int i_status; ///< Dialog status;
|
|
|
|
int i_action; ///< Action to perform;
|
|
|
|
int i_flags; ///< Misc flags
|
|
|
|
int i_return; ///< Return status
|
|
|
|
|
|
|
|
interaction_t *p_interaction; ///< Parent interaction object
|
|
|
|
vlc_object_t *p_parent; ///< The vlc object that asked
|
|
|
|
//for interaction
|
|
|
|
};
|
2008-05-12 17:03:20 +02:00
|
|
|
|
2006-11-26 15:20:34 +01:00
|
|
|
/**
|
|
|
|
* Possible flags . Dialog types
|
|
|
|
*/
|
|
|
|
#define DIALOG_GOT_ANSWER 0x01
|
|
|
|
#define DIALOG_YES_NO_CANCEL 0x02
|
|
|
|
#define DIALOG_LOGIN_PW_OK_CANCEL 0x04
|
|
|
|
#define DIALOG_PSZ_INPUT_OK_CANCEL 0x08
|
|
|
|
#define DIALOG_BLOCKING_ERROR 0x10
|
|
|
|
#define DIALOG_NONBLOCKING_ERROR 0x20
|
|
|
|
#define DIALOG_WARNING 0x40
|
|
|
|
#define DIALOG_USER_PROGRESS 0x80
|
|
|
|
#define DIALOG_INTF_PROGRESS 0x100
|
|
|
|
|
|
|
|
/** Possible return codes */
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
DIALOG_DEFAULT,
|
|
|
|
DIALOG_OK_YES,
|
|
|
|
DIALOG_NO,
|
|
|
|
DIALOG_CANCELLED
|
|
|
|
};
|
|
|
|
|
|
|
|
/** Possible status */
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
NEW_DIALOG, ///< Just created
|
|
|
|
SENT_DIALOG, ///< Sent to interface
|
|
|
|
UPDATED_DIALOG, ///< Update to send
|
|
|
|
ANSWERED_DIALOG, ///< Got "answer"
|
|
|
|
HIDING_DIALOG, ///< Hiding requested
|
|
|
|
HIDDEN_DIALOG, ///< Now hidden. Requesting destruction
|
|
|
|
DESTROYED_DIALOG, ///< Interface has destroyed it
|
|
|
|
};
|
|
|
|
|
|
|
|
/** Possible interaction types */
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
INTERACT_DIALOG_ONEWAY, ///< Dialog box without feedback
|
|
|
|
INTERACT_DIALOG_TWOWAY, ///< Dialog box with feedback
|
|
|
|
};
|
|
|
|
|
|
|
|
/** Possible actions */
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
INTERACT_NEW,
|
|
|
|
INTERACT_UPDATE,
|
|
|
|
INTERACT_HIDE,
|
|
|
|
INTERACT_DESTROY
|
|
|
|
};
|
|
|
|
|
|
|
|
/***************************************************************************
|
|
|
|
* Exported symbols
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
#define intf_UserFatal( a, b, c, d, e... ) __intf_UserFatal( VLC_OBJECT(a),b,c,d, ## e )
|
2008-05-26 18:58:44 +02:00
|
|
|
VLC_EXPORT( int, __intf_UserFatal,( vlc_object_t*, bool, const char*, const char*, ...) LIBVLC_FORMAT( 4, 5 ) );
|
2006-11-26 15:20:34 +01:00
|
|
|
#define intf_UserWarn( a, c, d, e... ) __intf_UserWarn( VLC_OBJECT(a),c,d, ## e )
|
2008-05-26 18:58:44 +02:00
|
|
|
VLC_EXPORT( int, __intf_UserWarn,( vlc_object_t*, const char*, const char*, ...) LIBVLC_FORMAT( 3, 4 ) );
|
2006-11-26 15:20:34 +01:00
|
|
|
#define intf_UserLoginPassword( a, b, c, d, e... ) __intf_UserLoginPassword( VLC_OBJECT(a),b,c,d,e)
|
|
|
|
VLC_EXPORT( int, __intf_UserLoginPassword,( vlc_object_t*, const char*, const char*, char **, char **) );
|
|
|
|
#define intf_UserYesNo( a, b, c, d, e, f ) __intf_UserYesNo( VLC_OBJECT(a),b,c, d, e, f )
|
|
|
|
VLC_EXPORT( int, __intf_UserYesNo,( vlc_object_t*, const char*, const char*, const char*, const char*, const char*) );
|
|
|
|
#define intf_UserStringInput( a, b, c, d ) __intf_UserStringInput( VLC_OBJECT(a),b,c,d )
|
|
|
|
VLC_EXPORT( int, __intf_UserStringInput,(vlc_object_t*, const char*, const char*, char **) );
|
|
|
|
|
|
|
|
#define intf_IntfProgress( a, b, c ) __intf_Progress( VLC_OBJECT(a), NULL, b,c, -1 )
|
|
|
|
#define intf_UserProgress( a, b, c, d, e ) __intf_Progress( VLC_OBJECT(a),b,c,d,e )
|
2009-01-31 23:04:40 +01:00
|
|
|
VLC_EXPORT( interaction_dialog_t *, __intf_Progress,( vlc_object_t*, const char*, const char*, float, int) );
|
2009-01-31 23:18:14 +01:00
|
|
|
VLC_EXPORT( void, intf_ProgressUpdate,( interaction_dialog_t *, const char*, float, int) );
|
|
|
|
VLC_EXPORT( bool, intf_ProgressIsCancelled,( interaction_dialog_t * ) );
|
|
|
|
VLC_EXPORT( void, intf_UserHide,( interaction_dialog_t * ));
|
2006-11-26 15:20:34 +01:00
|
|
|
|
|
|
|
/** @} */
|
|
|
|
/** @} */
|
|
|
|
|
|
|
|
# ifdef __cplusplus
|
|
|
|
}
|
|
|
|
# endif
|
|
|
|
#endif
|