OSVR-Core  0.6-1962-g59773924
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
AnalysisPluginKitC.h
Go to the documentation of this file.
1 
13 /*
14 // Copyright 2015 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_AnalysisPluginKitC_h_GUID_A33681AB_B02B_4DA1_83EF_4E4EB265E387
30 #define INCLUDED_AnalysisPluginKitC_h_GUID_A33681AB_B02B_4DA1_83EF_4E4EB265E387
31 
32 /* Internal Includes */
33 #include <osvr/AnalysisPluginKit/Export.h>
34 #include <osvr/Util/APIBaseC.h>
35 #include <osvr/Util/ReturnCodesC.h>
38 
39 /* Library/third-party includes */
40 /* none */
41 
42 /* Standard includes */
43 /* none */
44 
45 OSVR_EXTERN_C_BEGIN
68 OSVR_ANALYSISPLUGINKIT_EXPORT OSVR_ReturnCode osvrAnalysisSyncInit(
69  OSVR_IN_PTR OSVR_PluginRegContext ctx, OSVR_IN_STRZ const char *name,
70  OSVR_IN_PTR OSVR_DeviceInitOptions options,
71  OSVR_OUT_PTR OSVR_DeviceToken *device,
72  OSVR_OUT_PTR OSVR_ClientContext *clientCtx)
73  OSVR_FUNC_NONNULL((1, 2, 3, 4, 5)); /* end of group */
75 
76 OSVR_EXTERN_C_END
77 
78 #endif
Header declaring a type and values for simple C return codes.
Header declaring opaque types used by Client and ClientKit.
struct OSVR_DeviceTokenObject * OSVR_DeviceToken
Opaque type of a registered device token within the core library.
struct OSVR_DeviceInitObject * OSVR_DeviceInitOptions
Opaque type of a device initialization object.
struct OSVR_ClientContextObject * OSVR_ClientContext
Opaque handle that should be retained by your application. You need only and exactly one...
Header providing basic C macros for defining API headers.
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...
OSVR_ANALYSISPLUGINKIT_EXPORT OSVR_ReturnCode osvrAnalysisSyncInit(OSVR_PluginRegContext ctx, const char *name, OSVR_DeviceInitOptions options, OSVR_DeviceToken *device, OSVR_ClientContext *clientCtx)
Initialize a synchronous analysis device token with the options specified, also returning the associa...