Export a function to get the install dir of VLC from the plugins
authorChristophe Mutricy <xtophe@videolan.org>
Mon, 15 Oct 2007 21:30:53 +0000 (21:30 +0000)
committerChristophe Mutricy <xtophe@videolan.org>
Mon, 15 Oct 2007 21:30:53 +0000 (21:30 +0000)
include/vlc_os_specific.h
src/misc/win32_specific.c

index a329f22..dea352b 100644 (file)
@@ -35,7 +35,7 @@
 #elif defined( __APPLE__ )
 /* Nothing at the moment, create darwin_specific.h when needed */
 #elif defined( WIN32 ) || defined( UNDER_CE )
-/* Nothing at the moment, create win32_specific.h when needed */
+VLC_EXPORT( const char * , system_VLCPath, (void));
 #else
 #   undef _NEED_OS_SPECIFIC_H
 #endif
index 881f821..41e10b7 100644 (file)
@@ -368,3 +368,12 @@ void system_End( libvlc_int_t *p_this )
 
     WSACleanup();
 }
+
+/*****************************************************************************
+ *  system_VLCPath
+ *  **************************************************************************/
+const char* system_VLCPath( void )
+{
+    libvlc_global_data_t* libvlc_global = vlc_global();
+    return libvlc_global->psz_vlcpath;
+}