5 #include "ardour/rc_configuration.h"
6 #include "pbd/enumwriter.h"
8 using namespace ARDOUR;
11 int main (int argc, char **argv) {
13 fprintf(stderr, "usage %s <file-name>\n", argv[0]);
17 setenv ("ARDOUR_DLL_PATH", "/xxx", 1);
18 setenv ("ARDOUR_CONFIG_PATH", "/xxx", 1);
20 if (!ARDOUR::init (false, true, "/xxx")) {
21 fprintf(stderr, "Failed to initialize libardour\n");
25 RCConfiguration * rc = new RCConfiguration;
26 XMLNode& state = rc->get_state();
28 // TODO strip some nodes here ?
31 tree.set_root (&state);
33 if (!tree.write (argv[1])) {
34 fprintf(stderr, "Error saving config file '%s'\n", argv[1]);