From c47a29221e3a7902ff719923adb954843707e4a4 Mon Sep 17 00:00:00 2001
From: Christophe Mutricy <xtophe@videolan.org>
Date: Mon, 15 Oct 2007 21:30:53 +0000
Subject: [PATCH] Export a function to get the install dir of VLC from the
 plugins

---
 include/vlc_os_specific.h | 2 +-
 src/misc/win32_specific.c | 9 +++++++++
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/include/vlc_os_specific.h b/include/vlc_os_specific.h
index a329f223fd10..dea352b86a64 100644
--- a/include/vlc_os_specific.h
+++ b/include/vlc_os_specific.h
@@ -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
diff --git a/src/misc/win32_specific.c b/src/misc/win32_specific.c
index 881f82118ea2..41e10b7f8e71 100644
--- a/src/misc/win32_specific.c
+++ b/src/misc/win32_specific.c
@@ -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;
+}
-- 
GitLab