aboutsummaryrefslogtreecommitdiff
path: root/src/feature/api
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-08-08 18:10:28 -0400
committerNick Mathewson <nickm@torproject.org>2018-08-08 18:10:28 -0400
commitdf444e482bc083b4c4239b8fb4d532ebffaae5a8 (patch)
tree7f1420bd619a46642f3e53a9bfdaec87e8826088 /src/feature/api
parent159141a8c6e8ae6dc60110f897a931bf0a63e0b1 (diff)
downloadtor-df444e482bc083b4c4239b8fb4d532ebffaae5a8.tar.gz
tor-df444e482bc083b4c4239b8fb4d532ebffaae5a8.zip
Provide examples of tor_api_get_provider_version() output
At the same time, sternly warn any person thinking about relying on any particular format too strictly. If you do this, and your program breaks, it is your bug, not mine.
Diffstat (limited to 'src/feature/api')
-rw-r--r--src/feature/api/tor_api.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/feature/api/tor_api.h b/src/feature/api/tor_api.h
index a08606ee3c..ad2d3166c1 100644
--- a/src/feature/api/tor_api.h
+++ b/src/feature/api/tor_api.h
@@ -65,6 +65,12 @@ void tor_main_configuration_free(tor_main_configuration_t *cfg);
* libtorrunner, not the version of Tor that it's invoking for you.
*
* Added in Tor 0.3.5.1-alpha.
+ *
+ * Example return values include "tor 0.3.5.1-alpha" when linked directly
+ * against tor, and "libtorrunner 0.3.5.1-alpha" when linked against
+ * libtorrunner while it is invoking an arbitrary version of Tor. HOWEVER,
+ * the user MUST NOT depend on any particular format or contents of this
+ * string: there may be other things that implement Tor in the future.
**/
const char *tor_api_get_provider_version(void);