From 38302e986588ebff63c9c9f4af1426940c876fc9 Mon Sep 17 00:00:00 2001 From: icannotttt <141535655+icannotttt@users.noreply.github.com> Date: Thu, 29 Jan 2026 23:57:12 +0800 Subject: [PATCH] Add ChapterData struct to XtcTypes.h Added new struct ChapterData with chapterIndex, startPage, and shortTitle fields. --- lib/Xtc/Xtc/XtcTypes.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Xtc/Xtc/XtcTypes.h b/lib/Xtc/Xtc/XtcTypes.h index de613552..cff832cb 100644 --- a/lib/Xtc/Xtc/XtcTypes.h +++ b/lib/Xtc/Xtc/XtcTypes.h @@ -101,11 +101,11 @@ struct ChapterInfo { uint16_t startPage; uint16_t endPage; }; - +//new struct struct ChapterData { - int chapterIndex; // 章节序号 - uint16_t startPage; // 字节偏移量 - char shortTitle[64]; // 截取后的标题,char数组格式 + int chapterIndex; + uint16_t startPage; + char shortTitle[64]; }; // Error codes