Tor 0.4.9.0-alpha-dev
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 */
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) */
#define DIGEST_LEN
Definition: digest_sizes.h:20
enum tor_version_t::@13 status