Display version and copyright about NeoMutt. More...
#include "config.h"#include <stdbool.h>#include <stdio.h>#include <string.h>#include <sys/utsname.h>#include "mutt/lib.h"#include "config/lib.h"#include "gui/lib.h"#include "version.h"#include "compress/lib.h"#include "store/lib.h"#include "globals.h"#include "address/lib.h"#include "ncrypt/lib.h"#include <openssl/opensslv.h>#include <gnutls/gnutls.h>
Include dependency graph for version.c:Go to the source code of this file.
Functions | |
| const char * | mutt_make_version (void) |
| Generate the NeoMutt version string. | |
| static char * | rstrip_in_place (char *s) |
| Strip a trailing carriage return. | |
| static void | system_get (struct KeyValueArray *kva) |
| Get info about system libraries. | |
| static void | paths_get (struct KeyValueArray *kva) |
| Get compiled-in paths. | |
| static void | kva_clear (struct KeyValueArray *kva) |
| Free the strings of a KeyValueArray. | |
| struct NeoMuttVersion * | version_get (void) |
| Get NeoMutt version info. | |
| void | version_free (struct NeoMuttVersion **ptr) |
| Free a NeoMuttVersion. | |
| static void | print_compile_options (const struct CompileOption *co, FILE *fp, bool use_ansi) |
| Print a list of enabled/disabled features. | |
| bool | print_version (FILE *fp, bool use_ansi) |
| Print system and compile info to a file. | |
| bool | print_copyright (void) |
| Print copyright message. | |
| bool | feature_enabled (const char *name) |
| Test if a compile-time feature is enabled. | |
Variables | |
| static const int | SCREEN_WIDTH = 80 |
| CLI: Width to wrap version info. | |
| unsigned char | cc_cflags [] |
| unsigned char | configure_options [] |
| static const char * | Copyright |
| CLI Version: Authors' copyrights. | |
| static const char * | Thanks |
| CLI Version: Thanks. | |
| static const char * | License |
| CLI Version: License. | |
| static const char * | ReachingUs |
| CLI Version: How to reach the NeoMutt Team. | |
| static const char * | Notice |
| CLI Version: Warranty notice. | |
| static const struct CompileOption | CompOpts [] |
Compile options strings for neomutt -v output. | |
| static const struct CompileOption | DevelOpts [] |
Devel options strings for neomutt -v output. | |
Display version and copyright about NeoMutt.
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 version.c.
| const char * mutt_make_version | ( | void | ) |
|
static |
Strip a trailing carriage return.
| s | String to be modified |
| ptr | The modified string |
The string has its last carriage return set to NUL.
Definition at line 309 of file version.c.
Here is the caller graph for this function:
|
static |
Get info about system libraries.
| [out] | kva | Array for results |
Definition at line 327 of file version.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Get compiled-in paths.
| [out] | kva | Array for results |
Definition at line 414 of file version.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Free the strings of a KeyValueArray.
| kva | KeyValueArray to clear |
Definition at line 452 of file version.c.
Here is the caller graph for this function:| struct NeoMuttVersion * version_get | ( | void | ) |
Get NeoMutt version info.
| ptr | NeoMuttVersion |
Definition at line 469 of file version.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void version_free | ( | struct NeoMuttVersion ** | ptr | ) |
Free a NeoMuttVersion.
| ptr | NeoMuttVersion to free |
Definition at line 506 of file version.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Print a list of enabled/disabled features.
| co | Array of compile options |
| fp | file to write to |
| use_ansi | Use ANSI colour escape sequences |
Two lists are generated and passed to this function:
The output is of the form: "+enabled_feature -disabled_feature" and is wrapped to SCREEN_WIDTH characters.
Definition at line 539 of file version.c.
Here is the caller graph for this function:| bool print_version | ( | FILE * | fp, |
| bool | use_ansi | ||
| ) |
Print system and compile info to a file.
| fp | File to print to |
| use_ansi | Use ANSI colour escape sequences |
| true | Text displayed |
Print information about the current system NeoMutt is running on. Also print a list of all the compile-time information.
Definition at line 591 of file version.c.
Here is the call graph for this function:
Here is the caller graph for this function:| bool print_copyright | ( | void | ) |
Print copyright message.
| true | Text displayed |
Print the authors' copyright messages, the GPL license and some contact information for the NeoMutt project.
Definition at line 702 of file version.c.
Here is the call graph for this function:
Here is the caller graph for this function:| bool feature_enabled | ( | const char * | name | ) |
Test if a compile-time feature is enabled.
| name | Compile-time symbol of the feature |
| true | Feature enabled |
| false | Feature not enabled, or not compiled in |
Many of the larger features of neomutt can be disabled at compile time. They define a symbol and use ifdef's around their code. The symbols are mirrored in "CompileOption CompOpts[]" in this file.
This function checks if one of these symbols is present in the code.
These symbols are also seen in the output of "neomutt -v".
Definition at line 729 of file version.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
extern |
|
extern |
|
static |
CLI Version: Authors' copyrights.
|
static |
CLI Version: Thanks.
|
static |
CLI Version: License.
|
static |
|
static |
CLI Version: Warranty notice.
|
static |
|
static |