util.h and its impl are now c++
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>
Mon, 3 Jul 2017 09:01:28 +0000 (11:01 +0200)
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>
Tue, 8 Aug 2017 15:24:00 +0000 (17:24 +0200)
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
src/CMakeLists.txt
src/main.cpp
src/util.cpp [moved from src/util.c with 98% similarity]
src/util.hpp [moved from src/util.h with 100% similarity]
src/wayland.hpp

index fda32c1..2b81367 100644 (file)
@@ -4,8 +4,8 @@ add_executable(winman
    main.cpp
    wayland.cpp
    wayland.hpp
-   util.c
-   util.h
+   util.cpp
+   util.hpp
    ${IVI_CON_PROTO})
 
 target_compile_definitions(winman
index fbd4e46..3b01d95 100644 (file)
@@ -1,4 +1,4 @@
-#include "util.h"
+#include "util.hpp"
 #include "wayland.hpp"
 
 #include <unistd.h>
similarity index 98%
rename from src/util.c
rename to src/util.cpp
index af32269..1d0601a 100644 (file)
@@ -1,4 +1,4 @@
-#include "util.h"
+#include "util.hpp"
 
 #include <errno.h>
 #include <stdarg.h>
similarity index 100%
rename from src/util.h
rename to src/util.hpp
index 96b0199..b66bca7 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "ivi-controller-client-protocol.h"
 
-#include "util.h"
+#include "util.hpp"
 
 #include <functional>
 #include <unordered_map>