Skip to content

feat: add V3 API with state-aware callback support#29

Open
kolebynov wants to merge 9 commits into
PrismaUI-SKSE:devfrom
kolebynov:callbacks-with-state
Open

feat: add V3 API with state-aware callback support#29
kolebynov wants to merge 9 commits into
PrismaUI-SKSE:devfrom
kolebynov:callbacks-with-state

Conversation

@kolebynov

Copy link
Copy Markdown

Summary

  • Adds IVPrismaUI3 and InterfaceVersion::V3 to expose state-aware callback variants.
  • Adds V2-suffixed callback APIs for DOM ready, JS invoke results, JS listeners, and console messages that pass
    caller-owned void* callbackState back unchanged.
  • Updates RequestPluginAPI to return the V3 interface while preserving V1/V2 support.
  • Refactors internal callback plumbing to use shared internal helpers and std::move_only_function for callback
    storage and dispatch.
  • Simplifies the CommonLibSSE CMake build directory setup.

Notes

  • callbackState ownership and lifetime stay with the caller.

Comment thread cmake/commonlibsse.cmake
# Always build CommonLibSSE in Release mode to disable assertions and enable optimizations
set(CMAKE_BUILD_TYPE "Release")
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
add_definitions(-DNDEBUG)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might want to be sure no there are no commonlib asserts that can get hit

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll re-check

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should leave assertions for debug builds. They can point to potential bugs. In release mode they'll be disabled.

@StarkMP StarkMP added enhancement New feature or request testing labels May 10, 2026
@StarkMP StarkMP changed the title Add V3 API with state-aware callback support feat: add V3 API with state-aware callback support May 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants