profile/ivi/smartdevicelink.git
10 years agoAdded FindQt.sh to ${CMAKE_SOURCE_DIR}
Justin Dickow [Mon, 14 Apr 2014 13:00:36 +0000 (09:00 -0400)]
Added FindQt.sh to ${CMAKE_SOURCE_DIR}

Signed-off-by: Justin Dickow <jjdickow@gmail.com>
10 years agoCMakeLists: Add _GLIBCXX_DEBUG to enable debug mode for GNU libstdc++
Brendan Shanks [Wed, 2 Apr 2014 20:07:06 +0000 (13:07 -0700)]
CMakeLists: Add _GLIBCXX_DEBUG to enable debug mode for GNU libstdc++

When building in debug mode, define _GLIBCXX_DEBUG and _GLIBCXX_DEBUG_PEDANTIC
to enable debug mode in GNU libstdc++.
This will throw runtime exceptions to catch incorrect/undefined C++/STL behavior.

10 years agobitstream: Don't call vector::front() on an empty vector
Brendan Shanks [Thu, 27 Mar 2014 17:33:19 +0000 (10:33 -0700)]
bitstream: Don't call vector::front() on an empty vector

In bitstream::Extract(), don't call vector::front() on an empty vector.
MSVC was throwing a runtime exception because vector::front() on an empty vector is undefined.

Also add an assertion to protocol_payload.cc to ensure the data_size argument to utils::Extract is valid

10 years agoevent_dispatcher: Don't advance STL iterator already at end()
Brendan Shanks [Thu, 27 Mar 2014 20:01:58 +0000 (13:01 -0700)]
event_dispatcher: Don't advance STL iterator already at end()

Advancing an STL vector iterator which is equal to end() is undefined.
After erase(), observer_it was not being compared to end() before being incremented.
Make sure the iterator gets compared to end() before incrementing again

MSVC was throwing a runtime exception for this.

10 years agorequest_controller: Don't advance STL iterator already at end()
Brendan Shanks [Wed, 2 Apr 2014 03:59:13 +0000 (20:59 -0700)]
request_controller: Don't advance STL iterator already at end()

Advancing an STL vector iterator which is equal to end() is undefined.
After erase(), it was not being compared to end() before being incremented.
Make sure the iterator gets compared to end() before incrementing again

MSVC was throwing a runtime exception for this.

10 years agoInterface Generator: Initialize static maps with initializer lists
Justin Dickow [Thu, 27 Mar 2014 15:21:11 +0000 (11:21 -0400)]
Interface Generator: Initialize static maps with initializer lists

Signed-off-by: Justin Dickow <jjdickow@gmail.com>
10 years agoDefine CXXFLAGS only on UNIX
Brendan Shanks [Fri, 21 Mar 2014 18:07:40 +0000 (11:07 -0700)]
Define CXXFLAGS only on UNIX

Define CXXFLAGS only on UNIX(/OS X/Linux/QNX), MSVC doesn't recognize any of these gcc options
Also move the Linux/QNX/Mac specific sections inside if(UNIX) to make it more clear

10 years agoOnly check for libavahi in top-level CMakeLists if BUILD_AVAHI_SUPPORT is enabled
Brendan Shanks [Fri, 21 Mar 2014 18:03:09 +0000 (11:03 -0700)]
Only check for libavahi in top-level CMakeLists if BUILD_AVAHI_SUPPORT is enabled

10 years agospelling :D
Justin Dickow [Fri, 21 Mar 2014 20:03:14 +0000 (16:03 -0400)]
spelling :D

Signed-off-by: Justin Dickow <jjdickow@gmail.com>
10 years agoconnection_handler_impl: Don't re-use erased STL iterator
Brendan Shanks [Fri, 21 Mar 2014 03:41:36 +0000 (20:41 -0700)]
connection_handler_impl: Don't re-use erased STL iterator

Reusing an STL vector iterator (like advancing it) after erasing it doesn't work. Assign itr to the result of erase() instead.

This was causing a segfault on Mac when the phone would disconnect

10 years agoCMAKE_CXX_FLAGS removed --coverage
Justin Dickow [Fri, 21 Mar 2014 04:16:28 +0000 (00:16 -0400)]
CMAKE_CXX_FLAGS removed --coverage

Signed-off-by: Justin Dickow <jjdickow@gmail.com>
10 years agoMac: use system() and osascript to launch the web HMI in Chrome
Brendan Shanks [Fri, 21 Mar 2014 02:37:04 +0000 (19:37 -0700)]
Mac: use system() and osascript to launch the web HMI in Chrome

10 years agoDetect log4cxx in top-level CMakeLists
Brendan Shanks [Fri, 21 Mar 2014 02:33:59 +0000 (19:33 -0700)]
Detect log4cxx in top-level CMakeLists

10 years agothreaded_socket_connection: Fix operator precedence error found by clang
Brendan Shanks [Fri, 21 Mar 2014 02:31:58 +0000 (19:31 -0700)]
threaded_socket_connection: Fix operator precedence error found by clang

Fix an operator precedence logic error.

/Users/bshanks/dev/sdl3/SDL_Core/src/components/transport_manager/src/transport_adapter/threaded_socket_connection.cc:272:32: warning: & has lower precedence than !=; != will be evaluated first [-Wparentheses]

10 years agoFix capitalization on src/components/{Interfaces,Utils}
Brendan Shanks [Fri, 21 Mar 2014 01:30:01 +0000 (18:30 -0700)]
Fix capitalization on src/components/{Interfaces,Utils}

Rename src/components/Interfaces, src/components/Utils, and
src/components/Utils/include/Utils to be all lowercase

10 years agoRemoved unneeded tools
Justin Dickow [Thu, 20 Mar 2014 20:16:57 +0000 (16:16 -0400)]
Removed unneeded tools

Signed-off-by: Justin Dickow <jjdickow@gmail.com>
10 years agoOSX: uses SO_NOSIGPIPE instead of MSG_NOSIGNAL
Justin Dickow [Thu, 20 Mar 2014 17:45:22 +0000 (13:45 -0400)]
OSX: uses SO_NOSIGPIPE instead of MSG_NOSIGNAL

Signed-off-by: Justin Dickow <jjdickow@gmail.com>
10 years agopthread_setname_np doesn't take a reference to the handler on mac. May need a better...
Justin Dickow [Thu, 20 Mar 2014 17:44:42 +0000 (13:44 -0400)]
pthread_setname_np doesn't take a reference to the handler on mac.  May need a better workaround for this on Mac?

Signed-off-by: Justin Dickow <jjdickow@gmail.com>
10 years agoSDL_Android/SmartDeviceLinkAndroidProxy - added the correct version of the proxy
Justin Dickow [Thu, 20 Mar 2014 17:25:10 +0000 (13:25 -0400)]
SDL_Android/SmartDeviceLinkAndroidProxy - added the correct version of the proxy

Signed-off-by: Justin Dickow <jjdickow@gmail.com>
10 years agoAdded Mike's tester application (not ideal but easy to update)
Justin Dickow [Thu, 20 Mar 2014 16:30:51 +0000 (12:30 -0400)]
Added Mike's tester application (not ideal but easy to update)

Signed-off-by: Justin Dickow <jjdickow@gmail.com>
10 years agoRevert "Let's also compile with -O3 for mac..."
Justin Dickow [Wed, 19 Mar 2014 22:08:48 +0000 (18:08 -0400)]
Revert "Let's also compile with -O3 for mac..."

This reverts commit 7b286ac1ae50e5852e0757167e86f3a0b15cb87e.

10 years agoLet's also compile with -O3 for mac...
Justin Dickow [Wed, 19 Mar 2014 22:04:49 +0000 (18:04 -0400)]
Let's also compile with -O3 for mac...

Signed-off-by: Justin Dickow <jjdickow@gmail.com>
10 years agoTurn off Bluetooth and Libusb support by default, set -arch i386 flag for OSX to...
Justin Dickow [Wed, 19 Mar 2014 21:47:09 +0000 (17:47 -0400)]
Turn off Bluetooth and Libusb support by default, set -arch i386 flag for OSX to build 32-bit

Signed-off-by: Justin Dickow <jjdickow@gmail.com>
10 years agoinclude unistd.h for usleep()
Justin Dickow [Wed, 19 Mar 2014 21:46:30 +0000 (17:46 -0400)]
include unistd.h for usleep()

Signed-off-by: Justin Dickow <jjdickow@gmail.com>
10 years agoOnly add libusb if BUILD_USB_SUPPORT flag is yes
Justin Dickow [Wed, 19 Mar 2014 21:45:53 +0000 (17:45 -0400)]
Only add libusb if BUILD_USB_SUPPORT flag is yes

Signed-off-by: Justin Dickow <jjdickow@gmail.com>
10 years agoOnly link rt on linux
Justin Dickow [Wed, 19 Mar 2014 21:44:34 +0000 (17:44 -0400)]
Only link rt on linux

Signed-off-by: Justin Dickow <jjdickow@gmail.com>
10 years agoreplace clock_getting() with gettimeofday()
Justin Dickow [Wed, 19 Mar 2014 21:14:08 +0000 (17:14 -0400)]
replace clock_getting() with gettimeofday()

Credit to Brendan Shanks

Signed-off-by: Justin Dickow <jjdickow@gmail.com>
10 years agoMissing pthread.h includes
Justin Dickow [Wed, 19 Mar 2014 19:06:58 +0000 (15:06 -0400)]
Missing pthread.h includes

Signed-off-by: Justin Dickow <jjdickow@gmail.com>
10 years agoNote - possibly need to set send timeout as well
Justin Dickow [Wed, 19 Mar 2014 19:03:43 +0000 (15:03 -0400)]
Note - possibly need to set send timeout as well

Signed-off-by: Justin Dickow <jjdickow@gmail.com>
10 years agosetsockopt: use SO_RCVTIMEO instead of TCP_USER_TIMEOUT
Justin Dickow [Wed, 19 Mar 2014 19:01:36 +0000 (15:01 -0400)]
setsockopt: use SO_RCVTIMEO instead of TCP_USER_TIMEOUT

Signed-off-by: Justin Dickow <jjdickow@gmail.com>
10 years agotcp_client_listener: remove tcp_var.h, change TCP_KEEPIDLE to TCP_KEEPALIVE
Justin Dickow [Wed, 19 Mar 2014 18:59:05 +0000 (14:59 -0400)]
tcp_client_listener: remove tcp_var.h, change TCP_KEEPIDLE to TCP_KEEPALIVE

Signed-off-by: Justin Dickow <jjdickow@gmail.com>
10 years agoAdd definitions for UNIX and MACOSX
Justin Dickow [Wed, 19 Mar 2014 17:55:30 +0000 (13:55 -0400)]
Add definitions for UNIX and MACOSX

Signed-off-by: Justin Dickow <jjdickow@gmail.com>
10 years agoTurn OFF libavahi (needed for WiFi direct only?)
Justin Dickow [Wed, 19 Mar 2014 17:45:10 +0000 (13:45 -0400)]
Turn OFF libavahi (needed for WiFi direct only?)

Signed-off-by: Justin Dickow <jjdickow@gmail.com>
10 years agoadded () to Class's member function calls in the initializer list
Justin Dickow [Wed, 19 Mar 2014 17:35:42 +0000 (13:35 -0400)]
added () to Class's member function calls in the initializer list

Signed-off-by: Justin Dickow <jjdickow@gmail.com>
10 years agoRemoved old Android tester app
Justin Dickow [Wed, 19 Mar 2014 17:04:11 +0000 (13:04 -0400)]
Removed old Android tester app

Signed-off-by: Justin Dickow <jjdickow@gmail.com>
10 years agoRemoved SDL_iOS project - pending release of updated mobile libraries and tester app
Justin Dickow [Wed, 19 Mar 2014 17:03:39 +0000 (13:03 -0400)]
Removed SDL_iOS project - pending release of updated mobile libraries and tester app

Signed-off-by: Justin Dickow <jjdickow@gmail.com>
10 years agoChanged heart beat to 0
Justin Dickow [Wed, 19 Mar 2014 13:35:17 +0000 (09:35 -0400)]
Changed heart beat to 0

Signed-off-by: Justin Dickow <jjdickow@gmail.com>
10 years agocompare app_id as unsigned int
Justin Dickow [Wed, 19 Mar 2014 13:05:57 +0000 (09:05 -0400)]
compare app_id as unsigned int

Signed-off-by: Justin Dickow <jjdickow@gmail.com>
10 years agoremove Mobile and Test folders
Justin Dickow [Tue, 18 Mar 2014 18:24:34 +0000 (14:24 -0400)]
remove Mobile and Test folders

Signed-off-by: Justin Dickow <jjdickow@gmail.com>
10 years agoinitial commit for API 3.0 (replaced all)
Justin Dickow [Tue, 18 Mar 2014 17:46:46 +0000 (13:46 -0400)]
initial commit for API 3.0 (replaced all)

10 years agoAdded OpenSSL patch and validated against 12.04 64-bit
Julius Marchwicki [Mon, 19 Aug 2013 18:07:11 +0000 (14:07 -0400)]
Added OpenSSL patch and validated against 12.04 64-bit
Incorporated patch for g++ 4.7 and newer compiler.
Commented out two logging lines preventing compilation on 64-bit targets.

11 years agoRemoved Ford specific URL 0.1 upstream/0.1
Kevin Burdette [Wed, 24 Apr 2013 13:28:05 +0000 (09:28 -0400)]
Removed Ford specific URL

11 years agoInitial Ford commit with Core and Proxies
khburdette [Fri, 19 Apr 2013 19:58:59 +0000 (15:58 -0400)]
Initial Ford commit with Core and Proxies