summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaichi Hirono2016-11-07 19:17:51 -0600
committerDaichi Hirono2016-11-14 18:47:31 -0600
commita0aecda12b9a76aa15a8c5175e15538574a05af7 (patch)
treeac1e8eda1f03a8922445ae13d6d7a4173158c4ec /libappfuse/include/libappfuse/FuseBridgeLoop.h
parentb5ce6f02dd11b42c03884dd9531c6c8a80bcecda (diff)
downloadplatform-system-core-a0aecda12b9a76aa15a8c5175e15538574a05af7.tar.gz
platform-system-core-a0aecda12b9a76aa15a8c5175e15538574a05af7.tar.xz
platform-system-core-a0aecda12b9a76aa15a8c5175e15538574a05af7.zip
Add FuseAppLoop to libappfuse.
The class is used at the app side (StorageManager) to parse FUSE commands. Bug: 32260320 Test: libappfuse_test Change-Id: I1ae2904d3290a041f1efbf8fc10ba032eda5449c
Diffstat (limited to 'libappfuse/include/libappfuse/FuseBridgeLoop.h')
-rw-r--r--libappfuse/include/libappfuse/FuseBridgeLoop.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/libappfuse/include/libappfuse/FuseBridgeLoop.h b/libappfuse/include/libappfuse/FuseBridgeLoop.h
index 200653252..38043bce7 100644
--- a/libappfuse/include/libappfuse/FuseBridgeLoop.h
+++ b/libappfuse/include/libappfuse/FuseBridgeLoop.h
@@ -21,7 +21,9 @@
21 21
22namespace android { 22namespace android {
23 23
24class FuseBridgeLoop { 24// TODO: Remove the class after switching to StartFuseBridgeLoop in the
25// framework code.
26class FuseBridgeLoop final {
25 public: 27 public:
26 class Callback { 28 class Callback {
27 public: 29 public:
@@ -30,11 +32,15 @@ class FuseBridgeLoop {
30 }; 32 };
31 33
32 bool Start(int dev_fd, int proxy_fd, Callback* callback); 34 bool Start(int dev_fd, int proxy_fd, Callback* callback);
33
34 private:
35 FuseBuffer buffer_;
36}; 35};
37 36
37namespace fuse {
38
39class FuseBridgeLoopCallback : public FuseBridgeLoop::Callback {};
40bool StartFuseBridgeLoop(
41 int dev_fd, int proxy_fd, FuseBridgeLoopCallback* callback);
42
43} // namespace fuse
38} // namespace android 44} // namespace android
39 45
40#endif // ANDROID_LIBAPPFUSE_FUSEBRIDGELOOP_H_ 46#endif // ANDROID_LIBAPPFUSE_FUSEBRIDGELOOP_H_