[packaging] Update packaging to include syncml server
[packaging] Properly enable multicore builds
Added reopenUSB method to reopen USB connection when HUP is received

Whenever a HUP or ERR signal is received, it is better to re-create the
USB connection and set the fd listeners again. This will enable seamless
connectivity between the PC app and the device sync

Signed-off-by: Sateesh Kavuri <sateesh.kavuri@gmail.com>
Added reopenUSB to the idle event source listener

Whenever the incoming USB event is HUP or ERR, then add the reopenUSB
listener so that the USB connection can be reopened.

Signed-off-by: Sateesh Kavuri <sateesh.kavuri@gmail.com>
Added handleSyncFinished method in USBConnection

Whenever sync is finished, the USB listener has to be re-added.
Listening is stopped at the beginning of the sync

Signed-off-by: Sateesh Kavuri <sateesh.kavuri@gmail.com>
Added handleSyncFinished method in USBConnection

This method should handle the USB state transitions between sync start
and sync end. This mainly involves adding/removing fd listeners

Signed-off-by: Sateesh Kavuri <sateesh.kavuri@gmail.com>
Added mutex locks to ensure synchronization of USBConnection by threads

Suspect that the USB connection open/close and add/remove of fd
listeners is going out of order. So added mutex locks to ensure
synchronization of method calls between the server threads

Signed-off-by: Sateesh Kavuri <sateesh.kavuri@gmail.com>
Patch to enable multiple sync sessions without restarting msyncd

During SyncMLServer::uninit(), the signal between USBConnection and
SyncMLServer is being disconnected. As a server plugin, the transport
should never be closed unless the plugin is being unloaded. Also in
reopenUSB, wrong check is being done for mDisconnected flag. Fixed these
issues and now multiple sync sessions without restarting msyncd is
possible

Signed-off-by: Sateesh Kavuri <sateesh.kavuri@gmail.com>