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.
Definition: namespace_osvr.dox:3
void registerDriverInstantiationCallback(const char driverName[], T functor)
Register a driver instantiation callback.
Definition: PluginKit.h:83
C++ wrapper class for the opaque plugin context.
Definition: PluginKit.h:59
void registerHardwareDetectCallback(OSVR_PluginRegContext ctx, T functor)
Registers a function object to be called when the core requests a hardware detection.
Definition: PluginRegistration.h:163
void log(OSVR_LogLevel severity, const char *message)
Log a message to the plugin-specific channel.
Definition: PluginKit.h:101
void registerHardwareDetectCallback(T functor)
Register a hardware detect callback.
Definition: PluginKit.h:70
T * registerObjectForDeletion(OSVR_PluginRegContext ctx, T *obj)
Registers an object to be destroyed with delete when the plugin is unloaded.
Definition: PluginRegistration.h:72
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...
Definition: PluginRegistration.h:190
OSVR_LogLevel
Log message severity levels.
Definition: LogLevelC.h:44
PluginContext(OSVR_PluginRegContext ctx)
Constructor of the context wrapper object.
Definition: PluginKit.h:62
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...
Definition: PluginRegContextC.h:47
T * registerObjectForDeletion(T *obj)
Register the given object (assumed to be deletable by delete) to be deleted on plugin unload...
Definition: PluginKit.h:93
Header providing C++ interface wrappers around functionality in DeviceInterfaceC.h.