OSVR-Core
Macros | Functions
AnalysisPluginKitC.cpp File Reference

Implementation. More...

#include <osvr/AnalysisPluginKit/AnalysisPluginKitC.h>
#include <osvr/Connection/DeviceToken.h>
#include <osvr/Connection/Connection.h>
#include <osvr/PluginHost/RegistrationContext.h>
#include <osvr/Common/ClientContext.h>
#include <osvr/Client/CreateContext.h>
#include <osvr/Util/MacroToolsC.h>
#include <osvr/Util/Verbosity.h>
#include "../Connection/VrpnConnectionKind.h"
#include <vrpn_ConnectionPtr.h>

Macros

#define OSVR_VALIDATE_OUTPUT_PTR(X, DESC)
 

Functions

OSVR_ReturnCode osvrAnalysisSyncInit (OSVR_IN_PTR OSVR_PluginRegContext ctx, OSVR_IN_STRZ const char *name, OSVR_IN_PTR OSVR_DeviceInitOptions options, OSVR_OUT_PTR OSVR_DeviceToken *device, OSVR_OUT_PTR OSVR_ClientContext *clientCtx)
 

Detailed Description

Implementation.

Date
2015
Author
Sensics, Inc. http://sensics.com/osvr

Macro Definition Documentation

§ OSVR_VALIDATE_OUTPUT_PTR

#define OSVR_VALIDATE_OUTPUT_PTR (   X,
  DESC 
)
Value:
OSVR_UTIL_MULTILINE_BEGIN \
if (nullptr == (X)) { \
OSVR_DEV_VERBOSE("Passed a null pointer for output parameter " #X \
", " DESC "!"); \
} \
OSVR_UTIL_MULTILINE_END
#define OSVR_RETURN_FAILURE
The "failure" value for an OSVR_ReturnCode.
Definition: ReturnCodesC.h:47
Todo:
move this into a shared header between here and ClientKit/DisplayC.cpp

Function Documentation

§ osvrAnalysisSyncInit()

OSVR_ReturnCode osvrAnalysisSyncInit ( OSVR_IN_PTR OSVR_PluginRegContext  ctx,
OSVR_IN_STRZ const char *  name,
OSVR_IN_PTR OSVR_DeviceInitOptions  options,
OSVR_OUT_PTR OSVR_DeviceToken device,
OSVR_OUT_PTR OSVR_ClientContext clientCtx 
)

Dig the VRPN connection out of the server.

Create a client context here

Todo:
Use an interface factory that handles relative paths.

<

Todo:

<

Todo:

pass ownership

register client context update

finally return the client context too.