From a207574b4c948e94f11fd61e17ebb2515295f56b Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Wed, 20 Mar 2019 16:41:20 -0400 Subject: Support passing in arguments from embedding. Read arguments for Magic Leap from SERVO_ARGS env var. --- support/magicleap/Servo2D/code/inc/Servo2D.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'support/magicleap/Servo2D/code/inc/Servo2D.h') diff --git a/support/magicleap/Servo2D/code/inc/Servo2D.h b/support/magicleap/Servo2D/code/inc/Servo2D.h index 61f1ee333e3..1e526bb2b94 100644 --- a/support/magicleap/Servo2D/code/inc/Servo2D.h +++ b/support/magicleap/Servo2D/code/inc/Servo2D.h @@ -29,7 +29,7 @@ public: /** * Constructs the Landscape Application. */ - Servo2D(const char* uri); + Servo2D(const char* uri, const char* args); /** * Destroys the Landscape Application. @@ -145,4 +145,5 @@ private: bool controller_trigger_down_ = false; // Is the controller trigger currently down? ServoInstance* servo_ = nullptr; // the servo instance we're embedding const char* uri_ = nullptr; + const char* args_ = nullptr; }; -- cgit v1.2.3