mastodont-c/include/mastodont_application.h
me@ow.nekobit.net 2ffe977836 Fix query string generator
FossilOrigin-Name: 7bc838fbb628e77c59da85f238f6b2668a2d5caa82dcfcaeadc0442be9674f3f
2022-02-15 15:39:34 +00:00

44 lines
1.2 KiB
C

/*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option) any
* later version.
*
* 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 Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef MASTODONT_APPLICATION
#define MASTODONT_APPLICATION
#include "mastodont_types.h"
#include <cjson/cJSON.h>
#include <mastodont_fetch.h>
/* Status: Complete */
struct mstdnt_application
{
char* name;
char* website;
char* vapid_key;
};
struct mstdnt_app_register_args
{
char* client_name;
char* redirect_uris;
char* scopes;
char* website;
};
int mastodont_register_app(mastodont_t* data,
struct mstdnt_app_register_args* args,
struct mstdnt_storage* storage);
#endif /* MASTODONT_ACCOUNT */