30 #ifndef INCLUDED_PluginRegistrationC_h_GUID_C019DFA9_5B54_4791_B0A4_040EA20501BA
31 #define INCLUDED_PluginRegistrationC_h_GUID_C019DFA9_5B54_4791_B0A4_040EA20501BA
34 #include <osvr/PluginKit/Export.h>
41 #include <libfunctionality/PluginInterface.h>
67 #define OSVR_PLUGIN(PLUGIN_NAME) LIBFUNC_PLUGIN(PLUGIN_NAME, ctx)
93 OSVR_IN_OPT
void *userData OSVR_CPP_ONLY(= NULL)) OSVR_FUNC_NONNULL((1));
110 OSVR_IN_OPT
void *userData OSVR_CPP_ONLY(= NULL))
111 OSVR_FUNC_NONNULL((1, 2, 3));
144 OSVR_INOUT_PTR
void *pluginData) OSVR_FUNC_NONNULL((1, 2, 3));
154 OSVR_PLUGINKIT_EXPORT
void
157 OSVR_FUNC_NONNULL((1, 3));
OSVR_ReturnCode osvrPluginRegisterHardwareDetectCallback(OSVR_PluginRegContext ctx, OSVR_HardwareDetectCallback detectCallback, void *userData=NULL)
Register a callback in your plugin to be notified when hardware should be detected again...
void(* OSVR_PluginDataDeleteCallback)(void *pluginData)
Function type of a Plugin Data Delete callback.
Header declaring plugin callback types.
OSVR_ReturnCode osvrRegisterDriverInstantiationCallback(OSVR_PluginRegContext ctx, const char *name, OSVR_DriverInstantiationCallback cb, void *userData=NULL)
Register an instantiation callback (constructor) for a driver type. The given constructor may be call...
OSVR_ReturnCode(* OSVR_HardwareDetectCallback)(OSVR_PluginRegContext ctx, void *userData)
Function type of a Hardware Detect callback.
void osvrPluginLog(OSVR_PluginRegContext ctx, OSVR_LogLevel severity, const char *message)
Log a message to the plugin's log channel.
OSVR_ReturnCode(* OSVR_DriverInstantiationCallback)(OSVR_PluginRegContext ctx, const char *params, void *userData)
Function type of a driver instantiation callback.
OSVR_LogLevel
Log message severity levels.
OSVR_ReturnCode osvrPluginRegisterDataWithDeleteCallback(OSVR_PluginRegContext ctx, OSVR_PluginDataDeleteCallback deleteCallback, void *pluginData)
Register plugin data along with an appropriate deleter callback.
Header containing macros for source-level annotation.
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...
Header shared between multiple C API headers.