diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-07-31 09:17:32 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-07-31 09:18:54 -0400 |
commit | 772106c6bc37966f60be99a479240ced8abfea1b (patch) | |
tree | 22931d2e758717291782c87c284af2c1348cdcb2 /src/feature/api/tor_api.h | |
parent | 7e4ac0283ef9c089ebe4da8b85a5f6b5ec84a081 (diff) | |
download | tor-772106c6bc37966f60be99a479240ced8abfea1b.tar.gz tor-772106c6bc37966f60be99a479240ced8abfea1b.zip |
Add a new function, tor_api_get_provider_version()
Closes ticket 26947.
Diffstat (limited to 'src/feature/api/tor_api.h')
-rw-r--r-- | src/feature/api/tor_api.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/feature/api/tor_api.h b/src/feature/api/tor_api.h index ead9493c1f..a08606ee3c 100644 --- a/src/feature/api/tor_api.h +++ b/src/feature/api/tor_api.h @@ -58,6 +58,17 @@ int tor_main_configuration_set_command_line(tor_main_configuration_t *cfg, void tor_main_configuration_free(tor_main_configuration_t *cfg); /** + * Return the name and version of the software implementing the tor_api + * functionality. Current implementors are "tor" and "libtorrunner". + * + * Note that if you're using libtorrunner, you'll see the version of + * libtorrunner, not the version of Tor that it's invoking for you. + * + * Added in Tor 0.3.5.1-alpha. + **/ +const char *tor_api_get_provider_version(void); + +/** * Run the tor process, as if from the command line. * * The command line arguments from tor_main_configuration_set_command_line() @@ -98,4 +109,3 @@ int tor_run_main(const tor_main_configuration_t *); int tor_main(int argc, char **argv); #endif /* !defined(TOR_API_H) */ - |