| 1 |
/*************************************************************************** |
/* SPDX-License-Identifier: GPL-3.0-or-later */ |
| 2 |
article_post.h - description |
/* |
| 3 |
------------------- |
* article_post |
| 4 |
copyright : (C) 2004-2025 by Leaflet |
* - user interactive feature to post / modify / reply article |
| 5 |
email : leaflet@leafok.com |
* |
| 6 |
***************************************************************************/ |
* Copyright (C) 2004-2026 Leaflet <leaflet@leafok.com> |
| 7 |
|
*/ |
|
/*************************************************************************** |
|
|
* * |
|
|
* 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. * |
|
|
* * |
|
|
***************************************************************************/ |
|
| 8 |
|
|
| 9 |
#ifndef _ARTICLE_POST_H_ |
#ifndef _ARTICLE_POST_H_ |
| 10 |
#define _ARTICLE_POST_H_ |
#define _ARTICLE_POST_H_ |
| 11 |
|
|
| 12 |
#include "section_list.h" |
#include "section_list.h" |
| 13 |
|
|
| 14 |
enum article_post_type_t |
extern int article_post(const SECTION_LIST *p_section, ARTICLE *p_article_new); |
| 15 |
{ |
extern int article_modify(const SECTION_LIST *p_section, const ARTICLE *p_article, ARTICLE *p_article_new); |
| 16 |
ARTICLE_POST_NEW = 0, |
extern int article_reply(const SECTION_LIST *p_section, const ARTICLE *p_article, ARTICLE *p_article_new); |
|
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); |
|
| 17 |
|
|
| 18 |
#endif //_ARTICLE_POST_H_ |
#endif //_ARTICLE_POST_H_ |