-#define launch_mode_is_valid(x) ((x)==mode_local || (x)==mode_remote)
-#define is_valid_launch_mode(x) ((x)==mode_local || (x)==mode_remote)
+extern enum afm_launch_mode get_default_launch_mode();
+extern void set_default_launch_mode(enum afm_launch_mode mode);