void create_win(void) { if (!prof_win_exists(plugin_win)) { prof_win_create(plugin_win, handle_win_input); } }
void cmd_reverse(char **args) { if (!prof_win_exists(echo_win)) { prof_win_create(echo_win, handle_reverse); } prof_win_focus(echo_win); if (args[0] != NULL) { handle_reverse(echo_win, args[0]); } }