--- lbbs/include/article_cache.h 2025/06/21 06:52:24 1.8 +++ lbbs/include/article_cache.h 2025/11/05 03:17:12 1.11 @@ -1,18 +1,10 @@ -/*************************************************************************** - article_cache.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_cache + * - convert article content from DB to local cache with LML conversion and line offset index + * + * Copyright (C) 2004-2025 Leaflet + */ #ifndef _ARTICLE_CACHE_H_ #define _ARTICLE_CACHE_H_ @@ -21,6 +13,11 @@ #include "section_list.h" #include "str_process.h" +enum article_cache_constant_t +{ + ARTICLE_CONTENT_MAX_LEN = 1024 * 1024 * 4, // 4MB +}; + struct article_cache_t { void *p_mmap;