Bug 880: Prevent SIGSEGV in init_python when -no-home is used.
[elinks.git] / src / viewer / action.h
blob1e3c44d08c69184ac99e397f8ffc3b37f9c2420c
1 #ifndef EL__VIEWER_ACTION_H
2 #define EL__VIEWER_ACTION_H
4 #include "config/kbdbind.h"
5 #include "viewer/text/view.h"
7 struct session;
9 enum frame_event_status {
10 /* The event was not handled */
11 FRAME_EVENT_IGNORED,
12 /* The event was handled, and the screen should be redrawn */
13 FRAME_EVENT_REFRESH,
14 /* The event was handled, and the screen should _not_ be redrawn */
15 FRAME_EVENT_OK,
16 /* The event was handled, and the current session was destroyed */
17 FRAME_EVENT_SESSION_DESTROYED,
20 enum frame_event_status do_action(struct session *ses,
21 enum main_action action_id, int verbose);
23 #endif