25 #ifndef INCLUDED_PluginKit_h_GUID_1470B278_99B7_4F84_F99B_34FD9B817C89
26 #define INCLUDED_PluginKit_h_GUID_1470B278_99B7_4F84_F99B_34FD9B817C89
86 m_ctx, driverName, functor);
102 ::osvr::pluginkit::log(m_ctx, severity, message);
112 #endif // INCLUDED_PluginKit_h_GUID_1470B278_99B7_4F84_F99B_34FD9B817C89
Header providing C++ interface wrappers around functionality in PluginRegistrationC.h.
The main namespace for all C++ elements of the framework, internal and external.
void registerDriverInstantiationCallback(const char driverName[], T functor)
Register a driver instantiation callback.
C++ wrapper class for the opaque plugin context.
void registerHardwareDetectCallback(OSVR_PluginRegContext ctx, T functor)
Registers a function object to be called when the core requests a hardware detection.
void log(OSVR_LogLevel severity, const char *message)
Log a message to the plugin-specific channel.
void registerHardwareDetectCallback(T functor)
Register a hardware detect callback.
T * registerObjectForDeletion(OSVR_PluginRegContext ctx, T *obj)
Registers an object to be destroyed with delete when the plugin is unloaded.
void registerDriverInstantiationCallback(OSVR_PluginRegContext ctx, const char driverName[], T functor)
Registers a function object to be called when the server is told to instantiate a driver by name with...
OSVR_LogLevel
Log message severity levels.
PluginContext(OSVR_PluginRegContext ctx)
Constructor of the context wrapper object.
OSVR_EXTERN_C_BEGIN typedef void * OSVR_PluginRegContext
A context pointer passed in to your plugin's entry point and other locations of control flow transfer...
T * registerObjectForDeletion(T *obj)
Register the given object (assumed to be deletable by delete) to be deleted on plugin unload...
Header providing C++ interface wrappers around functionality in DeviceInterfaceC.h.