]> git.sesse.net Git - vlc/commitdiff
Remove intf_UserStringInput
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 8 Mar 2009 14:36:24 +0000 (16:36 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 8 Mar 2009 14:37:34 +0000 (16:37 +0200)
include/vlc_interface.h
src/interface/interaction.c
src/libvlccore.sym

index b11f32869344d25f346592e41199ebfeb899f446..0228b14aa77a263d7deee14d6a8b5f7d84361755 100644 (file)
@@ -279,8 +279,7 @@ enum
  * Exported symbols
  ***************************************************************************/
 
-#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_UserStringInput( a, b, c, d ) (VLC_OBJECT(a),b,c,d, VLC_EGENERIC)
 
 #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 )
index fbb141b70b936e8ff7fecf4d52e7cfa712269208..936f7b412120445f4855dd53c7769ac13f444974 100644 (file)
@@ -168,40 +168,6 @@ bool intf_ProgressIsCancelled( interaction_dialog_t *p_dialog )
     return b_cancel;
 }
 
-/**
- * Helper function to make a dialogue asking the user for !password string
- *
- * \param p_this           Parent vlc_object
- * \param psz_title        Title for the dialog
- * \param psz_description  A description
- * \param ppsz_usersString Returned login
- * \return                 Clicked button code
- */
-int __intf_UserStringInput( vlc_object_t *p_this,
-        const char *psz_title,
-        const char *psz_description,
-        char **ppsz_usersString )
-{
-    int i_ret;
-    DIALOG_INIT( TWOWAY, VLC_EGENERIC );
-    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_PSZ_INPUT_OK_CANCEL;
-
-    i_ret = DialogSend( p_new );
-
-    if( i_ret == VLC_EGENERIC )
-        DialogDestroy( p_new );
-    else if( i_ret != DIALOG_CANCELLED )
-    {
-        *ppsz_usersString = p_new->psz_returned[0]?
-            strdup( p_new->psz_returned[0] ) : NULL;
-    }
-    return i_ret;
-}
-
 /**
  * Hide an interaction dialog
  *
index 0a61bbde317e0cc727340a2029d68635083fd597..7116000448f76176589da57d035af967e51f3fa2 100644 (file)
@@ -201,7 +201,6 @@ intf_ProgressUpdate
 intf_RunThread
 intf_StopThread
 intf_UserHide
-__intf_UserStringInput
 IsUTF8
 libvlc_InternalAddIntf
 libvlc_InternalCleanup