• Prashant Malani's avatar
    MIDI ArcBridge proxy mojo interface. · 1c19443a
    Prashant Malani authored
    ARC MIDI uses this to connect to the midis daemon running in
    Chrome OS. It takes a Mojo connection request over the ArcBridge,
    and then uses D-Bus (for sending across a message handle) to initiate
    a Mojo connection with that daemon. The daemon then returns a 2nd Mojo
    interface (with the actual Midis client calls) back to the proxy,
    which in turn sends it to the Android side. At present, the Connect()
    call which should return the 2nd Mojo interface handle has not yet
    been implemented.
    
    It retains the initial Mojo connection with the daemon is maintained,
    for future ARC sessions, and tears down when the daemon dies.
    
    This implementation is a based on the similar implementation used by
    ArcOemCrypto.
    
    BUG=chromium:701005
    
    Change-Id: Icc8c937f743ddcc3deca85446c303408b17ec759
    Reviewed-on: https://chromium-review.googlesource.com/638913
    Commit-Queue: Prashant Malani <pmalani@google.com>
    Reviewed-by: default avatarGreg Kerr <kerrnel@chromium.org>
    Reviewed-by: default avatarLuis Hector Chavez <lhchavez@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#501170}
    1c19443a
arc_midis_bridge.cc 4.15 KB