NeoMutt  2025-12-11-911-gd8d604
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
lib.h
Go to the documentation of this file.
1
22
41
42#ifndef MUTT_SIDEBAR_LIB_H
43#define MUTT_SIDEBAR_LIB_H
44
45#include "mutt/list.h"
46
47struct Buffer;
48struct Command;
49struct KeyEvent;
50struct NeoMutt;
51struct MuttWindow;
52struct ParseContext;
53struct ParseError;
54struct SubMenu;
55
56void sb_init(struct MuttWindow *all_dialogs_window);
57void sb_cleanup(struct ListHead *sidebar_pinned, struct MuttWindow *all_dialogs_window);
58
59int sb_function_dispatcher(struct MuttWindow *win, const struct KeyEvent *event);
60
61enum CommandResult parse_sidebar_pin(const struct Command *cmd, struct Buffer *line,
62 const struct ParseContext *pc,
63 struct ParseError *pe);
64enum CommandResult parse_sidebar_unpin(const struct Command *cmd, struct Buffer *line,
65 const struct ParseContext *pc,
66 struct ParseError *pe);
67
68void sidebar_init_keys(struct NeoMutt *n, struct SubMenu *sm_generic);
69struct SubMenu *sidebar_get_submenu(void);
70
71#endif /* MUTT_SIDEBAR_LIB_H */
CommandResult
Error codes for command_t parse functions.
Definition command.h:37
enum CommandResult parse_sidebar_pin(const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe)
Parse the 'sidebar-pin' command - Implements Command::parse() -.
Definition commands.c:45
enum CommandResult parse_sidebar_unpin(const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe)
Parse the 'sidebar-unpin' command - Implements Command::parse() -.
Definition commands.c:76
int sb_function_dispatcher(struct MuttWindow *win, const struct KeyEvent *event)
Perform a Sidebar function - Implements function_dispatcher_t -.
Definition functions.c:714
Singly-linked list type.
void sb_init(struct MuttWindow *all_dialogs_window)
Set up the Sidebar.
Definition sidebar.c:214
void sidebar_init_keys(struct NeoMutt *n, struct SubMenu *sm_generic)
Initialise the Sidebar Keybindings - Implements ::init_keys_api.
Definition functions.c:82
struct SubMenu * sidebar_get_submenu(void)
Get the Sidebar SubMenu.
Definition functions.c:106
void sb_cleanup(struct ListHead *sidebar_pinned, struct MuttWindow *all_dialogs_window)
Clean up the Sidebar.
Definition sidebar.c:234
String manipulation buffer.
Definition buffer.h:36
An event such as a keypress.
Definition get.h:75
Container for Accounts, Notifications.
Definition neomutt.h:41
Context for config parsing (history/backtrace)
Definition pcontext.h:34
Detailed error information from config parsing.
Definition perror.h:34
Collection of related functions.
Definition menu.h:65