alter config file copying infrastructure so it can be used at a suitable time in...
[ardour.git] / libs / ardour / ardour / ardour.h
index d8cbfbbcc57da938b4b6b571e4301f37c82366c5..3865ce6eceae39dddb6ee4e52f5c30420a529ebc 100644 (file)
@@ -83,7 +83,12 @@ namespace ARDOUR {
        LIBARDOUR_API void setup_fpu ();
        LIBARDOUR_API std::vector<SyncSource> get_available_sync_options();
 
-       LIBARDOUR_API int copy_configuration_files (std::string const & old_dir, std::string const & new_dir, int old_version);
+       /* the @param ui_handler will be called if there are old configuration
+        * files to be copied. It should (probably) ask the user about the
+        * action, and return true or false depending on whether or not the
+        * copy should take place.
+        */
+       LIBARDOUR_API int check_for_old_configuration_files (boost::function<bool (std::string const&, std::string const&, int)> ui_handler);
 }
 
 #endif /* __ardour_ardour_h__ */