createUserInteractionHandle

fnUserInteractionHandle createUserInteractionHandle(UserInteraction ui) @trusted

Creates a UserInteractionHandle from a D UserInteraction interface.

This bridges the high-level D interface to libdar's C callback mechanism, allowing custom UserInteraction implementations to be used with archive operations.

Parameters

uithe UserInteraction implementation to wrap

Returns

A UserInteractionHandle that delegates to the provided interface.

Throws

DarException if creation fails.

Note

The UserInteraction object must remain valid for the lifetime of

the returned handle. The handle holds a reference to prevent GC collection.

Example:

// Create a custom or console-based interaction
auto consoleUI = BasicConsoleInteraction.standard();

// Bridge it to a low-level handle
auto handle = createUserInteractionHandle(consoleUI);

// Use with archive operations (when supported)