--- lbbs/include/article_post.h 2025/06/12 12:14:28 1.1 +++ lbbs/include/article_post.h 2025/11/04 14:58:55 1.5 @@ -1,32 +1,18 @@ -/*************************************************************************** - article_post.h - description - ------------------- - copyright : (C) 2004-2025 by Leaflet - email : leaflet@leafok.com - ***************************************************************************/ - -/*************************************************************************** - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 3 of the License, or * - * (at your option) any later version. * - * * - ***************************************************************************/ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* + * article_post + * - user interactive feature to post / modify / reply article + * + * Copyright (C) 2004-2025 Leaflet + */ #ifndef _ARTICLE_POST_H_ #define _ARTICLE_POST_H_ #include "section_list.h" -enum article_post_type_t -{ - ARTICLE_POST_NEW = 0, - ARTICLE_POST_EDIT = 1, - ARTICLE_POST_REPLY = 2, -}; -typedef enum article_post_type_t ARTICLE_POST_TYPE; - -extern int article_post(SECTION_LIST *p_section, ARTICLE *p_article, ARTICLE_POST_TYPE type); +extern int article_post(const SECTION_LIST *p_section, ARTICLE *p_article_new); +extern int article_modify(const SECTION_LIST *p_section, const ARTICLE *p_article, ARTICLE *p_article_new); +extern int article_reply(const SECTION_LIST *p_section, const ARTICLE *p_article, ARTICLE *p_article_new); #endif //_ARTICLE_POST_H_