Add enum for API calls.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
4c557aae6e
commit
ed3111eb9e
37
include/api.hpp
Normal file
37
include/api.hpp
Normal 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
|
|
@ -17,6 +17,7 @@
|
|||
#ifndef MASTODONPP_HPP
|
||||
#define MASTODONPP_HPP
|
||||
|
||||
#include "api.hpp"
|
||||
#include "instance.hpp"
|
||||
#include "return_types.hpp"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user