/* * RatFE - Lightweight frontend for Pleroma * Copyright (C) 2022 Nekobit * * 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, 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 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 . */ #ifndef STATUS_H #define STATUS_H #include int try_post_status(mastodont_t* api); int try_interact_status(mastodont_t* api, char* id); // HTML Builders char* construct_post_box(char* reply_id, char* default_content, int* size); char* construct_status(struct mstdnt_status* status, int* size); char* construct_statuses(struct mstdnt_status* statuses, size_t size, size_t* ret_size); // Status frontends void status_view(mastodont_t* api, char** data, size_t data_size); void status_reply(mastodont_t* api, char** data, size_t data_size); void status_interact(mastodont_t* api, char** data, size_t data_size); // Above wraps to the below function void content_status(mastodont_t* api, char** data, size_t data_size, int is_reply); #endif // STATUS_H