Add "Heartbeat" to the start of several heartbeat messages.
[tor.git] / src / core / or / tor_version_st.h
blob0c8dc11b14dc5b53547e401335a70316f6c099f3
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 */
7 /**
8 * @file tor_version_st.h
9 * @brief Parsed Tor version structure.
10 **/
12 #ifndef TOR_VERSION_ST_H
13 #define TOR_VERSION_ST_H
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.
19 * See version-spec.txt for the whole business.
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;
32 int git_tag_len;
33 char git_tag[DIGEST_LEN];
36 #endif /* !defined(TOR_VERSION_ST_H) */