Refactor: Move determinId to ubi
The function determinId is used only in ubi case, move it to ubi.
Tested: On the last commit of the patch series, run code update and
factory reset on Witherspoon and all work fine.
Change-Id: I8974d25bf904a5202b913fc185790c5ecf8eca90
Signed-off-by: Lei YU <mine260309@gmail.com>
diff --git a/ubi/watch.cpp b/ubi/watch.cpp
index 192d3d9..60d0014 100644
--- a/ubi/watch.cpp
+++ b/ubi/watch.cpp
@@ -2,7 +2,7 @@
#include "watch.hpp"
-#include "item_updater.hpp"
+#include "item_updater_ubi.hpp"
#include <sys/inotify.h>
#include <unistd.h>
@@ -93,7 +93,7 @@
path /= event->name;
if (fs::equivalent(path, PNOR_RO_ACTIVE_PATH))
{
- auto id = ItemUpdater::determineId(path);
+ auto id = ItemUpdaterUbi::determineId(path);
static_cast<Watch*>(userdata)->functionalCallback(id);
}
offset += offsetof(inotify_event, name) + event->len;