mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-28 17:04:58 -04:00
Fix windows compile due to rsversion JSON API
This commit is contained in:
parent
6bae8237e1
commit
5bf8792bc5
7 changed files with 37 additions and 80 deletions
|
@ -79,35 +79,3 @@ constexpr auto RS_HUMAN_READABLE_VERSION =
|
|||
RS_PRIVATE_STRINGIFY(RS_MAJOR_VERSION) "." \
|
||||
RS_PRIVATE_STRINGIFY(RS_MINOR_VERSION) "." \
|
||||
RS_PRIVATE_STRINGIFY(RS_MINI_VERSION) RS_EXTRA_VERSION;
|
||||
|
||||
|
||||
#include <stdint.h>
|
||||
#include <string>
|
||||
|
||||
/**
|
||||
* Helper to expose version information to JSON API.
|
||||
* From C++ you should use directly the macro and constants defined upstair
|
||||
* @jsonapi{development}
|
||||
*/
|
||||
class RsVersion
|
||||
{
|
||||
public:
|
||||
/**
|
||||
* @brief Write version information to given paramethers
|
||||
* @jsonapi{development,unauthenticated}
|
||||
* @param[out] major storage
|
||||
* @param[out] minor storage
|
||||
* @param[out] mini storage
|
||||
* @param[out] extra storage
|
||||
* @param[out] human storage
|
||||
*/
|
||||
static void version( uint32_t& major, uint32_t& minor, uint32_t& mini,
|
||||
std::string& extra, std::string& human );
|
||||
};
|
||||
|
||||
/**
|
||||
* Pointer to global instance of RsVersion, for the sake of JSON API, from C++
|
||||
* you can use directly the macro and constants defined upstair
|
||||
* @jsonapi{development}
|
||||
*/
|
||||
extern RsVersion* rsVersion;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue