/** This function creates a suitable URL for a filename */
char *FileToUrl( char *name, bool *pb_index );
/** This function returns the real path of a file or directory */
-char *RealPath( intf_thread_t *p_intf, const char *psz_src );
+char *RealPath( const char *psz_src );
/** This command parses the "seek" command for the HTTP interface
* and performs the requested action */
mvar_t *s = mvar_New( name, "set" );
char **ppsz_dir_content;
int i_dir_content, i;
- psz_dir = RealPath( p_intf, psz_dir );
+ psz_dir = RealPath( psz_dir );
#if defined( WIN32 )
if( psz_dir[0] != '\0' && (psz_dir[0] != '\\' || psz_dir[1] != '\0') )
else if( !strcmp( s, "realpath" ) )
{
char *psz_src = SSPop( st );
- char *psz_dir = RealPath( p_intf, psz_src );
+ char *psz_dir = RealPath( psz_src );
SSPush( st, psz_dir );
free( psz_src );
/**********************************************************************
* RealPath: parse ../, ~ and path stuff
**********************************************************************/
-char *RealPath( intf_thread_t *p_intf, const char *psz_src )
+char *RealPath( const char *psz_src )
{
char *psz_dir;
char *p;