-/** Helper function to ask a yes-no-cancel question
- * \param p_this Parent vlc_object
- * \param psz_title Title for the dialog
- * \param psz_description A description
- * \param psz_default caption for the default button
- * \param psz_alternate caption for the alternate button
- * \param psz_other caption for the optional 3rd button (== cancel)
- * \return Clicked button code
- */
-int __intf_UserYesNo( vlc_object_t *p_this,
- const char *psz_title,
- const char *psz_description,
- const char *psz_default,
- const char *psz_alternate,
- const char *psz_other )
-{
- int i_ret;
- interaction_dialog_t *p_new = NULL;
-
- INTERACT_INIT( p_new );
-
- p_new->i_type = INTERACT_DIALOG_TWOWAY;
- p_new->psz_title = strdup( psz_title );
- p_new->psz_description = strdup( psz_description );
- p_new->i_flags = DIALOG_YES_NO_CANCEL;
- p_new->psz_defaultButton = strdup( psz_default );
- p_new->psz_alternateButton = strdup( psz_alternate );
- if( psz_other )
- p_new->psz_otherButton = strdup( psz_other );
- else
- p_new->psz_otherButton = NULL;
-
- i_ret = intf_Interact( p_this, p_new );
-
- return i_ret;
-}
-
-/** Helper function to create a dialogue showing a progress-bar with some info
- * \param p_this Parent vlc_object
- * \param psz_title Title for the dialog
- * \param psz_status Current status
- * \param f_position Current position (0.0->100.0)
- * \param i_timeToGo Time (in sec) to go until process is finished
- * \return Dialog id, to give to UserProgressUpdate
- */
-int __intf_UserProgress( vlc_object_t *p_this,
- const char *psz_title,
- const char *psz_status,
- float f_pos,
- int i_time )
-{
- int i_ret;
- interaction_dialog_t *p_new = NULL;
-
- INTERACT_INIT( p_new );
-
- p_new->i_type = INTERACT_DIALOG_ONEWAY;
- p_new->psz_title = strdup( psz_title );
- p_new->psz_description = strdup( psz_status );
- p_new->val.f_float = f_pos;
- p_new->i_timeToGo = i_time;
-
- p_new->i_flags = DIALOG_USER_PROGRESS;
-
- i_ret = intf_Interact( p_this, p_new );
-
- return p_new->i_id;
-}
-
-/** Update a progress bar in a dialogue
- * \param p_this Parent vlc_object
- * \param i_id Identifier of the dialog
- * \param psz_status New status
- * \param f_position New position (0.0->100.0)
- * \param i_timeToGo Time (in sec) to go until process is finished
- * \return nothing