@@ -51,6 +51,18 @@ or edge cases that may apply to your driver.
51
51
(by manually creating ` compat::DeviceServer ` ) for enabling the drivers
52
52
in different framework versions to talk to each other.
53
53
54
+ - ** Can DFv2 drivers talk to Banjo protocols using the compatibility shim?**
55
+
56
+ While it's strongly recommended that your DFv1 driver is migrated from
57
+ Banjo to FIDL, if it is necessary for a DFv2 driver to talk
58
+ to some existing Banjo protocols, the compatibility shim provides the
59
+ following features:
60
+
61
+ - ` compat::BanjoServer ` makes it easier to serve Banjo
62
+ (see [ ` banjo_server.h ` ] [ banjo-server-h ] ).
63
+ - ` compat::ConnectBanjo ` makes it easier to connect to Banjo
64
+ (see [ ` banjo_client.h ` ] [ banjo-client-h ] ).
65
+
54
66
- ** What has changed in the new DFv2 driver interfaces?**
55
67
56
68
One major change in DFv2 is that drivers take control of the life cycle
@@ -904,6 +916,8 @@ All the **source code files** mentioned in this section:
904
916
- [ ` //sdk/lib/driver/component/cpp/driver_base.h ` ] [ driver-base-h-70 ]
905
917
- [ ` //sdk/lib/driver/component/cpp/tests/driver_base_test.cc ` ] [ driver-base-test-cc ]
906
918
- [ ` //sdk/lib/driver/component/cpp/tests/driver_fidl_test.cc ` ] [ driver-fidl-test-cc ]
919
+ - [ ` //sdk/lib/driver/compat/cpp/banjo_server.h ` ] [ banjo-server-h ]
920
+ - [ ` //sdk/lib/driver/compat/cpp/banjo_client.h ` ] [ banjo-client-h ]
907
921
- [ ` //sdk/lib/driver/compat/cpp/device_server.h ` ] [ device-server-h-23 ]
908
922
- [ ` //sdk/lib/driver/testing/cpp/driver_runtime.h ` ] [ driver-testing-runtime ]
909
923
- [ ` //src/connectivity/wlan/testing/wlantap-driver/wlantap-driver.cc ` ] [ wlantap-driver ]
@@ -994,4 +1008,7 @@ All the **documentation pages** mentioned in this section:
994
1008
[ gc-msd-arm-mali-top-level ] : https://fuchsia-review.git.corp.google.com/c/fuchsia/+/853637
995
1009
[ gc-driver-testing ] : https://fuchsia-review.git.corp.google.com/c/fuchsia/+/770412
996
1010
[ driver-communication ] : /docs/concepts/drivers/driver_communication.md
1011
+ [ banjo-server-h ] : https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/lib/driver/compat/cpp/banjo_server.h
1012
+ [ banjo-client-h ] : https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/lib/driver/compat/cpp/banjo_client.h
1013
+
997
1014
0 commit comments