fix crash when copy'ing latent plugins
[ardour.git] / libs / ardour / ardour / session_utils.h
index 8a9f6f584cc1ae30dc0d951a4884a5baf2137b78..870f3daaa72a2e1d9c1958e6da188ae15fe660a1 100644 (file)
@@ -1,25 +1,33 @@
+/*
+    Copyright (C) 2012 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_session_utils_h__
 #define __ardour_session_utils_h__
 
 #include <string>
 
-namespace ARDOUR {
-
-using std::string;
+#include "ardour/libardour_visibility.h"
 
-int find_session (string str, string& path, string& snapshot, bool& isnew);
+namespace ARDOUR {
 
-/**
- * Create a SessionDirectory at the path specified by
- * session_directory_path, this includes all subdirectories.
- *
- * @return true if the session directory was able to be created
- * or if it already existed, false otherwise.
- *
- * @see SessionDirectory
- */
-bool create_session_directory (const string& session_directory_path);
+       LIBARDOUR_API extern int find_session (std::string str, std::string& path, std::string& snapshot, bool& isnew);
 
 };