Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
f6d917cb
Commit
f6d917cb
authored
Mar 07, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove __intf_UserFatal
parent
28b1a8ac
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
77 deletions
+29
-77
include/vlc_interface.h
include/vlc_interface.h
+0
-2
src/interface/interaction.c
src/interface/interaction.c
+29
-74
src/libvlccore.sym
src/libvlccore.sym
+0
-1
No files found.
include/vlc_interface.h
View file @
f6d917cb
...
@@ -279,8 +279,6 @@ enum
...
@@ -279,8 +279,6 @@ enum
* Exported symbols
* Exported symbols
***************************************************************************/
***************************************************************************/
#define intf_UserFatal( a, b, c, d, e... ) __intf_UserFatal( VLC_OBJECT(a),b,c,d, ## e )
VLC_EXPORT
(
int
,
__intf_UserFatal
,(
vlc_object_t
*
,
bool
,
const
char
*
,
const
char
*
,
...)
LIBVLC_FORMAT
(
4
,
5
)
);
#define intf_UserLoginPassword( a, b, c, d, e... ) __intf_UserLoginPassword( VLC_OBJECT(a),b,c,d,e)
#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
**
)
);
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 )
#define intf_UserYesNo( a, b, c, d, e, f ) __intf_UserYesNo( VLC_OBJECT(a),b,c, d, e, f )
...
...
src/interface/interaction.c
View file @
f6d917cb
...
@@ -97,33 +97,6 @@ static inline int DialogFireForget( interaction_dialog_t *d )
...
@@ -97,33 +97,6 @@ static inline int DialogFireForget( interaction_dialog_t *d )
return
ret
;
return
ret
;
}
}
/**
* Send an error message, both in a blocking and non-blocking way
*
* \param p_this Parent vlc_object
* \param b_blocking Is this dialog blocking or not?
* \param psz_title Title for the dialog
* \param psz_format The message to display
* \return VLC_SUCCESS or VLC_EGENERIC
*/
int
__intf_UserFatal
(
vlc_object_t
*
p_this
,
bool
b_blocking
,
const
char
*
psz_title
,
const
char
*
psz_format
,
...
)
{
va_list
args
;
DIALOG_INIT
(
ONEWAY
,
VLC_EGENERIC
);
p_new
->
psz_title
=
strdup
(
psz_title
);
FORMAT_DESC
;
if
(
b_blocking
)
p_new
->
i_flags
=
DIALOG_BLOCKING_ERROR
;
else
p_new
->
i_flags
=
DIALOG_NONBLOCKING_ERROR
;
return
DialogFireForget
(
p_new
);
}
/**
/**
* Helper function to ask a yes-no-cancel question
* Helper function to ask a yes-no-cancel question
*
*
...
@@ -468,7 +441,8 @@ static int DialogSend( interaction_dialog_t *p_dialog )
...
@@ -468,7 +441,8 @@ static int DialogSend( interaction_dialog_t *p_dialog )
interaction_t
*
p_interaction
;
interaction_t
*
p_interaction
;
intf_thread_t
*
p_intf
;
intf_thread_t
*
p_intf
;
if
(
p_dialog
->
p_parent
->
i_flags
&
OBJECT_FLAGS_NOINTERACT
)
if
(
(
p_dialog
->
p_parent
->
i_flags
&
OBJECT_FLAGS_NOINTERACT
)
||
!
config_GetInt
(
p_interaction
,
"interact"
)
)
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
p_interaction
=
InteractionGet
(
p_dialog
->
p_parent
);
p_interaction
=
InteractionGet
(
p_dialog
->
p_parent
);
...
@@ -489,61 +463,42 @@ static int DialogSend( interaction_dialog_t *p_dialog )
...
@@ -489,61 +463,42 @@ static int DialogSend( interaction_dialog_t *p_dialog )
}
}
p_dialog
->
p_interface
=
p_intf
;
p_dialog
->
p_interface
=
p_intf
;
if
(
config_GetInt
(
p_interaction
,
"interact"
)
||
p_dialog
->
i_action
=
INTERACT_NEW
;
p_dialog
->
i_flags
&
DIALOG_BLOCKING_ERROR
||
var_SetAddress
(
p_dialog
->
p_interface
,
"interaction"
,
p_dialog
);
p_dialog
->
i_flags
&
DIALOG_NONBLOCKING_ERROR
)
{
vlc_value_t
val
;
p_dialog
->
i_action
=
INTERACT_NEW
;
/* Check if we have already added this dialog */
val
.
p_address
=
p_dialog
;
vlc_mutex_lock
(
&
p_interaction
->
lock
);
var_Set
(
p_dialog
->
p_interface
,
"interaction"
,
val
);
/* Add it to the queue, the main loop will send the orders to the
* interface */
/* Check if we have already added this dialog */
INSERT_ELEM
(
p_interaction
->
pp_dialogs
,
p_interaction
->
i_dialogs
,
vlc_mutex_lock
(
&
p_interaction
->
lock
);
p_interaction
->
i_dialogs
,
p_dialog
);
/* Add it to the queue, the main loop will send the orders to the
* interface */
INSERT_ELEM
(
p_interaction
->
pp_dialogs
,
p_interaction
->
i_dialogs
,
p_interaction
->
i_dialogs
,
p_dialog
);
if
(
p_dialog
->
i_type
==
INTERACT_DIALOG_TWOWAY
)
/* Wait for answer */
if
(
p_dialog
->
i_type
==
INTERACT_DIALOG_TWOWAY
)
/* Wait for answer */
{
vlc_cond_signal
(
&
p_interaction
->
wait
);
while
(
p_dialog
->
i_status
!=
ANSWERED_DIALOG
&&
p_dialog
->
i_status
!=
HIDING_DIALOG
&&
p_dialog
->
i_status
!=
HIDDEN_DIALOG
&&
!
p_dialog
->
p_parent
->
b_die
)
{
{
vlc_cond_signal
(
&
p_interaction
->
wait
);
while
(
p_dialog
->
i_status
!=
ANSWERED_DIALOG
&&
p_dialog
->
i_status
!=
HIDING_DIALOG
&&
p_dialog
->
i_status
!=
HIDDEN_DIALOG
&&
!
p_dialog
->
p_parent
->
b_die
)
{
vlc_mutex_unlock
(
&
p_interaction
->
lock
);
msleep
(
100000
);
vlc_mutex_lock
(
&
p_interaction
->
lock
);
}
if
(
p_dialog
->
p_parent
->
b_die
)
{
p_dialog
->
i_return
=
DIALOG_CANCELLED
;
p_dialog
->
i_status
=
ANSWERED_DIALOG
;
}
p_dialog
->
i_flags
|=
DIALOG_GOT_ANSWER
;
vlc_cond_signal
(
&
p_interaction
->
wait
);
vlc_mutex_unlock
(
&
p_interaction
->
lock
);
vlc_mutex_unlock
(
&
p_interaction
->
lock
);
vlc_object_release
(
p_interaction
);
msleep
(
100000
);
return
p_dialog
->
i_return
;
vlc_mutex_lock
(
&
p_interaction
->
lock
)
;
}
}
else
if
(
p_dialog
->
p_parent
->
b_die
)
{
{
/* Pretend we already retrieved the "answer" */
p_dialog
->
i_return
=
DIALOG_CANCELLED
;
p_dialog
->
i_flags
|=
DIALOG_GOT_ANSWER
;
p_dialog
->
i_status
=
ANSWERED_DIALOG
;
vlc_cond_signal
(
&
p_interaction
->
wait
);
vlc_mutex_unlock
(
&
p_interaction
->
lock
);
vlc_object_release
(
p_interaction
);
return
VLC_SUCCESS
;
}
}
}
}
p_dialog
->
i_flags
|=
DIALOG_GOT_ANSWER
;
vlc_cond_signal
(
&
p_interaction
->
wait
);
vlc_mutex_unlock
(
&
p_interaction
->
lock
);
vlc_object_release
(
p_interaction
);
if
(
p_dialog
->
i_type
==
INTERACT_DIALOG_TWOWAY
)
return
p_dialog
->
i_return
;
else
else
{
return
VLC_SUCCESS
;
vlc_object_release
(
p_interaction
);
return
VLC_EGENERIC
;
}
}
}
static
void
*
InteractionLoop
(
void
*
p_this
)
static
void
*
InteractionLoop
(
void
*
p_this
)
...
...
src/libvlccore.sym
View file @
f6d917cb
...
@@ -198,7 +198,6 @@ intf_ProgressIsCancelled
...
@@ -198,7 +198,6 @@ intf_ProgressIsCancelled
intf_ProgressUpdate
intf_ProgressUpdate
intf_RunThread
intf_RunThread
intf_StopThread
intf_StopThread
__intf_UserFatal
intf_UserHide
intf_UserHide
__intf_UserLoginPassword
__intf_UserLoginPassword
__intf_UserStringInput
__intf_UserStringInput
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment