Display version and copyright about NeoMutt. More...
#include "config.h"
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <sys/utsname.h>
#include <unistd.h>
#include "mutt/lib.h"
#include "gui/lib.h"
#include "version.h"
#include "compress/lib.h"
#include "ncrypt/lib.h"
#include <openssl/opensslv.h>
#include <gnutls/gnutls.h>
Go to the source code of this file.
Data Structures | |
struct | CompileOptions |
List of built-in capabilities. More... | |
Functions | |
const char * | mutt_make_version (void) |
Generate the NeoMutt version string. More... | |
const char * | store_backend_list (void) |
Get a list of backend names. More... | |
const char * | store_compress_list (void) |
static void | print_compile_options (struct CompileOptions *co, FILE *fp) |
Print a list of enabled/disabled features. More... | |
static char * | rstrip_in_place (char *s) |
Strip a trailing carriage return. More... | |
void | print_version (FILE *fp) |
Print system and compile info to a file. More... | |
void | print_copyright (void) |
Print copyright message. More... | |
bool | feature_enabled (const char *name) |
Test if a compile-time feature is enabled. More... | |
Variables | |
const int | SCREEN_WIDTH = 80 |
unsigned char | cc_cflags [] |
unsigned char | configure_options [] |
static const char * | Copyright |
static const char * | Thanks |
static const char * | License |
static const char * | ReachingUs |
static const char * | Notice |
static struct CompileOptions | comp_opts_default [] |
static struct CompileOptions | comp_opts [] |
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 | ) |
const char* store_backend_list | ( | void | ) |
const char* store_compress_list | ( | void | ) |
|
static |
Print a list of enabled/disabled features.
co | Array of compile options |
fp | file to write to |
Two lists are generated and passed to this function:
One list which just uses the configure state of each feature. One list which just uses feature which are set to on directly in NeoMutt.
The output is of the form: "+enabled_feature -disabled_feature" and is wrapped to SCREEN_WIDTH characters.
Definition at line 351 of file version.c.
|
static |
void print_version | ( | FILE * | fp | ) |
Print system and compile info to a file.
fp | - file to print to |
Print information about the current system NeoMutt is running on. Also print a list of all the compile-time information.
Definition at line 424 of file version.c.
void print_copyright | ( | void | ) |
Print copyright message.
Print the authors' copyright messages, the GPL license and some contact information for the NeoMutt project.
Definition at line 541 of file version.c.
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 "CompileOptions comp_opts[]" 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 565 of file version.c.
unsigned char cc_cflags[] |
unsigned char configure_options[] |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |