OSVR-Core
JointClientKitC.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_JointClientKitC_h_GUID_AEF51E42_05FE_4095_DC94_0D1E5CF76A76
30 #define INCLUDED_JointClientKitC_h_GUID_AEF51E42_05FE_4095_DC94_0D1E5CF76A76
31 
32 /* Internal Includes */
33 #include <osvr/JointClientKit/Export.h>
34 #include <osvr/Util/APIBaseC.h>
35 #include <osvr/Util/ReturnCodesC.h>
37 #include <osvr/Util/StdInt.h>
39 
40 /* Library/third-party includes */
41 /* none */
42 
43 /* Standard includes */
44 /* none */
45 
46 OSVR_EXTERN_C_BEGIN
47 
118 
126 OSVR_JOINTCLIENTKIT_EXPORT OSVR_JointClientOpts osvrJointClientCreateOptions();
127 
140 OSVR_JOINTCLIENTKIT_EXPORT OSVR_ReturnCode
141 osvrJointClientOptionsAutoloadPlugins(OSVR_JointClientOpts opts);
142 
145 OSVR_JOINTCLIENTKIT_EXPORT OSVR_ReturnCode osvrJointClientOptionsLoadPlugin(
146  OSVR_JointClientOpts opts, const char *pluginName);
147 
151 OSVR_JOINTCLIENTKIT_EXPORT OSVR_ReturnCode
152 osvrJointClientOptionsInstantiateDriver(OSVR_JointClientOpts opts,
153  const char *pluginName,
154  const char *driverName,
155  const char *params);
156 
159 OSVR_JOINTCLIENTKIT_EXPORT OSVR_ReturnCode osvrJointClientOptionsAddAlias(
160  OSVR_JointClientOpts opts, const char *path, const char *source);
161 
165 OSVR_JOINTCLIENTKIT_EXPORT OSVR_ReturnCode osvrJointClientOptionsAddAliases(
166  OSVR_JointClientOpts opts, const char *aliases);
167 
170 OSVR_JOINTCLIENTKIT_EXPORT OSVR_ReturnCode osvrJointClientOptionsAddString(
171  OSVR_JointClientOpts opts, const char *path, const char *s);
172 
175 OSVR_JOINTCLIENTKIT_EXPORT OSVR_ReturnCode
177 
194 OSVR_JOINTCLIENTKIT_EXPORT OSVR_ClientContext osvrJointClientInit(
195  const char applicationIdentifier[], OSVR_JointClientOpts opts);
196 
198 OSVR_EXTERN_C_END
199 
200 #endif
Header declaring a type and values for simple C return codes.
Definition: JointClientKitC.cpp:45
Header declaring opaque types used by Client and ClientKit.
Header wrapping the C99 standard stdint header.
OSVR_JOINTCLIENTKIT_EXPORT OSVR_ReturnCode osvrJointClientOptionsAddString(OSVR_JointClientOpts opts, const char *path, const char *s)
Queues up the manual addition of a string element to the path tree.
Definition: JointClientKitC.cpp:145
OSVR_JOINTCLIENTKIT_EXPORT OSVR_JointClientOpts osvrJointClientCreateOptions()
Creates an empty OSVR_JointClientOpts.
Definition: JointClientKitC.cpp:60
OSVR_JOINTCLIENTKIT_EXPORT OSVR_ReturnCode osvrJointClientOptionsInstantiateDriver(OSVR_JointClientOpts opts, const char *pluginName, const char *driverName, const char *params)
Queues up the manual instantiation of a plugin/driver by name with optional parameters (JSON)...
Definition: JointClientKitC.cpp:109
struct OSVR_JointClientContextOptsObject * OSVR_JointClientOpts
Opaque typedef for options used when starting up a joint client context.
Definition: JointClientKitC.h:117
OSVR_JOINTCLIENTKIT_EXPORT OSVR_ReturnCode osvrJointClientOptionsAddAlias(OSVR_JointClientOpts opts, const char *path, const char *source)
Queues up the manual addition of an alias to the path tree.
Definition: JointClientKitC.cpp:124
Header providing basic C macros for defining API headers.
OSVR_JOINTCLIENTKIT_EXPORT OSVR_ReturnCode osvrJointClientOptionsAddAliases(OSVR_JointClientOpts opts, const char *aliases)
Queues up the manual addition of aliases specified in JSON to the path tree.
Definition: JointClientKitC.cpp:136
OSVR_JOINTCLIENTKIT_EXPORT OSVR_ReturnCode osvrJointClientOptionsAutoloadPlugins(OSVR_JointClientOpts opts)
Queues up the autoloading of plugins.
Definition: JointClientKitC.cpp:93
Definition: ClientContext.h:50
OSVR_JOINTCLIENTKIT_EXPORT OSVR_ReturnCode osvrJointClientOptionsTriggerHardwareDetect(OSVR_JointClientOpts opts)
Queues up a trigger for hardware detection.
Definition: JointClientKitC.cpp:158
Header containing macros for source-level annotation.
OSVR_JOINTCLIENTKIT_EXPORT OSVR_ClientContext osvrJointClientInit(const char applicationIdentifier[], OSVR_JointClientOpts opts)
Initialize the library, starting up a "joint" context that also contains a server.
Definition: JointClientKitC.cpp:164
OSVR_JOINTCLIENTKIT_EXPORT OSVR_ReturnCode osvrJointClientOptionsLoadPlugin(OSVR_JointClientOpts opts, const char *pluginName)
Queues up the manual load of a plugin by name.
Definition: JointClientKitC.cpp:100
Definition: ProjectionMatrix.h:77