NeoMutt  2023-05-17-16-g61469c
Teaching an old dog new tricks
DOXYGEN
command2.h
Go to the documentation of this file.
1
23#ifndef MUTT_COLOR_COMMAND2_H
24#define MUTT_COLOR_COMMAND2_H
25
26#include "config.h"
27#include <stdint.h>
28#include "core/lib.h"
29
30struct Buffer;
31
46typedef int (*parser_callback_t)(struct Buffer *buf, struct Buffer *s, uint32_t *fg,
47 uint32_t *bg, int *attrs, struct Buffer *err);
48
49enum CommandResult mutt_parse_color (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err);
50enum CommandResult mutt_parse_mono (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err);
51enum CommandResult mutt_parse_uncolor(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err);
52enum CommandResult mutt_parse_unmono (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err);
53
54void get_colorid_name(unsigned int color_id, struct Buffer *buf);
55
56#endif /* MUTT_COLOR_COMMAND2_H */
int(* parser_callback_t)(struct Buffer *buf, struct Buffer *s, uint32_t *fg, uint32_t *bg, int *attrs, struct Buffer *err)
Definition: command2.h:46
void get_colorid_name(unsigned int color_id, struct Buffer *buf)
Get the name of a color id.
Definition: command.c:591
CommandResult
Error codes for command_t parse functions.
Definition: command.h:36
Convenience wrapper for the core headers.
enum CommandResult mutt_parse_unmono(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
Parse the 'unmono' command - Implements Command::parse() -.
Definition: command.c:1128
enum CommandResult mutt_parse_mono(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
Parse the 'mono' command - Implements Command::parse() -.
Definition: command.c:1152
enum CommandResult mutt_parse_color(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
Parse the 'color' command - Implements Command::parse() -.
Definition: command.c:1138
enum CommandResult mutt_parse_uncolor(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
Parse the 'uncolor' command - Implements Command::parse() -.
Definition: command.c:1111
String manipulation buffer.
Definition: buffer.h:34
char * data
Pointer to data.
Definition: buffer.h:35