UX SwapUnit adapter over ScriptedUiSession. More...
#include <pulp/format/reload/live_swap_transaction.hpp>#include <pulp/view/scripted_ui.hpp>#include <filesystem>#include <string>#include <utility>Go to the source code of this file.
Classes | |
| class | pulp::format::reload::ScriptedUiSwapUnit |
Namespaces | |
| namespace | pulp |
| namespace | pulp::format |
| What the product grants a device: the quota table indexed by capability tier and live thermal state. | |
| namespace | pulp::format::reload |
UX SwapUnit adapter over ScriptedUiSession.
Adapts a scripted-UI reload to the SwapUnit contract so a content pack's UI swap composes with a DSP swap (DspReloadSwapUnit) under apply_live_swap. Lives in the format layer because it bridges the SwapUnit contract (format) to ScriptedUiSession (view), and format depends on view (not the reverse). Kept in its OWN header so DSP-only users of reload_swap_units.hpp don't pull in view.
Ordering: the UX unit goes FIRST in a UX+DSP transaction (cheap to re-apply), so if the DSP stage (last) fails, this unit's rollback re-applies the previous script. reload_from() is itself last-good (a bad script keeps the current UI), so apply is atomic; rollback re-points at the pre-transaction bundle.