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/tools | |
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/tools')
-rw-r--r-- | src/tools/tor_runner.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/tools/tor_runner.c b/src/tools/tor_runner.c index dd90af3df5..f8805e6500 100644 --- a/src/tools/tor_runner.c +++ b/src/tools/tor_runner.c @@ -46,6 +46,12 @@ static void child(const tor_main_configuration_t *cfg) __attribute__((noreturn)); +const char * +tor_api_get_provider_version(void) +{ + return "libtorrunner " VERSION; +} + int tor_run_main(const tor_main_configuration_t *cfg) { @@ -98,4 +104,3 @@ child(const tor_main_configuration_t *cfg) abort(); /* Unreachable */ } } - |