OSVR-Core  0.6-1962-g59773924
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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 
117 typedef struct OSVR_JointClientContextOptsObject *OSVR_JointClientOpts;
118 
126 OSVR_JOINTCLIENTKIT_EXPORT OSVR_JointClientOpts osvrJointClientCreateOptions();
127 
140 OSVR_JOINTCLIENTKIT_EXPORT OSVR_ReturnCode
142 
145 OSVR_JOINTCLIENTKIT_EXPORT OSVR_ReturnCode osvrJointClientOptionsLoadPlugin(
146  OSVR_JointClientOpts opts, const char *pluginName);
147 
151 OSVR_JOINTCLIENTKIT_EXPORT OSVR_ReturnCode
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.
Header declaring opaque types used by Client and ClientKit.
Header wrapping the C99 standard stdint header.
OSVR_ReturnCode osvrJointClientOptionsLoadPlugin(OSVR_JointClientOpts opts, const char *pluginName)
Queues up the manual load of a plugin by name.
OSVR_ReturnCode osvrJointClientOptionsAddAlias(OSVR_JointClientOpts opts, const char *path, const char *source)
Queues up the manual addition of an alias to the path tree.
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.
OSVR_JointClientOpts osvrJointClientCreateOptions()
Creates an empty OSVR_JointClientOpts.
OSVR_ClientContext osvrJointClientInit(const char applicationIdentifier[], OSVR_JointClientOpts opts)
Initialize the library, starting up a "joint" context that also contains a server.
struct OSVR_JointClientContextOptsObject * OSVR_JointClientOpts
Opaque typedef for options used when starting up a joint client context. Serves as a queue for config...
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_ReturnCode osvrJointClientOptionsTriggerHardwareDetect(OSVR_JointClientOpts opts)
Queues up a trigger for hardware detection.
OSVR_ReturnCode osvrJointClientOptionsAutoloadPlugins(OSVR_JointClientOpts opts)
Queues up the autoloading of plugins. May only be called once per options object. ...
OSVR_ReturnCode osvrJointClientOptionsAddAliases(OSVR_JointClientOpts opts, const char *aliases)
Queues up the manual addition of aliases specified in JSON to the path tree.
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)...
Header containing macros for source-level annotation.