2020-12-15 10:53:31 +00:00
|
|
|
// Take a look at the license at the top of the repository in the LICENSE file.
|
2017-08-08 20:37:48 +00:00
|
|
|
|
2023-01-03 18:58:25 +00:00
|
|
|
use std::{ffi::CStr, fmt, mem, ptr};
|
2017-08-08 20:37:48 +00:00
|
|
|
|
2018-07-27 10:36:40 +00:00
|
|
|
use glib::translate::{
|
2022-05-06 19:41:15 +00:00
|
|
|
from_glib, from_glib_full, from_glib_none, FromGlibPtrContainer, IntoGlib, IntoGlibPtr,
|
|
|
|
ToGlibPtr,
|
2018-07-27 10:36:40 +00:00
|
|
|
};
|
2017-08-08 20:37:48 +00:00
|
|
|
|
2023-01-03 18:58:25 +00:00
|
|
|
use crate::{TagList, TagMergeMode, TocEntryType, TocLoopType, TocScope};
|
2017-08-08 20:37:48 +00:00
|
|
|
|
2020-12-20 15:09:22 +00:00
|
|
|
mini_object_wrapper!(Toc, TocRef, ffi::GstToc, || { ffi::gst_toc_get_type() });
|
2017-08-08 20:37:48 +00:00
|
|
|
|
2018-09-28 15:11:46 +00:00
|
|
|
impl Toc {
|
2021-05-19 20:35:47 +00:00
|
|
|
#[doc(alias = "gst_toc_new")]
|
2017-08-08 20:37:48 +00:00
|
|
|
pub fn new(scope: TocScope) -> Self {
|
|
|
|
assert_initialized_main_thread!();
|
2021-04-27 15:15:46 +00:00
|
|
|
unsafe { from_glib_full(ffi::gst_toc_new(scope.into_glib())) }
|
2017-08-08 20:37:48 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl TocRef {
|
2021-05-02 09:41:18 +00:00
|
|
|
#[doc(alias = "get_scope")]
|
2021-05-19 20:35:47 +00:00
|
|
|
#[doc(alias = "gst_toc_get_scope")]
|
2021-04-11 19:39:50 +00:00
|
|
|
pub fn scope(&self) -> TocScope {
|
2020-11-21 13:46:48 +00:00
|
|
|
unsafe { from_glib(ffi::gst_toc_get_scope(self.as_ptr())) }
|
2017-08-08 20:37:48 +00:00
|
|
|
}
|
|
|
|
|
2021-05-19 20:35:47 +00:00
|
|
|
#[doc(alias = "gst_toc_find_entry")]
|
2017-08-08 20:37:48 +00:00
|
|
|
pub fn find_entry(&self, uid: &str) -> Option<TocEntry> {
|
2020-11-21 13:46:48 +00:00
|
|
|
unsafe { from_glib_none(ffi::gst_toc_find_entry(self.as_ptr(), uid.to_glib_none().0)) }
|
2017-08-08 20:37:48 +00:00
|
|
|
}
|
|
|
|
|
2021-05-02 09:41:18 +00:00
|
|
|
#[doc(alias = "get_entries")]
|
2021-05-19 20:35:47 +00:00
|
|
|
#[doc(alias = "gst_toc_get_entries")]
|
2021-04-11 19:39:50 +00:00
|
|
|
pub fn entries(&self) -> Vec<TocEntry> {
|
2020-11-21 13:46:48 +00:00
|
|
|
unsafe { FromGlibPtrContainer::from_glib_none(ffi::gst_toc_get_entries(self.as_ptr())) }
|
2017-08-08 20:37:48 +00:00
|
|
|
}
|
|
|
|
|
2021-05-19 20:35:47 +00:00
|
|
|
#[doc(alias = "gst_toc_append_entry")]
|
2017-08-08 20:37:48 +00:00
|
|
|
pub fn append_entry(&mut self, entry: TocEntry) {
|
|
|
|
unsafe {
|
2022-05-06 19:41:15 +00:00
|
|
|
ffi::gst_toc_append_entry(self.as_mut_ptr(), entry.into_glib_ptr());
|
2017-08-08 20:37:48 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-02 09:41:18 +00:00
|
|
|
#[doc(alias = "get_tags")]
|
2021-05-19 20:35:47 +00:00
|
|
|
#[doc(alias = "gst_toc_get_tags")]
|
2021-04-11 19:39:50 +00:00
|
|
|
pub fn tags(&self) -> Option<TagList> {
|
2020-11-21 13:46:48 +00:00
|
|
|
unsafe { from_glib_none(ffi::gst_toc_get_tags(self.as_ptr())) }
|
2017-08-08 20:37:48 +00:00
|
|
|
}
|
|
|
|
|
2021-05-19 20:35:47 +00:00
|
|
|
#[doc(alias = "gst_toc_set_tags")]
|
2022-10-20 16:39:12 +00:00
|
|
|
pub fn set_tags(&mut self, tag_list: impl Into<Option<TagList>>) {
|
2017-08-08 20:37:48 +00:00
|
|
|
unsafe {
|
2022-10-18 11:16:04 +00:00
|
|
|
ffi::gst_toc_set_tags(
|
|
|
|
self.as_mut_ptr(),
|
|
|
|
tag_list
|
2022-10-20 16:39:12 +00:00
|
|
|
.into()
|
2022-10-18 11:16:04 +00:00
|
|
|
.map(|t| t.into_glib_ptr())
|
|
|
|
.unwrap_or(ptr::null_mut()),
|
|
|
|
);
|
2017-08-08 20:37:48 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-19 20:35:47 +00:00
|
|
|
#[doc(alias = "gst_toc_merge_tags")]
|
2022-10-20 16:39:12 +00:00
|
|
|
pub fn merge_tags<'a>(&mut self, tag_list: impl Into<Option<&'a TagList>>, mode: TagMergeMode) {
|
2017-08-08 20:37:48 +00:00
|
|
|
unsafe {
|
2022-10-18 11:16:04 +00:00
|
|
|
ffi::gst_toc_merge_tags(
|
|
|
|
self.as_mut_ptr(),
|
2022-10-20 16:39:12 +00:00
|
|
|
tag_list
|
|
|
|
.into()
|
|
|
|
.map(|l| l.as_mut_ptr())
|
|
|
|
.unwrap_or(ptr::null_mut()),
|
2022-10-18 11:16:04 +00:00
|
|
|
mode.into_glib(),
|
|
|
|
);
|
2017-08-08 20:37:48 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-19 20:35:47 +00:00
|
|
|
#[doc(alias = "gst_toc_dump")]
|
2017-08-08 20:37:48 +00:00
|
|
|
pub fn dump(&self) {
|
|
|
|
unsafe {
|
2020-11-21 13:46:48 +00:00
|
|
|
ffi::gst_toc_dump(self.as_mut_ptr());
|
2017-08-08 20:37:48 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-29 21:12:46 +00:00
|
|
|
impl fmt::Debug for Toc {
|
|
|
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
|
|
|
TocRef::fmt(self, f)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-02-20 16:57:51 +00:00
|
|
|
impl fmt::Debug for TocRef {
|
|
|
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
|
|
|
f.debug_struct("Toc")
|
2021-04-11 19:39:50 +00:00
|
|
|
.field("scope", &self.scope())
|
|
|
|
.field("tags", &self.tags())
|
|
|
|
.field("entries", &self.entries())
|
2018-02-20 16:57:51 +00:00
|
|
|
.finish()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-20 15:09:22 +00:00
|
|
|
mini_object_wrapper!(TocEntry, TocEntryRef, ffi::GstTocEntry, || {
|
2020-11-21 13:46:48 +00:00
|
|
|
ffi::gst_toc_entry_get_type()
|
2020-06-29 21:12:46 +00:00
|
|
|
});
|
2017-08-08 20:37:48 +00:00
|
|
|
|
2018-09-28 15:11:46 +00:00
|
|
|
impl TocEntry {
|
2021-05-19 20:35:47 +00:00
|
|
|
#[doc(alias = "gst_toc_entry_new")]
|
2017-08-08 20:37:48 +00:00
|
|
|
pub fn new(type_: TocEntryType, uid: &str) -> Self {
|
|
|
|
assert_initialized_main_thread!();
|
|
|
|
unsafe {
|
2020-11-21 13:46:48 +00:00
|
|
|
from_glib_full(ffi::gst_toc_entry_new(
|
2021-04-27 15:15:46 +00:00
|
|
|
type_.into_glib(),
|
2017-08-08 20:37:48 +00:00
|
|
|
uid.to_glib_none().0,
|
|
|
|
))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl TocEntryRef {
|
2021-05-02 09:41:18 +00:00
|
|
|
#[doc(alias = "get_entry_type")]
|
2021-05-19 20:35:47 +00:00
|
|
|
#[doc(alias = "gst_toc_entry_get_entry_type")]
|
2021-04-11 19:39:50 +00:00
|
|
|
pub fn entry_type(&self) -> TocEntryType {
|
2020-11-21 13:46:48 +00:00
|
|
|
unsafe { from_glib(ffi::gst_toc_entry_get_entry_type(self.as_ptr())) }
|
2017-08-08 20:37:48 +00:00
|
|
|
}
|
|
|
|
|
2021-05-02 09:41:18 +00:00
|
|
|
#[doc(alias = "get_uid")]
|
2021-05-19 20:35:47 +00:00
|
|
|
#[doc(alias = "gst_toc_entry_get_uid")]
|
2021-04-11 19:39:50 +00:00
|
|
|
pub fn uid(&self) -> &str {
|
2017-08-08 20:37:48 +00:00
|
|
|
unsafe {
|
2020-11-21 13:46:48 +00:00
|
|
|
CStr::from_ptr(ffi::gst_toc_entry_get_uid(self.as_ptr()))
|
2017-08-08 20:37:48 +00:00
|
|
|
.to_str()
|
|
|
|
.unwrap()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-19 20:35:47 +00:00
|
|
|
#[doc(alias = "gst_toc_entry_append_sub_entry")]
|
2017-08-08 20:37:48 +00:00
|
|
|
pub fn append_sub_entry(&mut self, subentry: TocEntry) {
|
|
|
|
unsafe {
|
2022-05-06 19:41:15 +00:00
|
|
|
ffi::gst_toc_entry_append_sub_entry(self.as_mut_ptr(), subentry.into_glib_ptr());
|
2017-08-08 20:37:48 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-02 09:41:18 +00:00
|
|
|
#[doc(alias = "get_sub_entries")]
|
2021-05-19 20:35:47 +00:00
|
|
|
#[doc(alias = "gst_toc_entry_get_sub_entries")]
|
2021-04-11 19:39:50 +00:00
|
|
|
pub fn sub_entries(&self) -> Vec<TocEntry> {
|
2017-08-08 20:37:48 +00:00
|
|
|
unsafe {
|
2020-11-21 13:46:48 +00:00
|
|
|
FromGlibPtrContainer::from_glib_none(ffi::gst_toc_entry_get_sub_entries(self.as_ptr()))
|
2017-08-08 20:37:48 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-02 09:41:18 +00:00
|
|
|
#[doc(alias = "get_parent")]
|
2021-05-19 20:35:47 +00:00
|
|
|
#[doc(alias = "gst_toc_entry_get_parent")]
|
2021-04-11 19:39:50 +00:00
|
|
|
pub fn parent(&self) -> Option<TocEntry> {
|
2020-11-21 13:46:48 +00:00
|
|
|
unsafe { from_glib_none(ffi::gst_toc_entry_get_parent(self.as_mut_ptr())) }
|
2017-08-08 20:37:48 +00:00
|
|
|
}
|
|
|
|
|
2021-05-02 09:41:18 +00:00
|
|
|
#[doc(alias = "get_start_stop_times")]
|
2021-05-19 20:35:47 +00:00
|
|
|
#[doc(alias = "gst_toc_entry_get_start_stop_times")]
|
2021-04-11 19:39:50 +00:00
|
|
|
pub fn start_stop_times(&self) -> Option<(i64, i64)> {
|
2017-08-08 20:37:48 +00:00
|
|
|
unsafe {
|
2019-07-11 12:34:28 +00:00
|
|
|
let mut start = mem::MaybeUninit::uninit();
|
|
|
|
let mut stop = mem::MaybeUninit::uninit();
|
2017-08-08 20:37:48 +00:00
|
|
|
|
2020-11-21 13:46:48 +00:00
|
|
|
if from_glib(ffi::gst_toc_entry_get_start_stop_times(
|
2017-08-08 20:37:48 +00:00
|
|
|
self.as_ptr(),
|
2019-07-11 12:34:28 +00:00
|
|
|
start.as_mut_ptr(),
|
|
|
|
stop.as_mut_ptr(),
|
2017-08-08 20:37:48 +00:00
|
|
|
)) {
|
2019-07-11 12:34:28 +00:00
|
|
|
Some((start.assume_init(), stop.assume_init()))
|
2017-08-08 20:37:48 +00:00
|
|
|
} else {
|
|
|
|
None
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-19 20:35:47 +00:00
|
|
|
#[doc(alias = "gst_toc_entry_set_start_stop_times")]
|
2017-08-08 20:37:48 +00:00
|
|
|
pub fn set_start_stop_times(&mut self, start: i64, stop: i64) {
|
|
|
|
unsafe {
|
2020-11-21 13:46:48 +00:00
|
|
|
ffi::gst_toc_entry_set_start_stop_times(self.as_mut_ptr(), start, stop);
|
2017-08-08 20:37:48 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-02 09:41:18 +00:00
|
|
|
#[doc(alias = "get_tags")]
|
2021-05-19 20:35:47 +00:00
|
|
|
#[doc(alias = "gst_toc_entry_get_tags")]
|
2021-04-11 19:39:50 +00:00
|
|
|
pub fn tags(&self) -> Option<TagList> {
|
2020-11-21 13:46:48 +00:00
|
|
|
unsafe { from_glib_none(ffi::gst_toc_entry_get_tags(self.as_ptr())) }
|
2017-08-08 20:37:48 +00:00
|
|
|
}
|
|
|
|
|
2021-05-19 20:35:47 +00:00
|
|
|
#[doc(alias = "gst_toc_entry_set_tags")]
|
2022-10-20 16:39:12 +00:00
|
|
|
pub fn set_tags(&mut self, tag_list: impl Into<Option<TagList>>) {
|
2017-08-08 20:37:48 +00:00
|
|
|
unsafe {
|
2022-10-18 11:16:04 +00:00
|
|
|
ffi::gst_toc_entry_set_tags(
|
|
|
|
self.as_mut_ptr(),
|
|
|
|
tag_list
|
2022-10-20 16:39:12 +00:00
|
|
|
.into()
|
2022-10-18 11:16:04 +00:00
|
|
|
.map(|t| t.into_glib_ptr())
|
|
|
|
.unwrap_or(ptr::null_mut()),
|
|
|
|
);
|
2017-08-08 20:37:48 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-19 20:35:47 +00:00
|
|
|
#[doc(alias = "gst_toc_entry_merge_tags")]
|
2022-10-20 16:39:12 +00:00
|
|
|
pub fn merge_tags<'a>(&mut self, tag_list: impl Into<Option<&'a TagList>>, mode: TagMergeMode) {
|
2017-08-08 20:37:48 +00:00
|
|
|
unsafe {
|
2021-04-27 15:15:46 +00:00
|
|
|
ffi::gst_toc_entry_merge_tags(
|
|
|
|
self.as_mut_ptr(),
|
2022-10-20 16:39:12 +00:00
|
|
|
tag_list
|
|
|
|
.into()
|
|
|
|
.map(|l| l.as_mut_ptr())
|
|
|
|
.unwrap_or(ptr::null_mut()),
|
2021-04-27 15:15:46 +00:00
|
|
|
mode.into_glib(),
|
|
|
|
);
|
2017-08-08 20:37:48 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-19 20:35:47 +00:00
|
|
|
#[doc(alias = "gst_toc_entry_is_alternative")]
|
2017-08-08 20:37:48 +00:00
|
|
|
pub fn is_alternative(&self) -> bool {
|
2020-11-21 13:46:48 +00:00
|
|
|
unsafe { from_glib(ffi::gst_toc_entry_is_alternative(self.as_ptr())) }
|
2017-08-08 20:37:48 +00:00
|
|
|
}
|
|
|
|
|
2021-05-19 20:35:47 +00:00
|
|
|
#[doc(alias = "gst_toc_entry_is_sequence")]
|
2017-08-08 20:37:48 +00:00
|
|
|
pub fn is_sequence(&self) -> bool {
|
2020-11-21 13:46:48 +00:00
|
|
|
unsafe { from_glib(ffi::gst_toc_entry_is_sequence(self.as_ptr())) }
|
2017-08-08 20:37:48 +00:00
|
|
|
}
|
|
|
|
|
2021-05-02 09:41:18 +00:00
|
|
|
#[doc(alias = "get_loop")]
|
2021-04-11 19:39:50 +00:00
|
|
|
pub fn loop_(&self) -> Option<(TocLoopType, i32)> {
|
2017-08-08 20:37:48 +00:00
|
|
|
unsafe {
|
2019-07-11 12:34:28 +00:00
|
|
|
let mut loop_type = mem::MaybeUninit::uninit();
|
|
|
|
let mut repeat_count = mem::MaybeUninit::uninit();
|
2020-11-21 13:46:48 +00:00
|
|
|
if from_glib(ffi::gst_toc_entry_get_loop(
|
2017-08-08 20:37:48 +00:00
|
|
|
self.as_ptr(),
|
2019-07-11 12:34:28 +00:00
|
|
|
loop_type.as_mut_ptr(),
|
|
|
|
repeat_count.as_mut_ptr(),
|
2017-08-08 20:37:48 +00:00
|
|
|
)) {
|
2019-07-11 12:34:28 +00:00
|
|
|
Some((
|
|
|
|
from_glib(loop_type.assume_init()),
|
|
|
|
repeat_count.assume_init(),
|
|
|
|
))
|
2017-08-08 20:37:48 +00:00
|
|
|
} else {
|
|
|
|
None
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-19 20:35:47 +00:00
|
|
|
#[doc(alias = "gst_toc_entry_set_loop")]
|
2017-08-08 20:37:48 +00:00
|
|
|
pub fn set_loop(&mut self, loop_type: TocLoopType, repeat_count: i32) {
|
|
|
|
unsafe {
|
2021-04-27 15:15:46 +00:00
|
|
|
ffi::gst_toc_entry_set_loop(self.as_mut_ptr(), loop_type.into_glib(), repeat_count);
|
2017-08-08 20:37:48 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-29 21:12:46 +00:00
|
|
|
impl fmt::Debug for TocEntry {
|
|
|
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
|
|
|
TocEntryRef::fmt(self, f)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-02-20 16:57:51 +00:00
|
|
|
impl fmt::Debug for TocEntryRef {
|
|
|
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
|
|
|
f.debug_struct("TocEntry")
|
2021-04-11 19:39:50 +00:00
|
|
|
.field("entry_type", &self.entry_type())
|
|
|
|
.field("uid", &self.uid())
|
|
|
|
.field("start_stop", &self.start_stop_times())
|
|
|
|
.field("tags", &self.tags())
|
2018-02-20 16:57:51 +00:00
|
|
|
.field("is_alternative", &self.is_alternative())
|
|
|
|
.field("is_sequence", &self.is_sequence())
|
2021-04-11 19:39:50 +00:00
|
|
|
.field("loop", &self.loop_())
|
|
|
|
.field("sub_entries", &self.sub_entries())
|
2018-02-20 16:57:51 +00:00
|
|
|
.finish()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-08-08 20:37:48 +00:00
|
|
|
#[cfg(test)]
|
|
|
|
mod tests {
|
|
|
|
use super::*;
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn test_simple() {
|
2020-11-21 13:46:48 +00:00
|
|
|
crate::init().unwrap();
|
2017-08-08 20:37:48 +00:00
|
|
|
|
|
|
|
// Top level toc entry
|
|
|
|
let mut toc_entry = TocEntry::new(TocEntryType::Chapter, "chapter");
|
|
|
|
toc_entry.get_mut().unwrap().set_start_stop_times(1, 10);
|
|
|
|
|
|
|
|
// Toc sub entry
|
|
|
|
let toc_sub_entry = TocEntry::new(TocEntryType::Angle, "angle");
|
2021-04-11 19:39:50 +00:00
|
|
|
let parent = toc_sub_entry.parent();
|
2017-08-08 20:37:48 +00:00
|
|
|
assert!(parent.is_none());
|
|
|
|
|
|
|
|
// Append sub entry
|
|
|
|
toc_entry.get_mut().unwrap().append_sub_entry(toc_sub_entry);
|
|
|
|
|
|
|
|
// Toc
|
|
|
|
let mut toc = Toc::new(TocScope::Global);
|
2021-04-11 19:39:50 +00:00
|
|
|
assert_eq!(toc.scope(), TocScope::Global);
|
2017-08-08 20:37:48 +00:00
|
|
|
|
|
|
|
// Append toc entry
|
|
|
|
toc.get_mut().unwrap().append_entry(toc_entry);
|
2021-04-11 19:39:50 +00:00
|
|
|
assert_eq!(toc.scope(), TocScope::Global);
|
2017-08-08 20:37:48 +00:00
|
|
|
|
|
|
|
// Check toc entries
|
2021-04-11 19:39:50 +00:00
|
|
|
let toc_entries = toc.entries();
|
2017-08-08 20:37:48 +00:00
|
|
|
assert_eq!(toc_entries.len(), 1);
|
|
|
|
|
|
|
|
let toc_parent_entry = &toc_entries[0];
|
2021-04-11 19:39:50 +00:00
|
|
|
assert_eq!(toc_parent_entry.entry_type(), TocEntryType::Chapter);
|
|
|
|
assert_eq!(toc_parent_entry.uid(), "chapter");
|
|
|
|
let start_stop_times = toc_parent_entry.start_stop_times();
|
2017-08-08 20:37:48 +00:00
|
|
|
assert!(start_stop_times.is_some());
|
|
|
|
assert_eq!(start_stop_times.unwrap(), (1, 10));
|
|
|
|
|
|
|
|
// Check sub entry
|
2021-04-11 19:39:50 +00:00
|
|
|
let toc_sub_entries = toc_parent_entry.sub_entries();
|
2017-08-08 20:37:48 +00:00
|
|
|
assert_eq!(toc_sub_entries.len(), 1);
|
|
|
|
let toc_sub_entry = &toc_sub_entries[0];
|
2021-04-11 19:39:50 +00:00
|
|
|
assert_eq!(toc_sub_entry.entry_type(), TocEntryType::Angle);
|
|
|
|
let parent = toc_sub_entry.parent();
|
2017-08-08 20:37:48 +00:00
|
|
|
assert!(parent.is_some());
|
2021-04-11 19:39:50 +00:00
|
|
|
assert_eq!(parent.unwrap().entry_type(), TocEntryType::Chapter);
|
2017-08-08 20:37:48 +00:00
|
|
|
}
|
|
|
|
}
|