Add enum for API calls.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
tastytea 2020-01-03 12:45:55 +01:00
parent 4c557aae6e
commit ed3111eb9e
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 38 additions and 0 deletions

37
include/api.hpp Normal file
View File

@ -0,0 +1,37 @@
/* This file is part of mastodonpp.
* Copyright © 2020 tastytea <tastytea@tastytea.de>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, version 3.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef MASTODONPP_API_HPP
#define MASTODONPP_API_HPP
namespace mastodonpp::API
{
/*!
* @brief A list of all v1 API calls.
*
* The original `/` are substituted by `_`.
*
* @since 0.1.0
*/
enum class v1
{
instance
};
} // namespace mastodonpp::API
#endif // MASTODONPP_API_HPP

View File

@ -17,6 +17,7 @@
#ifndef MASTODONPP_HPP
#define MASTODONPP_HPP
#include "api.hpp"
#include "instance.hpp"
#include "return_types.hpp"