qualcomm/qbox
Loading...
Searching...
No Matches
PluginHandle Struct Reference

Stable userdata passed to every plugin callback. More...

#include <libqemu-plugin.h>

Collaboration diagram for PluginHandle:

Public Attributes

LibQemuPlugin * self { nullptr }
std::atomic< bool > alive { true }
std::atomic< int > refcount { 0 }

Detailed Description

Stable userdata passed to every plugin callback.

Heap-allocated when the plugin is constructed and intentionally leaked when it is destroyed. Outliving the plugin lets stale callbacks observe alive == false and exit early without dereferencing freed memory.


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