summaryrefslogtreecommitdiff
path: root/libs/ardour/find_session.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-05-24 06:09:29 +0000
committerDavid Robillard <d@drobilla.net>2012-05-24 06:09:29 +0000
commit6fa6514cfdb0ce38d93b51197f599dfd091bad1d (patch)
tree10c50e4752aae8ebffe24564561192b8325abe47 /libs/ardour/find_session.cc
parent224e6175adc29f64cf0fc255fe05c95b99e5ec7d (diff)
Remove over 500 unnecessary includes (including 54 of session.h).
It's slightly possible that this causes trivial build failures on different configurations, but otherwise shouldn't cause any problems (i.e. no actual changes other than include/naming/namespace stuff). I deliberately avoided removing libardour-config.h since this can mysteriously break things, though a few of those do seem to be unnecessary. This commit only targets includes of ardour/*.h. There is also a very large number of unnecessary includes of stuff in gtk2_ardour; tackling that should also give a big improvement in build time when things are modified. git-svn-id: svn://localhost/ardour2/branches/3.0@12420 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/find_session.cc')
-rw-r--r--libs/ardour/find_session.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/libs/ardour/find_session.cc b/libs/ardour/find_session.cc
index c635b86545..4469b4e59d 100644
--- a/libs/ardour/find_session.cc
+++ b/libs/ardour/find_session.cc
@@ -10,7 +10,6 @@
#include "pbd/compose.h"
#include "pbd/error.h"
-#include "ardour/session_utils.h"
#include "ardour/filename_extensions.h"
#include "ardour/utils.h"
@@ -19,8 +18,10 @@
using namespace std;
using namespace PBD;
+namespace ARDOUR {
+
int
-ARDOUR::find_session (string str, string& path, string& snapshot, bool& isnew)
+find_session (string str, string& path, string& snapshot, bool& isnew)
{
struct stat statbuf;
char buf[PATH_MAX+1];
@@ -164,3 +165,5 @@ ARDOUR::find_session (string str, string& path, string& snapshot, bool& isnew)
return 0;
}
+
+} // namespace ARDOUR