NeoMutt  2025-12-11-860-g80c9cc
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 PatternFunctionData *fdata, const struct KeyEvent *event)
 Select the current entry - Implements pattern_function_t -.
 
static int op_quit (struct PatternFunctionData *fdata, 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 AliasFunctionData *fdata, const struct KeyEvent *event)
select the current entry - Implements alias_function_t -
Definition functions.c:349
static int op_quit(struct HistoryData *hd, const struct KeyEvent *event)
Quit this menu - Implements history_function_t -.
Definition functions.c:61

All the NeoMutt functions that the Pattern supports.

Definition at line 78 of file functions.c.

78 {
79 // clang-format off
80 { OP_GENERIC_SELECT_ENTRY, op_generic_select_entry },
81 { OP_QUIT, op_quit },
82 { OP_EXIT, op_quit },
83 { 0, NULL },
84 // clang-format on
85};