Header providing C++ interface wrappers around functionality in PluginRegistrationC.h. More...
#include <osvr/PluginKit/PluginRegistrationC.h>
#include <osvr/Util/GenericDeleter.h>
#include <osvr/Util/GenericCaller.h>
#include <osvr/Util/BoostIsCopyConstructible.h>
#include <boost/utility/enable_if.hpp>
#include <boost/type_traits/is_pointer.hpp>
#include <boost/type_traits/remove_pointer.hpp>
#include <boost/static_assert.hpp>
#include <cstddef>
#include <string>
#include <stdexcept>
Go to the source code of this file.
Namespaces | |
osvr | |
The main namespace for all C++ elements of the framework, internal and external. | |
osvr::pluginkit | |
Contains C++ header-only wrappers for the PluginKit C API.Use of these wrappers is optional: they duplicate functionality found in the C API as they are implemented in headers on top of the C API. However, they also provide a much cleaner, low-boilerplate interface for the most common operations. | |
Functions | |
template<typename T > | |
T * | osvr::pluginkit::registerObjectForDeletion (OSVR_PluginRegContext ctx, T *obj) |
Registers an object to be destroyed with delete when the plugin is unloaded. More... | |
template<typename T > | |
void | osvr::pluginkit::registerHardwareDetectCallback (OSVR_PluginRegContext ctx, T functor) |
Registers a function object to be called when the core requests a hardware detection. More... | |
template<typename T > | |
void | osvr::pluginkit::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 parameters. More... | |
Header providing C++ interface wrappers around functionality in PluginRegistrationC.h.
Definition in file PluginRegistration.h.