- oakundo::global: the process-global undo stack, grouping and a command observer API; facade undo.rs becomes a thin forwarder - oakstorage::writethrough: the binding table, snapshot thread, flush and config resolution; it subscribes to oakundo's observer itself - the remaining non-forwarding facade logic (TaskMeta, effect chains, timeline composites, RendererBox, exporter path) is documented as facade-owned with reasons - facade exports unchanged; full suite stays green (the one render_manager_not_initialized failure is pre-existing on the base commit)
38 lines
1.4 KiB
Rust
38 lines
1.4 KiB
Rust
// Oak Video Editor - Non-Linear Video Editor
|
|
// Copyright (C) 2026 Oak Team
|
|
//
|
|
// 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.
|
|
//
|
|
// This program is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
//! # oakundo — the undo/redo history module (Rust)
|
|
//!
|
|
//! Reimplements the C++ oakundo module behind its frozen C ABI
|
|
//! (`include/undo/*.h`). See README.md for the architectural mapping —
|
|
//! most notably the **vtable-command pattern**: C++ subclassing of
|
|
//! `olive::UndoCommand` becomes a callback table + `userdata` pointer.
|
|
//!
|
|
//! ## FFI discipline
|
|
//!
|
|
//! Identical to the oaknode/oakcodec crates: every export goes through
|
|
//! [`handle::guard*`], handles are opaque refcounted boxes, shared
|
|
//! state behind `Mutex`.
|
|
|
|
#![deny(unsafe_op_in_unsafe_fn)]
|
|
#![warn(missing_docs)]
|
|
|
|
pub mod error;
|
|
pub mod global;
|
|
pub mod handle;
|
|
pub mod undocommand;
|
|
pub mod undostack;
|