OSVR-Core  0.6-1962-g59773924
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
ContextC.h
Go to the documentation of this file.
1 
15 /*
16 // Copyright 2014 Sensics, Inc.
17 //
18 // Licensed under the Apache License, Version 2.0 (the "License");
19 // you may not use this file except in compliance with the License.
20 // You may obtain a copy of the License at
21 //
22 // http://www.apache.org/licenses/LICENSE-2.0
23 //
24 // Unless required by applicable law or agreed to in writing, software
25 // distributed under the License is distributed on an "AS IS" BASIS,
26 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
27 // See the License for the specific language governing permissions and
28 // limitations under the License.
29 */
30 
31 #ifndef INCLUDED_ContextC_h_GUID_3790F330_2425_4486_4C9F_20C300D7DED3
32 #define INCLUDED_ContextC_h_GUID_3790F330_2425_4486_4C9F_20C300D7DED3
33 
34 /* Internal Includes */
35 #include <osvr/ClientKit/Export.h>
36 #include <osvr/Util/APIBaseC.h>
37 #include <osvr/Util/ReturnCodesC.h>
39 #include <osvr/Util/StdInt.h>
41 #include <osvr/Util/LogLevelC.h>
42 
43 /* Library/third-party includes */
44 /* none */
45 
46 /* Standard includes */
47 /* none */
48 
49 OSVR_EXTERN_C_BEGIN
50 
63 OSVR_CLIENTKIT_EXPORT OSVR_ClientContext osvrClientInit(
64  const char applicationIdentifier[], uint32_t flags OSVR_CPP_ONLY(= 0));
65 
70 OSVR_CLIENTKIT_EXPORT OSVR_ReturnCode osvrClientUpdate(OSVR_ClientContext ctx);
71 
85 OSVR_CLIENTKIT_EXPORT OSVR_ReturnCode
87 
91 OSVR_CLIENTKIT_EXPORT OSVR_ReturnCode
93 
96 OSVR_CLIENTKIT_EXPORT void osvrClientLog(OSVR_ClientContext ctx,
97  OSVR_LogLevel severity,
98  const char *message);
99 
101 OSVR_EXTERN_C_END
102 
103 #endif /* INCLUDED_ContextC_h_GUID_3790F330_2425_4486_4C9F_20C300D7DED3 */
104 
Header declaring a type and values for simple C return codes.
Header.
Header declaring opaque types used by Client and ClientKit.
Header wrapping the C99 standard stdint header.
OSVR_ClientContext osvrClientInit(const char applicationIdentifier[], uint32_t flags=0)
Initialize the library.
OSVR_ReturnCode osvrClientCheckStatus(OSVR_ClientContext ctx)
Checks to see if the client context is fully started up and connected properly to a server...
OSVR_ReturnCode osvrClientShutdown(OSVR_ClientContext ctx)
Shutdown the library.
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 osvrClientUpdate(OSVR_ClientContext ctx)
Updates the state of the context - call regularly in your mainloop.
OSVR_LogLevel
Log message severity levels.
Definition: LogLevelC.h:44
void osvrClientLog(OSVR_ClientContext ctx, OSVR_LogLevel severity, const char *message)
Log a message from the client.
Header containing macros for source-level annotation.