Transfer 'lv2_bundled_search_path()' into 'libs/ardour/search_paths.cc'

This commit is contained in:
John Emmas 2014-03-10 14:42:45 +00:00
parent ff053653e1
commit 8a44aa9aba
5 changed files with 16 additions and 77 deletions

View File

@ -1,35 +0,0 @@
/*
Copyright (C) 2013 Paul Davis
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef ARDOUR_LV2_BUNDLED_SEARCH_PATH_INCLUDED
#define ARDOUR_LV2_BUNDLED_SEARCH_PATH_INCLUDED
#include "pbd/search_path.h"
namespace ARDOUR {
/**
* return a Searchpath containing directories in which to look for
* lv2 plugins.
*/
PBD::Searchpath lv2_bundled_search_path ();
} // namespace ARDOUR
#endif

View File

@ -63,6 +63,12 @@ namespace ARDOUR {
*/
LIBARDOUR_API PBD::Searchpath ladspa_search_path ();
/**
* return a Searchpath containing directories in which to look for
* lv2 plugins.
*/
LIBARDOUR_API PBD::Searchpath lv2_bundled_search_path ();
} // namespace ARDOUR
#endif /* __libardour_search_paths_h__ */

View File

@ -1,41 +0,0 @@
/*
Copyright (C) 2013 Paul Davis
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <iostream>
#include <glibmm/miscutils.h>
#include "ardour/lv2_bundled_search_path.h"
#include "ardour/directory_names.h"
#include "ardour/filesystem_paths.h"
using namespace PBD;
namespace ARDOUR {
Searchpath
lv2_bundled_search_path ()
{
Searchpath spath( ardour_dll_directory () );
spath.add_subdirectory_to_paths ("LV2");
return spath;
}
} // namespace ARDOUR

View File

@ -48,7 +48,7 @@
#include "ardour/types.h"
#include "ardour/utils.h"
#include "ardour/worker.h"
#include "ardour/lv2_bundled_search_path.h"
#include "ardour/search_paths.h"
#include "i18n.h"
#include <locale.h>

View File

@ -100,4 +100,13 @@ ladspa_search_path ()
return spath_env + spath;
}
Searchpath
lv2_bundled_search_path ()
{
Searchpath spath( ardour_dll_directory () );
spath.add_subdirectory_to_paths ("LV2");
return spath;
}
} // namespace ARDOUR