From f66d76e7affb0685ec86ca1f796790154dc4424f Mon Sep 17 00:00:00 2001 From: Ethan Chen Date: Sat, 9 Jun 2018 12:54:02 -0700 Subject: livedisplay: Correct macro copypasta * Rename the macros for the LegacyMM implementation. Change-Id: I44660a14fbb97348aa62952ea930040e8f5a868b --- livedisplay/1.0/default/controller/LegacyMMController.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/livedisplay/1.0/default/controller/LegacyMMController.cpp b/livedisplay/1.0/default/controller/LegacyMMController.cpp index b1b5483..12a8e13 100644 --- a/livedisplay/1.0/default/controller/LegacyMMController.cpp +++ b/livedisplay/1.0/default/controller/LegacyMMController.cpp @@ -24,10 +24,10 @@ #include -#define LOAD_SDM_FUNCTION(name) \ +#define LOAD_MM_FUNCTION(name) \ mFn_##name = loadFunction(mHandle, "disp_api_" #name); -#define CLOSE_SDM_FUNCTION(name) mFn_##name = nullptr; +#define CLOSE_MM_FUNCTION(name) mFn_##name = nullptr; #define FOR_EACH_FUNCTION(MACRO) \ MACRO(init) \ @@ -76,13 +76,13 @@ namespace implementation { LegacyMMController::LegacyMMController() { mHandle = openlib(); if (mHandle != nullptr) { - FOR_EACH_FUNCTION(LOAD_SDM_FUNCTION) + FOR_EACH_FUNCTION(LOAD_MM_FUNCTION) } } std::shared_ptr LegacyMMController::openlib() { std::shared_ptr handle(dlopen(kFilename, RTLD_NOW), [this](void* p) { - FOR_EACH_FUNCTION(CLOSE_SDM_FUNCTION) + FOR_EACH_FUNCTION(CLOSE_MM_FUNCTION) if (p != nullptr) { int err = dlclose(p); p = nullptr; -- cgit v1.2.3