Ah, within the same process.
You don't need to serialize for that.

The plugin host API could have a method that the plugin can call with the pointer or the plugin could emit the object via signal.

Cheers,
_