GUI Updates for plugin save/delete operations
[ardour.git] / session_utils / common.h
index 9077fbe92828ab70f5d014ae58decdd81fa564ec..679e0b5333fcc761c837b77e4e1cdd147120c4d5 100644 (file)
@@ -25,8 +25,15 @@ namespace SessionUtils {
 
        /** @param dir Session directory.
         *  @param state Session state file, without .ardour suffix.
+        *  @returns an ardour session object (free with \ref unload_session) or NULL
         */
-       ARDOUR::Session * load_session (std::string dir, std::string state);
+       ARDOUR::Session* load_session (std::string dir, std::string state, bool exit_at_failure = true);
+
+       /** @param dir Session directory.
+        *  @param state Session state file, without .ardour suffix.
+        *  @returns an ardour session object (free with \ref unload_session) or NULL on error
+        */
+       ARDOUR::Session* create_session (std::string dir, std::string state, float sample_rate);
 
        /** close session and stop engine
         * @param s Session to close (may me NULL)