implement generic switching
-rw-r--r-- 75 .gitignore
-rw-r--r-- 588 CMakeLists.txt
-rw-r--r-- 5231 convert-modeswitch.pl
-rw-r--r-- 6920 main.c
-rw-r--r-- 5149 switch.c
-rw-r--r-- 550 switch.h