|
c2pa-cpp
C++ API for the C2PA SDK
|
Result of ContextBuilder::release(): the raw native builder handle paired with the heap-owned progress callback (if any). More...
#include <c2pa.hpp>
Public Attributes | |
| C2paContextBuilder * | builder |
| std::unique_ptr< ProgressCallbackFunc > | callback_owner |
Result of ContextBuilder::release(): the raw native builder handle paired with the heap-owned progress callback (if any).
The caller takes joint ownership. If callback_owner is non-null, the native side stores a raw pointer into it and will invoke the callback until the native context built from builder is freed. Therefore callback_owner must remain alive at least until the native context returned by c2pa_context_builder_build(builder) is freed via c2pa_free(). Release order: native context first, then callback_owner goes out of scope.
| C2paContextBuilder* c2pa::Context::ContextBuilder::ReleasedBuilder::builder |
| std::unique_ptr<ProgressCallbackFunc> c2pa::Context::ContextBuilder::ReleasedBuilder::callback_owner |