• Tor Lillqvist's avatar
    Merge in Bluetooth code for the Impress Remote for OS X · c56593f0
    Tor Lillqvist yazdı
    Thirteen commits from master squashed into one commit. Original commit
    messages in order below, so note that claims are in many cases
    overridden by later commits.
    
    === This is the 1st commit message:
    
    Work in progress. It sets up the SDP service record and registers it,
    and that seems to work. Does not do anything with it yet.
    
    I wonder if the current approach to use the standard SerialPort
    service class will work for Macs, as they by default have one
    SerialPort service running, "Bluetooth-PDA-Sync", whatever that
    is.
    
    There is no code in the Android app to handle the case of there being
    several Serial Port services on the computer it wants to connect to,
    so what happens then when there are two will be interesting to see.
    
    (I can't find in the Android API any way to enumerate services that
    use the same service class. If there was, the app could choose the
    correct one based on its name.)
    
    So probably we should pretty soon switch to using a dedicated service
    class UUID instead of using the standard serial port one. As we
    already have the app out in the wild it will probably have to be
    modified to look for both Serial Port and our own service then? Sigh.
    
    === This is the 2nd commit message:
    
    Add this single-line file
    
    === This is the 3rd commit message:
    
    Fix build against Mac OS X SDK 10.4
    
    === This is the 4th commit message:
    
    More work on the Impress Remote Control Bluetooth code for OS X
    
    Mostly the work of Thorsten, from December, adapted to compile against
    the current remote control code, and with one or two crucial things
    added. Plus lots of SAL_INFO calls added; once it works well many of
    them can be dropped. Does not work properly yet, do not cherry-pick
    just this to 4.0.
    
    === This is the 5th commit message:
    
    Nothing in the C standard about sockets
    
    === This is the 6th commit message:
    
    Fix compilation for Linux and hopefully Windows, too
    
    === This is the 7th commit message:
    
    Blind fix for WaE: class does not fully implement protocol
    
    The Xcode 3 compiler warns: class 'ChannelDelegate' does not fully
    implement the 'IOBluetoothRFCOMMChannelDelegate' protocol.
    
    === This is the 8th commit message:
    
    pragma GCC diagnostic is not available for 4.0.1
    
    === This is the 9th commit message:
    
    std::vector::data() is C++11
    
    === This is the 10th commit message:
    
    WaE: comparison is always true due to limited range of data type
    
    === This is the 11th commit message:
    
    Be specific in the logging as multiple threads involved
    
    Sure, each SAL_INFO output line includes the thread ID, but still,
    good to avoid confusion from where this line is coming.
    
    === This is the 12th commit message:
    
    Plug autorelease leak
    
    === This is the 13th commit message:
    
    Handle gracefully the remote end closing the RFCOMM channel
    
    Avoids a crash if one presses the "back" key on the Android remote
    control.
    
    (cherry picked from commit 100ac087)
    (cherry picked from commit c30e94a9)
    (cherry picked from commit bc96a843)
    (cherry picked from commit f9685dc5)
    (cherry picked from commit dca5d2b1)
    (cherry picked from commit bd6201ee)
    (cherry picked from commit 05dbe2dd)
    (cherry picked from commit c21916ad)
    (cherry picked from commit 730cff74)
    (cherry picked from commit 21bec368)
    (cherry picked from commit da3d37b9)
    (cherry picked from commit b008101f)
    (cherry picked from commit 6ce04df2)
    
    Change-Id: Ic72b432b2174e2ad31225a1b5fa97c1a79330e48
    Signed-off-by: 's avatarMichael Meeks <michael.meeks@suse.com>
    c56593f0
Library_sd.mk 20.9 KB