/* * editor.h * vim: expandtab:ts=4:sts=4:sw=4 * * Copyright (C) 2022 - 2026 Michael Vetter * Copyright (C) 2022 MarcoPolo PasTonMolo * * SPDX-License-Identifier: GPL-3.0-or-later WITH OpenSSL-exception */ #ifndef TOOLS_EDITOR_H #define TOOLS_EDITOR_H #include "ui/win_types.h" #include gboolean launch_editor(gchar* initial_content, void (*callback)(gchar* content, void* data), void* user_data); void editor_emergency_kill(void); // SIGCONT+SIGTERM the editor child // TRUE if editor child is STOPPED (Ctrl-Z / :stop / gdb-attach). Does not // reap; g_child_watch keeps handling exit. gboolean editor_check_stopped(void); // Editor-session flag accessor. Used by prof_run on SIGCONT resume. gboolean editor_is_active(void); #endif