NeoMutt  2024-03-23-147-g885fbc
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
Mixmaster Function API

Prototype for a Mixmaster Function. More...

+ Collaboration diagram for Mixmaster Function API:

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 -
 

Detailed Description

Prototype for a Mixmaster Function.

Parameters
privMixmaster private data
opOperation to perform, e.g. OP_MIXMASTER_NEXT
Return values
enumFunctionRetval

Function Documentation

◆ op_exit()

static int op_exit ( struct MixmasterPrivateData priv,
int  op 
)
static

exit this menu - Implements mixmaster_function_t -

Definition at line 86 of file functions.c.

87{
88 return FR_NO_ACTION;
89}
@ FR_NO_ACTION
Valid function - no action performed.
Definition: dispatcher.h:37

◆ op_mix_append()

static int op_mix_append ( struct MixmasterPrivateData priv,
int  op 
)
static

append a remailer to the chain - Implements mixmaster_function_t -

Definition at line 94 of file functions.c.

95{
97 return FR_ERROR;
98
99 return FR_SUCCESS;
100}
@ FR_SUCCESS
Valid function - successfully performed.
Definition: dispatcher.h:39
@ FR_ERROR
Valid function - error occurred.
Definition: dispatcher.h:38
struct MuttWindow * win_chain
Chain Window.
Definition: private_data.h:32
struct MuttWindow * win_hosts
Hosts Window.
Definition: private_data.h:31
bool win_chain_append(struct MuttWindow *win, struct Remailer *r)
Add an item to the Chain, after the current item.
Definition: win_chain.c:335
struct Remailer * win_hosts_get_selection(struct MuttWindow *win)
Get the current selection.
Definition: win_hosts.c:206
+ Here is the call graph for this function:

◆ op_mix_chain_next()

static int op_mix_chain_next ( struct MixmasterPrivateData priv,
int  op 
)
static

select the next element of the chain - Implements mixmaster_function_t -

Definition at line 105 of file functions.c.

106{
107 if (win_chain_next(priv->win_chain))
108 return FR_SUCCESS;
109
110 return FR_ERROR;
111}
bool win_chain_next(struct MuttWindow *win)
Select the next entry in the Chain list.
Definition: win_chain.c:282
+ Here is the call graph for this function:

◆ op_mix_chain_prev()

static int op_mix_chain_prev ( struct MixmasterPrivateData priv,
int  op 
)
static

select the previous element of the chain - Implements mixmaster_function_t -

Definition at line 116 of file functions.c.

117{
118 if (win_chain_prev(priv->win_chain))
119 return FR_SUCCESS;
120
121 return FR_ERROR;
122}
bool win_chain_prev(struct MuttWindow *win)
Select the previous entry in the Chain list.
Definition: win_chain.c:308
+ Here is the call graph for this function:

◆ op_mix_delete()

static int op_mix_delete ( struct MixmasterPrivateData priv,
int  op 
)
static

delete a remailer from the chain - Implements mixmaster_function_t -

Definition at line 127 of file functions.c.

128{
129 if (!win_chain_delete(priv->win_chain))
130 return FR_ERROR;
131
132 return FR_SUCCESS;
133}
bool win_chain_delete(struct MuttWindow *win)
Delete the current item from the Chain.
Definition: win_chain.c:385
+ Here is the call graph for this function:

◆ op_mix_insert()

static int op_mix_insert ( struct MixmasterPrivateData priv,
int  op 
)
static

insert a remailer into the chain - Implements mixmaster_function_t -

Definition at line 138 of file functions.c.

139{
141 return FR_ERROR;
142
143 return FR_SUCCESS;
144}
bool win_chain_insert(struct MuttWindow *win, struct Remailer *r)
Add an item to the Chain, before the current item.
Definition: win_chain.c:354
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ op_mix_use()

static int op_mix_use ( struct MixmasterPrivateData priv,
int  op 
)
static

accept the chain constructed - Implements mixmaster_function_t -

Definition at line 149 of file functions.c.

150{
151 // If we don't have a chain yet, insert the current item
152 if (win_chain_get_length(priv->win_chain) == 0)
153 op_mix_insert(priv, op);
154
155 if (win_chain_validate(priv->win_chain))
156 return FR_DONE;
157
158 return FR_SUCCESS;
159}
@ FR_DONE
Exit the Dialog.
Definition: dispatcher.h:35
static int op_mix_insert(struct MixmasterPrivateData *priv, int op)
insert a remailer into the chain - Implements mixmaster_function_t -
Definition: functions.c:138
bool win_chain_validate(struct MuttWindow *win)
Validate the Chain.
Definition: win_chain.c:417
int win_chain_get_length(struct MuttWindow *win)
Get the number of Remailers in the Chain.
Definition: win_chain.c:267
+ Here is the call graph for this function: