NeoMutt  2025-12-11-435-g4ac674
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
functions.c File Reference

Pattern functions. More...

#include "config.h"
#include <stdbool.h>
#include <stdio.h>
#include "mutt/lib.h"
#include "core/lib.h"
#include "gui/lib.h"
#include "functions.h"
#include "key/lib.h"
#include "menu/lib.h"
#include "pattern_data.h"
+ Include dependency graph for functions.c:

Go to the source code of this file.

Functions

static int op_generic_select_entry (struct PatternData *pd, const struct KeyEvent *event)
 Select the current entry - Implements pattern_function_t -.
 
static int op_quit (struct PatternData *pd, const struct KeyEvent *event)
 Quit this menu - Implements pattern_function_t -.
 
int pattern_function_dispatcher (struct MuttWindow *win, const struct KeyEvent *event)
 Perform a Pattern function - Implements function_dispatcher_t -.
 

Variables

static const struct PatternFunction PatternFunctions []
 All the NeoMutt functions that the Pattern supports.
 

Detailed Description

Pattern functions.

Authors
  • Richard Russon

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file functions.c.

Variable Documentation

◆ PatternFunctions

const struct PatternFunction PatternFunctions[]
static
Initial value:
= {
{ OP_GENERIC_SELECT_ENTRY, op_generic_select_entry },
{ OP_QUIT, op_quit },
{ OP_EXIT, op_quit },
{ 0, NULL },
}
static int op_generic_select_entry(struct AliasMenuData *mdata, const struct KeyEvent *event)
select the current entry - Implements alias_function_t -
Definition functions.c:248
static int op_quit(struct HistoryData *hd, const struct KeyEvent *event)
Quit this menu - Implements history_function_t -.
Definition functions.c:57

All the NeoMutt functions that the Pattern supports.

Definition at line 71 of file functions.c.

71 {
72 // clang-format off
73 { OP_GENERIC_SELECT_ENTRY, op_generic_select_entry },
74 { OP_QUIT, op_quit },
75 { OP_EXIT, op_quit },
76 { 0, NULL },
77 // clang-format on
78};