OSVR-Core
PluginCallbackTypesC.h
Go to the documentation of this file.
1 
13 /*
14 // Copyright 2014 Sensics, Inc.
15 //
16 // Licensed under the Apache License, Version 2.0 (the "License");
17 // you may not use this file except in compliance with the License.
18 // You may obtain a copy of the License at
19 //
20 // http://www.apache.org/licenses/LICENSE-2.0
21 //
22 // Unless required by applicable law or agreed to in writing, software
23 // distributed under the License is distributed on an "AS IS" BASIS,
24 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
25 // See the License for the specific language governing permissions and
26 // limitations under the License.
27 */
28 
29 #ifndef INCLUDED_PluginCallbackTypesC_h_GUID_40B038A2_56DB_419D_BD23_DB1747FE2F10
30 #define INCLUDED_PluginCallbackTypesC_h_GUID_40B038A2_56DB_419D_BD23_DB1747FE2F10
31 
32 /* Internal Includes */
33 #include <osvr/Util/ReturnCodesC.h>
35 
36 /* Library/third-party includes */
37 /* none */
38 
39 /* Standard includes */
40 /* none */
41 
42 OSVR_EXTERN_C_BEGIN
43 
48 typedef void (*OSVR_PluginDataDeleteCallback)(void *pluginData);
49 
51 typedef OSVR_ReturnCode (*OSVR_HardwareDetectCallback)(
52  OSVR_PluginRegContext ctx, void *userData);
53 
55 typedef OSVR_ReturnCode (*OSVR_DriverInstantiationCallback)(
56  OSVR_PluginRegContext ctx, const char *params, void *userData);
57 
60 OSVR_EXTERN_C_END
61 
62 #endif
Header declaring a type and values for simple C return codes.
void(* OSVR_PluginDataDeleteCallback)(void *pluginData)
Function type of a Plugin Data Delete callback.
Definition: PluginCallbackTypesC.h:48
OSVR_ReturnCode(* OSVR_HardwareDetectCallback)(OSVR_PluginRegContext ctx, void *userData)
Function type of a Hardware Detect callback.
Definition: PluginCallbackTypesC.h:51
Header declaring the opaque plugin registration context type.
OSVR_ReturnCode(* OSVR_DriverInstantiationCallback)(OSVR_PluginRegContext ctx, const char *params, void *userData)
Function type of a driver instantiation callback.
Definition: PluginCallbackTypesC.h:55
OSVR_EXTERN_C_BEGIN typedef void * OSVR_PluginRegContext
A context pointer passed in to your plugin&#39;s entry point and other locations of control flow transfer...
Definition: PluginRegContextC.h:47