X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmisc%2Fmodules.c;h=4fa2dead6faaf6e232960a150998d9a6b44ac994;hb=a50a0a25f56aaada717d6265a7b2d9b34dccfb4c;hp=7eb0fd67253cc603334c01b27b1216f3dd2875ee;hpb=cff6378dbeeac3caedf198868537f85ae80f4bee;p=vlc diff --git a/src/misc/modules.c b/src/misc/modules.c index 7eb0fd6725..4fa2dead6f 100644 --- a/src/misc/modules.c +++ b/src/misc/modules.c @@ -2,7 +2,7 @@ * modules.c : Built-in and plugin modules management functions ***************************************************************************** * Copyright (C) 2001 VideoLAN - * $Id: modules.c,v 1.36 2001/06/14 02:47:45 sam Exp $ + * $Id: modules.c,v 1.38 2001/07/11 02:01:05 sam Exp $ * * Authors: Samuel Hocevar * Ethan C. Baldridge @@ -55,7 +55,7 @@ # include "beos_specific.h" #endif -#ifdef SYS_DARWIN1_3 +#ifdef SYS_DARWIN # include "darwin_specific.h" #endif @@ -120,12 +120,12 @@ static module_symbols_t symbols; void module_InitBank( void ) { #ifdef HAVE_DYNAMIC_PLUGINS - static char * path[] = { ".", "lib", PLUGIN_PATH, NULL, NULL }; + static char * path[] = { ".", "plugins", PLUGIN_PATH, NULL, NULL }; char ** ppsz_path = path; char * psz_fullpath; char * psz_file; -#if defined( SYS_BEOS ) || defined( SYS_DARWIN1_3 ) +#if defined( SYS_BEOS ) || defined( SYS_DARWIN ) char * psz_vlcpath = system_GetProgramPath(); int i_vlclen = strlen( psz_vlcpath ); boolean_t b_notinroot; @@ -162,7 +162,7 @@ void module_InitBank( void ) /* Store strlen(*ppsz_path) for later use. */ int i_dirlen = strlen( *ppsz_path ); -#if defined( SYS_BEOS ) || defined( SYS_DARWIN1_3 ) +#if defined( SYS_BEOS ) || defined( SYS_DARWIN ) b_notinroot = 0; /* Under BeOS, we need to add beos_GetProgramPath() to access * files under the current directory */ @@ -217,7 +217,7 @@ void module_InitBank( void ) closedir( dir ); } -#if defined( SYS_BEOS ) || defined( SYS_DARWIN1_3 ) +#if defined( SYS_BEOS ) || defined( SYS_DARWIN ) if( b_notinroot ) { free( psz_fullpath ); @@ -302,7 +302,7 @@ void module_ManageBank( void ) } else { - intf_WarnMsg( 1, "module: hiding unused plugin module `%s'", + intf_WarnMsg( 3, "module: hiding unused plugin module `%s'", p_module->psz_name ); HideModule( p_module ); @@ -557,7 +557,7 @@ static int AllocatePluginModule( char * psz_filename ) p_module_bank->first = p_module; /* Immediate message so that a slow module doesn't make the user wait */ - intf_WarnMsgImm( 2, "module: plugin module `%s', %s", + intf_WarnMsgImm( 2, "module: new plugin module `%s', %s", p_module->psz_name, p_module->psz_longname ); return( 0 ); @@ -673,7 +673,7 @@ static int AllocateBuiltinModule( int ( *pf_init ) ( module_t * ), p_module_bank->first = p_module; /* Immediate message so that a slow module doesn't make the user wait */ - intf_WarnMsgImm( 2, "module: builtin module `%s', %s", + intf_WarnMsgImm( 2, "module: new builtin module `%s', %s", p_module->psz_name, p_module->psz_longname ); return( 0 );