diff --git a/CMakeLists.txt b/CMakeLists.txt index ca06394..6fff7ce 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required (VERSION 3.7) project (mastodon-cpp - VERSION 0.5.1 + VERSION 0.6.0 LANGUAGES CXX ) diff --git a/src/mastodon-cpp.cpp b/src/mastodon-cpp.cpp index f78a0e8..9fb7ac3 100644 --- a/src/mastodon-cpp.cpp +++ b/src/mastodon-cpp.cpp @@ -49,6 +49,11 @@ const string API::get_useragent() const return _useragent; } +const string API::get_instance() const +{ + return _instance; +} + const string API::maptostr(const parametermap &map, const bool &firstparam) { string result = ""; diff --git a/src/mastodon-cpp.hpp b/src/mastodon-cpp.hpp index 56fd217..b9ad0e0 100644 --- a/src/mastodon-cpp.hpp +++ b/src/mastodon-cpp.hpp @@ -234,6 +234,13 @@ public: */ const std::string get_useragent() const; + /*! + * @brief Returns the instance. + * + * @return The instance. + */ + const std::string get_instance() const; + /*! * @brief Percent-encodes a string. This is done automatically, unless you * make a custom request.