NeoMutt
2025-12-11-1039-g550ac6
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
Loading...
Searching...
No Matches
version.h
Go to the documentation of this file.
1
22
23
#ifndef MUTT_VERSION_H
24
#define MUTT_VERSION_H
25
26
#include <stdbool.h>
27
#include <stdio.h>
28
#include "
mutt/lib.h
"
29
33
struct
KeyValue
34
{
35
const
char
*
key
;
36
const
char
*
value
;
37
};
38
ARRAY_HEAD
(KeyValueArray,
struct
KeyValue
);
39
43
struct
CompileOption
44
{
45
const
char
*
name
;
46
int
enabled
;
47
};
48
52
struct
NeoMuttVersion
53
{
54
const
char
*
version
;
55
56
struct
KeyValueArray
system
;
57
58
struct
Slist
*
storage
;
59
struct
Slist
*
compression
;
60
61
struct
Slist
*
configure
;
62
struct
Slist
*
compilation
;
63
64
const
struct
CompileOption
*
feature
;
65
const
struct
CompileOption
*
devel
;
66
67
struct
KeyValueArray
paths
;
68
};
69
70
struct
NeoMuttVersion
*
version_get
(
void
);
71
void
version_free
(
struct
NeoMuttVersion
**ptr);
72
73
const
char
*
mutt_make_version
(
void
);
74
bool
print_version
(FILE *fp,
bool
use_ansi);
75
bool
print_copyright
(
void
);
76
bool
feature_enabled
(
const
char
*name);
77
78
#endif
/* MUTT_VERSION_H */
ARRAY_HEAD
#define ARRAY_HEAD(name, T)
Define a named struct for arrays of elements of a certain type.
Definition
array.h:47
lib.h
Convenience wrapper for the library headers.
CompileOption
Built-in capability.
Definition
version.h:44
CompileOption::name
const char * name
Option name.
Definition
version.h:45
CompileOption::enabled
int enabled
0 Disabled, 1 Enabled, 2 Devel only
Definition
version.h:46
KeyValue
Key/Value pairs.
Definition
version.h:34
KeyValue::key
const char * key
Key name.
Definition
version.h:35
KeyValue::value
const char * value
Key value.
Definition
version.h:36
NeoMuttVersion
Version info about NeoMutt.
Definition
version.h:53
NeoMuttVersion::paths
struct KeyValueArray paths
Compiled-in paths.
Definition
version.h:67
NeoMuttVersion::configure
struct Slist * configure
Configure options.
Definition
version.h:61
NeoMuttVersion::version
const char * version
Version of NeoMutt: YYYYMMDD-NUM-HASH (number of commits, git hash).
Definition
version.h:54
NeoMuttVersion::compression
struct Slist * compression
Compression methods, e.g. zlib.
Definition
version.h:59
NeoMuttVersion::storage
struct Slist * storage
Storage backends, e.g. lmdb.
Definition
version.h:58
NeoMuttVersion::devel
const struct CompileOption * devel
Compiled-in development features.
Definition
version.h:65
NeoMuttVersion::feature
const struct CompileOption * feature
Compiled-in features.
Definition
version.h:64
NeoMuttVersion::compilation
struct Slist * compilation
Compilation CFLAGS.
Definition
version.h:62
NeoMuttVersion::system
struct KeyValueArray system
System information.
Definition
version.h:56
Slist
String list.
Definition
slist.h:37
version_free
void version_free(struct NeoMuttVersion **ptr)
Free a NeoMuttVersion.
Definition
version.c:504
mutt_make_version
const char * mutt_make_version(void)
Generate the NeoMutt version string.
Definition
version.c:293
print_copyright
bool print_copyright(void)
Print copyright message.
Definition
version.c:703
print_version
bool print_version(FILE *fp, bool use_ansi)
Print system and compile info to a file.
Definition
version.c:591
feature_enabled
bool feature_enabled(const char *name)
Test if a compile-time feature is enabled.
Definition
version.c:730
version_get
struct NeoMuttVersion * version_get(void)
Get NeoMutt version info.
Definition
version.c:467