-static void
-list_debug_options ()
-{
- cerr << _("The following debug options are available. Their use is case-insensitive.") << "\n\n";
- cerr << "\tMidiSourceIO\n";
- cerr << "\tMidiPlaylistIO\n";
-}
-
-static int
-parse_debug_options (const char* str)
-{
- char* p;
- char* sp;
- uint64_t bits = 0;
- char* copy = strdup (str);
-
- p = strtok_r (copy, ",", &sp);
-
- while (p) {
- if (strcasecmp (p, "list") == 0) {
- list_debug_options ();
- free (copy);
- return 1;
- }
-
- if (strcasecmp (p, "midisourceio") == 0) {
- bits |= ARDOUR::DEBUG::MidiSourceIO;
- }
- if (strcasecmp (p, "midiplaylistio") == 0) {
- bits |= ARDOUR::DEBUG::MidiPlaylistIO;
- }
-
- p = strtok_r (0, ",", &sp);
- }
-
- free (copy);
- ARDOUR::set_debug_bits (bits);
- return 0;
-}
-
-