vold2: Refactor the netlink event handling and better define how partitions/disks are handled
Signed-off-by: San Mehat <san@android.com>
diff --git a/Volume.h b/Volume.h
index bf2a799..f428e91 100644
--- a/Volume.h
+++ b/Volume.h
@@ -19,6 +19,8 @@
#include <utils/List.h>
+class NetlinkEvent;
+
class Volume {
private:
int mState;
@@ -43,7 +45,7 @@
const char *getMountpoint() { return mMountpoint; }
int getState() { return mState; }
- virtual int handleDiskInsertion(const char *dp, int maj, int min, int nr_parts);
+ virtual int handleBlockEvent(NetlinkEvent *evt);
protected:
void setState(int state);