NeoMutt  2024-11-14-138-ge5ca67
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
expando.c File Reference

Alias Expando definitions. More...

#include <stdbool.h>
#include <stdio.h>
#include "private.h"
#include "mutt/lib.h"
#include "expando.h"
#include "expando/lib.h"
#include "menu/lib.h"
#include "attach_data.h"
#include "globals.h"
#include "muttlib.h"
#include "shared_data.h"
+ Include dependency graph for expando.c:

Go to the source code of this file.

Functions

static long compose_attach_count_num (const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
 Compose: Number of attachments - Implements get_number_t -.
 
static void compose_attach_size (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Compose: Size in bytes - Implements get_string_t -.
 
static long compose_attach_size_num (const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
 Compose: Size in bytes - Implements get_number_t -.
 
static void global_hostname (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Compose: Hostname - Implements get_string_t -.
 
static void global_version (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Compose: Version - Implements get_string_t -.
 

Variables

const struct ExpandoRenderCallback ComposeRenderCallbacks []
 Callbacks for Compose Expandos.
 

Detailed Description

Alias Expando definitions.

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 expando.c.

Variable Documentation

◆ ComposeRenderCallbacks

const struct ExpandoRenderCallback ComposeRenderCallbacks[]
Initial value:
= {
{ -1, -1, NULL, NULL },
}
@ ED_COM_ATTACH_COUNT
ComposeAttachData, num_attachments()
Definition: shared_data.h:54
@ ED_COM_ATTACH_SIZE
ComposeAttachData, cum_attachs_size()
Definition: shared_data.h:55
@ ED_COMPOSE
Compose ED_COM_ ExpandoDataCompose.
Definition: domain.h:39
@ ED_GLOBAL
Global ED_GLO_ ExpandoDataGlobal.
Definition: domain.h:44
static long compose_attach_count_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Compose: Number of attachments - Implements get_number_t -.
Definition: expando.c:44
static long compose_attach_size_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Compose: Size in bytes - Implements get_number_t -.
Definition: expando.c:73
static void compose_attach_size(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Compose: Size in bytes - Implements get_string_t -.
Definition: expando.c:59
static void global_hostname(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Compose: Hostname - Implements get_string_t -.
Definition: expando.c:83
static void global_version(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Compose: Version - Implements get_string_t -.
Definition: expando.c:93
@ ED_GLO_VERSION
NeoMutt version.
Definition: uid.h:42
@ ED_GLO_HOSTNAME
Local hostname.
Definition: uid.h:37

Callbacks for Compose Expandos.

See also
ComposeFormatDef, ExpandoDataCompose, ExpandoDataGlobal

Definition at line 105 of file expando.c.