NeoMutt
2025-12-11-1039-g550ac6
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
Loading...
Searching...
No Matches
mapping.h
Go to the documentation of this file.
1
23
24
#ifndef MUTT_MUTT_MAPPING_H
25
#define MUTT_MUTT_MAPPING_H
26
27
#include <stddef.h>
28
32
struct
Mapping
33
{
34
const
char
*
name
;
35
int
value
;
36
};
37
38
const
char
*
mutt_map_get_name
(
int
val,
const
struct
Mapping
*map);
39
int
mutt_map_get_value
(
const
char
*name,
const
struct
Mapping
*map);
40
int
mutt_map_get_value_n
(
const
char
*name,
size_t
len,
const
struct
Mapping
*map);
41
42
#endif
/* MUTT_MUTT_MAPPING_H */
mutt_map_get_value_n
int mutt_map_get_value_n(const char *name, size_t len, const struct Mapping *map)
Lookup the constant for a string.
Definition
mapping.c:62
mutt_map_get_value
int mutt_map_get_value(const char *name, const struct Mapping *map)
Lookup the constant for a string.
Definition
mapping.c:85
mutt_map_get_name
const char * mutt_map_get_name(int val, const struct Mapping *map)
Lookup a string for a constant.
Definition
mapping.c:42
Mapping
Mapping between user-readable string and a constant.
Definition
mapping.h:33
Mapping::value
int value
Integer value.
Definition
mapping.h:35
Mapping::name
const char * name
String value.
Definition
mapping.h:34