move vst detection code into ARDOUR namespace
authorRobin Gareus <robin@gareus.org>
Wed, 5 Mar 2014 07:47:54 +0000 (08:47 +0100)
committerRobin Gareus <robin@gareus.org>
Wed, 5 Mar 2014 07:47:54 +0000 (08:47 +0100)
libs/ardour/ardour/vst_info_file.h
libs/ardour/vst_info_file.cc

index 4e646194f07a91dff575ecbf2b68d3a9e5b9db0d..5e613801a6602971cf2befaf033a8f64ca7d28dc 100644 (file)
 #include "ardour/vst_types.h"
 #include <vector>
 
+#ifndef VST_SCANNER_APP
+namespace ARDOUR {
+#endif
+
 enum VSTScanMode {
        VST_SCAN_CACHE_ONLY,
        VST_SCAN_USE_APP,
@@ -43,5 +47,9 @@ LIBARDOUR_API extern std::vector<VSTInfo*> * vstfx_get_info_lx (char *, enum VST
 LIBARDOUR_API extern std::vector<VSTInfo*> * vstfx_get_info_fst (char *, enum VSTScanMode mode = VST_SCAN_USE_APP);
 #endif
 
+#ifndef VST_SCANNER_APP
+} // namespace
+#endif
+
 #endif /* __vstfx_h__ */
 
index 34e1b0ed0c0b0707fcb2bc721596cd8b0ae5342b..acb2d66579e9ebef9632299dd6ea2e4957e42a2d 100644 (file)
@@ -65,6 +65,9 @@
 
 
 using namespace std;
+#ifndef VST_SCANNER_APP
+namespace ARDOUR {
+#endif
 
 /* prototypes */
 #ifdef WINDOWS_VST_SUPPORT
@@ -1010,3 +1013,7 @@ vstfx_get_info_fst (char* dllpath, enum VSTScanMode mode)
        return vstfx_get_info(dllpath, ARDOUR::Windows_VST, mode);
 }
 #endif
+
+#ifndef VST_SCANNER_APP
+} // namespace
+#endif