c2pa-cpp
C++ API for the C2PA SDK
Loading...
Searching...
No Matches
c2pa::Context::ContextBuilder::ReleasedBuilder Struct Reference

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< ProgressCallbackFunccallback_owner
 

Detailed Description

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.

Member Data Documentation

◆ builder

C2paContextBuilder* c2pa::Context::ContextBuilder::ReleasedBuilder::builder

◆ callback_owner

std::unique_ptr<ProgressCallbackFunc> c2pa::Context::ContextBuilder::ReleasedBuilder::callback_owner

The documentation for this struct was generated from the following file: