Add ChapterData struct to XtcTypes.h

Added new struct ChapterData with chapterIndex, startPage, and shortTitle fields.
This commit is contained in:
icannotttt 2026-01-29 23:57:12 +08:00 committed by GitHub
parent 9b4410cbc8
commit 38302e9865
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -101,11 +101,11 @@ struct ChapterInfo {
uint16_t startPage; uint16_t startPage;
uint16_t endPage; uint16_t endPage;
}; };
//new struct
struct ChapterData { struct ChapterData {
int chapterIndex; // 章节序号 int chapterIndex;
uint16_t startPage; // 字节偏移量 uint16_t startPage;
char shortTitle[64]; // 截取后的标题char数组格式 char shortTitle[64];
}; };
// Error codes // Error codes