1
0
mirror of https://github.com/containers/conmon.git synced 2026-02-07 03:47:40 +01:00
Files
conmon/src/ctrl.h
Peter Hunt dad6a1e609 split conmon.c into different files
conmon as it stands is pretty difficult to work with. over the years, conmon's main function has grown very large, and the conmon.c was about 1500 lines. This discourages contributors and adds maintenance burden.

instead, let's refactor conmon.c into many different files. The general structure either describes conmon lifecycle (cli process, runtime arg setup, container attach functionality, exit functions) or serves as a library (cgroup management, handling conmon oom).

Signed-off-by: Peter Hunt <pehunt@redhat.com>
2020-03-20 11:50:02 -04:00

13 lines
462 B
C

#if !defined(CTRL_H)
#define CTRL_H
#include <glib.h> /* gpointer */
gboolean terminal_accept_cb(int fd, G_GNUC_UNUSED GIOCondition condition, G_GNUC_UNUSED gpointer user_data);
gboolean ctrl_winsz_cb(int fd, G_GNUC_UNUSED GIOCondition condition, G_GNUC_UNUSED gpointer user_data);
gboolean ctrl_cb(int fd, G_GNUC_UNUSED GIOCondition condition, G_GNUC_UNUSED gpointer user_data);
void setup_console_fifo();
int setup_terminal_control_fifo();
#endif // CTRL_H