summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'libappfuse/include/libappfuse/FuseBridgeLoop.h')
-rw-r--r--libappfuse/include/libappfuse/FuseBridgeLoop.h17
1 files changed, 4 insertions, 13 deletions
diff --git a/libappfuse/include/libappfuse/FuseBridgeLoop.h b/libappfuse/include/libappfuse/FuseBridgeLoop.h
index 38043bce7..1f71cf272 100644
--- a/libappfuse/include/libappfuse/FuseBridgeLoop.h
+++ b/libappfuse/include/libappfuse/FuseBridgeLoop.h
@@ -20,23 +20,14 @@
20#include "libappfuse/FuseBuffer.h" 20#include "libappfuse/FuseBuffer.h"
21 21
22namespace android { 22namespace android {
23namespace fuse {
23 24
24// TODO: Remove the class after switching to StartFuseBridgeLoop in the 25class FuseBridgeLoopCallback {
25// framework code.
26class FuseBridgeLoop final {
27 public: 26 public:
28 class Callback { 27 virtual void OnMount() = 0;
29 public: 28 virtual ~FuseBridgeLoopCallback() = default;
30 virtual void OnMount() = 0;
31 virtual ~Callback() = default;
32 };
33
34 bool Start(int dev_fd, int proxy_fd, Callback* callback);
35}; 29};
36 30
37namespace fuse {
38
39class FuseBridgeLoopCallback : public FuseBridgeLoop::Callback {};
40bool StartFuseBridgeLoop( 31bool StartFuseBridgeLoop(
41 int dev_fd, int proxy_fd, FuseBridgeLoopCallback* callback); 32 int dev_fd, int proxy_fd, FuseBridgeLoopCallback* callback);
42 33