[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #26947 [Core Tor/Tor]: Add function for reporting the tor version in tor_api.h



#26947: Add function for reporting the tor version in tor_api.h
--------------------------+------------------------
 Reporter:  hellais       |          Owner:  (none)
     Type:  enhancement   |         Status:  new
 Priority:  Medium        |      Milestone:
Component:  Core Tor/Tor  |        Version:
 Severity:  Normal        |     Resolution:
 Keywords:                |  Actual Points:
Parent ID:  #25510        |         Points:
 Reviewer:                |        Sponsor:
--------------------------+------------------------
Description changed by hellais:

Old description:

> As a user of libtor_api it would be useful for me to be able to obtain
> the version of tor without having to call it's main function.
>
> The function could look something like:
>
> {{{
> const char * tor_version()
> {
>     return tor_version_string;
> }
> }}}

New description:

 As a user of libtor_api it would be useful for me to be able to obtain the
 version of tor without having to call it's main function.

 The function could look something like:

 {{{
 const char * tor_version()
 {
     return tor_version_string;
 }
 }}}

 This would be very useful for a user of the library that wishes to check
 if they have linked to the right tor version (or implement some sanity
 checks) without having to start tor and then speak to it on the control
 port (therefore paying some significant overhead).

--

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/26947#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs