Tor
0.4.7.0-alpha-dev
core
or
tor_version_st.h
Go to the documentation of this file.
1
/* Copyright (c) 2001 Matej Pfajfar.
2
* Copyright (c) 2001-2004, Roger Dingledine.
3
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
4
* Copyright (c) 2007-2021, The Tor Project, Inc. */
5
/* See LICENSE for licensing information */
6
7
/**
8
* @file tor_version_st.h
9
* @brief Parsed Tor version structure.
10
**/
11
12
#ifndef TOR_VERSION_ST_H
13
#define TOR_VERSION_ST_H
14
15
#define MAX_STATUS_TAG_LEN 32
16
/** Structure to hold parsed Tor versions. This is a little messier
17
* than we would like it to be, because we changed version schemes with 0.1.0.
18
*
19
* See version-spec.txt for the whole business.
20
*/
21
struct
tor_version_t
{
22
int
major;
23
int
minor;
24
int
micro;
25
/** Release status. For version in the post-0.1 format, this is always
26
* VER_RELEASE. */
27
enum
{ VER_PRE=0, VER_RC=1, VER_RELEASE=2, }
status
;
28
int
patchlevel;
29
char
status_tag[MAX_STATUS_TAG_LEN];
30
int
svn_revision;
31
32
int
git_tag_len;
33
char
git_tag[
DIGEST_LEN
];
34
};
35
36
#endif
/* !defined(TOR_VERSION_ST_H) */
DIGEST_LEN
#define DIGEST_LEN
Definition:
digest_sizes.h:20
tor_version_t
Definition:
tor_version_st.h:21
tor_version_t::status
enum tor_version_t::@13 status
Generated by
1.9.1