summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-02-21 15:39:14 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-02-21 15:39:14 +0100
commit29aec734715f7c4d6b8157ac514eff4fd8dd0242 (patch)
tree82131d93179d4806966d1a9d7ccd46c695fbd5ca /src
parent28619821bc90ed4c15844b2e6b6a5a2971ef5f2e (diff)
downloaduca-29aec734715f7c4d6b8157ac514eff4fd8dd0242.tar.gz
uca-29aec734715f7c4d6b8157ac514eff4fd8dd0242.tar.bz2
uca-29aec734715f7c4d6b8157ac514eff4fd8dd0242.tar.xz
uca-29aec734715f7c4d6b8157ac514eff4fd8dd0242.zip
Include config.h and test the library
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt2
-rw-r--r--src/cameras/uca_pco.c2
-rw-r--r--src/cameras/uca_pco.h2
-rw-r--r--src/uca.c1
4 files changed, 5 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 0d6ce94..dde0a01 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -42,6 +42,8 @@ endif()
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in
${CMAKE_CURRENT_BINARY_DIR}/config.h)
+include_directories(${CMAKE_CURRENT_BINARY_DIR})
+
# --- Build target ------------------------------------------------------------
add_library(uca SHARED ${uca_SRCS})
diff --git a/src/cameras/uca_pco.c b/src/cameras/uca_pco.c
index daba6f6..0359990 100644
--- a/src/cameras/uca_pco.c
+++ b/src/cameras/uca_pco.c
@@ -11,7 +11,7 @@ static void uca_pco_destroy(struct uca_t *uca)
pco_destroy(pco);
}
-uint8_t uca_pco_init(struct uca_t *uca)
+int uca_pco_init(struct uca_t *uca)
{
pco = pco_init();
if (!pco_active(pco)) {
diff --git a/src/cameras/uca_pco.h b/src/cameras/uca_pco.h
index c314ffe..f2e7174 100644
--- a/src/cameras/uca_pco.h
+++ b/src/cameras/uca_pco.h
@@ -3,6 +3,6 @@
struct uca_t;
-uint8_t uca_pco_init(struct uca_t *uca);
+int uca_pco_init(struct uca_t *uca);
#endif
diff --git a/src/uca.c b/src/uca.c
index 7889fe2..3549e60 100644
--- a/src/uca.c
+++ b/src/uca.c
@@ -1,5 +1,6 @@
#include <stdlib.h>
+#include "config.h"
#include "uca.h"
#ifdef HAVE_PCO_EDGE