diff options
author | michaelgrigoryan25 <56165400+michaelgrigoryan25@users.noreply.github.com> | 2023-05-22 18:41:35 +0400 |
---|---|---|
committer | michaelgrigoryan25 <56165400+michaelgrigoryan25@users.noreply.github.com> | 2023-05-22 18:41:35 +0400 |
commit | ab6e451de6ca7326209a1290514a34f76687fcc1 (patch) | |
tree | 044e906e7f4049bbf26dda52b8bf85fc96f88e4b /support/magicleap/Servo2D/code/src/main.cpp | |
parent | 44390874e54493024f68f9bb4e95d85f4ffab224 (diff) | |
download | servo-ab6e451de6ca7326209a1290514a34f76687fcc1.tar.gz servo-ab6e451de6ca7326209a1290514a34f76687fcc1.zip |
Removed `support/magicleap`
Diffstat (limited to 'support/magicleap/Servo2D/code/src/main.cpp')
-rw-r--r-- | support/magicleap/Servo2D/code/src/main.cpp | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/support/magicleap/Servo2D/code/src/main.cpp b/support/magicleap/Servo2D/code/src/main.cpp deleted file mode 100644 index a93c692e364..00000000000 --- a/support/magicleap/Servo2D/code/src/main.cpp +++ /dev/null @@ -1,36 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ - -#include <Servo2D.h> -#include <ml_lifecycle.h> -#include <ml_logging.h> - -int main(int argc, char **argv) -{ - ML_LOG(Debug, "Servo2D Starting."); - - // Handle optional initialization string passed via 'mldb launch' - MLLifecycleInitArgList* list = NULL; - MLLifecycleGetInitArgList(&list); - const char* uri = NULL; - if (nullptr != list) { - int64_t list_length = 0; - MLLifecycleGetInitArgListLength(list, &list_length); - if (list_length > 0) { - const MLLifecycleInitArg* iarg = NULL; - MLLifecycleGetInitArgByIndex(list, 0, &iarg); - if (nullptr != iarg) { - MLLifecycleGetInitArgUri(iarg, &uri); - } - } - } - - const char* args = getenv("SERVO_ARGS"); - - Servo2D myApp(uri, args); - int rv = myApp.run(); - - MLLifecycleFreeInitArgList(&list); - return rv; -} |