Renamed send_toot to send_post, made send_toot an alias for send_post

This commit is contained in:
tastytea 2018-07-14 10:36:34 +02:00
parent 81efd8bc1c
commit 2565ff8d15
Signed by: tastytea
GPG Key ID: 59346E0EA35C67E5
3 changed files with 13 additions and 1 deletions

View File

@ -1,6 +1,6 @@
cmake_minimum_required (VERSION 3.7) cmake_minimum_required (VERSION 3.7)
project (mastodon-cpp project (mastodon-cpp
VERSION 0.18.0 VERSION 0.18.1
LANGUAGES CXX LANGUAGES CXX
) )

View File

@ -285,6 +285,13 @@ public:
* *
* @return The new Easy::Status * @return The new Easy::Status
* *
* @since 0.18.1
*/
const Status send_post(const Status &status, uint_fast16_t error = 0);
/*!
* @brief Alias for send_post()
*
* @since 0.17.0 * @since 0.17.0
*/ */
const Status send_toot(const Status &status, uint_fast16_t error = 0); const Status send_toot(const Status &status, uint_fast16_t error = 0);

View File

@ -22,6 +22,11 @@
using namespace Mastodon; using namespace Mastodon;
const Easy::Status Easy::send_toot(const Status &status, uint_fast16_t error) const Easy::Status Easy::send_toot(const Status &status, uint_fast16_t error)
{
return send_post(status, error);
}
const Easy::Status Easy::send_post(const Status &status, uint_fast16_t error)
{ {
API::parametermap parameters; API::parametermap parameters;
string answer; string answer;