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/VolumeManager.h b/VolumeManager.h
index 8263805..c6beb2a 100644
--- a/VolumeManager.h
+++ b/VolumeManager.h
@@ -41,13 +41,7 @@
int start();
int stop();
- void handleDiskInserted(const char *devpath, int maj, int min,
- int nr_parts);
- void handleDiskRemoved(int maj, int min);
-
- void handlePartCreated(const char *devpath, int maj, int min,
- int part_no);
- void handlePartRemoved(int maj, int min);
+ void handleBlockEvent(NetlinkEvent *evt);
int addVolume(Volume *v);