--- lbbs/include/article_view_log.h 2025/06/07 10:00:10 1.3 +++ lbbs/include/article_view_log.h 2025/11/04 14:58:55 1.6 @@ -1,32 +1,24 @@ -/*************************************************************************** - article_view_log.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_view_log + * - data persistence and query of article view log + * + * Copyright (C) 2004-2025 Leaflet + */ #ifndef _ARTICLE_VIEW_LOG_H_ #define _ARTICLE_VIEW_LOG_H_ #include -#define MAX_AID_INC_CNT 1000 +#define MAX_VIEWED_AID_INC_CNT 1000 struct article_view_log_t { int uid; int32_t *aid_base; int aid_base_cnt; - int32_t aid_inc[MAX_AID_INC_CNT]; + int32_t aid_inc[MAX_VIEWED_AID_INC_CNT]; int aid_inc_cnt; }; typedef struct article_view_log_t ARTICLE_VIEW_LOG;