X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fardour%2Fsession_utils.h;h=870f3daaa72a2e1d9c1958e6da188ae15fe660a1;hb=71a90399fe8561310b848fbfb8d28a65a395a6c1;hp=8a9f6f584cc1ae30dc0d951a4884a5baf2137b78;hpb=449aab3c465bbbf66d221fac3d7ea559f1720357;p=ardour.git diff --git a/libs/ardour/ardour/session_utils.h b/libs/ardour/ardour/session_utils.h index 8a9f6f584c..870f3daaa7 100644 --- a/libs/ardour/ardour/session_utils.h +++ b/libs/ardour/ardour/session_utils.h @@ -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 -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); };