Tor
0.4.7.0-alpha-dev
|
Functions to get the version of Tor. More...
#include "orconfig.h"
#include "lib/version/torversion.h"
#include "lib/version/git_revision.h"
#include <stdio.h>
#include <string.h>
Go to the source code of this file.
Macros | |
#define | MAX_VERSION_LEN 128 |
Functions | |
const char * | get_version (void) |
const char * | get_short_version (void) |
Variables | |
static const char | the_short_tor_version [] |
static char | the_tor_version [MAX_VERSION_LEN] = "" |
Functions to get the version of Tor.
Definition in file version.c.
#define MAX_VERSION_LEN 128 |
const char* get_short_version | ( | void | ) |
Return the current Tor version, without any git tag.
Definition at line 56 of file version.c.
Referenced by get_platform_str().
const char* get_version | ( | void | ) |
Return the current Tor version.
Definition at line 38 of file version.c.
Referenced by options_init_from_torrc(), print_library_versions(), and tor_init().
|
static |
A shorter version of this Tor process's version, for export in our router descriptor. (Does not include the git version, if any.)
Definition at line 20 of file version.c.
Referenced by get_short_version(), and get_version().
|
static |
The version of this Tor process, possibly including git version
Definition at line 34 of file version.c.
Referenced by get_version().