Include supplementary libs and fix include
authorRomain Forlot <romain.forlot@iot.bzh>
Fri, 17 Feb 2017 12:43:04 +0000 (12:43 +0000)
committerRomain Forlot <romain.forlot@iot.bzh>
Mon, 20 Feb 2017 11:14:55 +0000 (11:14 +0000)
Change-Id: I521ededa95c3b5f4507b86f162f04bf28474e440
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
src/CMakeLists.txt
src/obd2.hpp

index 1353922..a034b43 100644 (file)
@@ -57,7 +57,7 @@ include(FindPkgConfig)
 
 pkg_check_modules(EXTRAS REQUIRED json-c afb-daemon)
 add_compile_options(${EXTRAS_CFLAGS})
-include_directories(${EXTRAS_INCLUDE_DIRS} ${PROJECT_LIBDIR}/openxc-message-format/gen/cpp ${PROJECT_LIBDIR}/nanopb/)
+include_directories(${EXTRAS_INCLUDE_DIRS} ${PROJECT_LIBDIR}/openxc-message-format/gen/cpp ${PROJECT_LIBDIR}/nanopb/  ${PROJECT_LIBDIR}/uds-c/src  ${PROJECT_LIBDIR}/bitfield-c/src ${PROJECT_LIBDIR}/isotp-c/src)
 link_libraries(${EXTRAS_LIBRARIES})
 
 ###########################################################################
index cd362c7..166773c 100644 (file)
  * limitations under the License.
  */
 
-/*
- *     A representation of an OBD-II PID.
- *
- * pid - The 1 byte PID.
- * name - A human readable name to use for this PID when published.
- * frequency - The frequency to request this PID if supported by the vehicle
- *             when automatic, recurring OBD-II requests are enabled.
- */
+#include "uds/uds.h"
 
 enum UNIT {
        POURCENT,