NeoMutt  2024-04-25-89-g194907
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
functions.c File Reference

Mixmaster functions. More...

#include "config.h"
#include <stddef.h>
#include "mutt/lib.h"
#include "core/lib.h"
#include "gui/lib.h"
#include "key/lib.h"
#include "functions.h"
#include "private_data.h"
#include "win_chain.h"
#include "win_hosts.h"
+ Include dependency graph for functions.c:

Go to the source code of this file.

Functions

static int op_exit (struct MixmasterPrivateData *priv, int op)
 exit this menu - Implements mixmaster_function_t -
 
static int op_mix_append (struct MixmasterPrivateData *priv, int op)
 append a remailer to the chain - Implements mixmaster_function_t -
 
static int op_mix_chain_next (struct MixmasterPrivateData *priv, int op)
 select the next element of the chain - Implements mixmaster_function_t -
 
static int op_mix_chain_prev (struct MixmasterPrivateData *priv, int op)
 select the previous element of the chain - Implements mixmaster_function_t -
 
static int op_mix_delete (struct MixmasterPrivateData *priv, int op)
 delete a remailer from the chain - Implements mixmaster_function_t -
 
static int op_mix_insert (struct MixmasterPrivateData *priv, int op)
 insert a remailer into the chain - Implements mixmaster_function_t -
 
static int op_mix_use (struct MixmasterPrivateData *priv, int op)
 accept the chain constructed - Implements mixmaster_function_t -
 
int mix_function_dispatcher (struct MuttWindow *win, int op)
 Perform a Mixmaster function - Implements function_dispatcher_t -.
 

Variables

const struct MenuFuncOp OpMixmaster []
 Functions for the Mixmaster Menu.
 
const struct MenuOpSeq MixmasterDefaultBindings []
 Key bindings for the Mixmaster Menu.
 
static const struct MixmasterFunction MixmasterFunctions []
 All the NeoMutt functions that the Mixmaster supports.
 

Detailed Description

Mixmaster 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

◆ OpMixmaster

const struct MenuFuncOp OpMixmaster[]
Initial value:
= {
{ "accept", OP_MIX_USE },
{ "append", OP_MIX_APPEND },
{ "chain-next", OP_MIX_CHAIN_NEXT },
{ "chain-prev", OP_MIX_CHAIN_PREV },
{ "delete", OP_MIX_DELETE },
{ "exit", OP_EXIT },
{ "insert", OP_MIX_INSERT },
{ NULL, 0 },
}

Functions for the Mixmaster Menu.

Definition at line 49 of file functions.c.

◆ MixmasterDefaultBindings

const struct MenuOpSeq MixmasterDefaultBindings[]
Initial value:
= {
{ OP_EXIT, "q" },
{ OP_GENERIC_SELECT_ENTRY, "<space>" },
{ OP_MIX_APPEND, "a" },
{ OP_MIX_CHAIN_NEXT, "<right>" },
{ OP_MIX_CHAIN_NEXT, "l" },
{ OP_MIX_CHAIN_PREV, "<left>" },
{ OP_MIX_CHAIN_PREV, "h" },
{ OP_MIX_DELETE, "d" },
{ OP_MIX_INSERT, "i" },
{ OP_MIX_USE, "<keypadenter>" },
{ OP_MIX_USE, "\n" },
{ OP_MIX_USE, "\r" },
{ 0, NULL },
}

Key bindings for the Mixmaster Menu.

Definition at line 65 of file functions.c.

◆ MixmasterFunctions

const struct MixmasterFunction MixmasterFunctions[]
static
Initial value:
= {
{ OP_EXIT, op_exit },
{ OP_GENERIC_SELECT_ENTRY, op_mix_append },
{ OP_MIX_APPEND, op_mix_append },
{ OP_MIX_CHAIN_NEXT, op_mix_chain_next },
{ OP_MIX_CHAIN_PREV, op_mix_chain_prev },
{ OP_MIX_DELETE, op_mix_delete },
{ OP_MIX_INSERT, op_mix_insert },
{ OP_MIX_USE, op_mix_use },
{ 0, NULL },
}
static int op_exit(struct AliasMenuData *mdata, int op)
exit this menu - Implements alias_function_t -
Definition: functions.c:191
static int op_mix_insert(struct MixmasterPrivateData *priv, int op)
insert a remailer into the chain - Implements mixmaster_function_t -
Definition: functions.c:138
static int op_mix_delete(struct MixmasterPrivateData *priv, int op)
delete a remailer from the chain - Implements mixmaster_function_t -
Definition: functions.c:127
static int op_mix_chain_prev(struct MixmasterPrivateData *priv, int op)
select the previous element of the chain - Implements mixmaster_function_t -
Definition: functions.c:116
static int op_mix_chain_next(struct MixmasterPrivateData *priv, int op)
select the next element of the chain - Implements mixmaster_function_t -
Definition: functions.c:105
static int op_mix_use(struct MixmasterPrivateData *priv, int op)
accept the chain constructed - Implements mixmaster_function_t -
Definition: functions.c:149
static int op_mix_append(struct MixmasterPrivateData *priv, int op)
append a remailer to the chain - Implements mixmaster_function_t -
Definition: functions.c:94

All the NeoMutt functions that the Mixmaster supports.

Definition at line 166 of file functions.c.