Commit c6c62b0152b3ef837f3d7341f045f5457fa096d2
1 parent
66e26bc1
Preparating for public interface
Showing
6 changed files
with
7 additions
and
0 deletions
include/mqttpublisherbase.h
0 → 100644
include/mqttsubscriberbase.h
0 → 100644
src/CMakeLists.txt
@@ -31,9 +31,12 @@ include(compiler) | @@ -31,9 +31,12 @@ include(compiler) | ||
31 | 31 | ||
32 | include_directories( | 32 | include_directories( |
33 | ${CMAKE_CURRENT_SOURCE_DIR}/../logutils | 33 | ${CMAKE_CURRENT_SOURCE_DIR}/../logutils |
34 | + ${CMAKE_CURRENT_SOURCE_DIR}/../include | ||
34 | ) | 35 | ) |
35 | 36 | ||
36 | set(SRC_LIST | 37 | set(SRC_LIST |
38 | + ${CMAKE_CURRENT_SOURCE_DIR}/mqttpublisherbase.cpp | ||
39 | + ${CMAKE_CURRENT_SOURCE_DIR}/mqttsubscriberbase.cpp | ||
37 | ${CMAKE_CURRENT_SOURCE_DIR}/clientpaho.cpp | 40 | ${CMAKE_CURRENT_SOURCE_DIR}/clientpaho.cpp |
38 | ${CMAKE_CURRENT_SOURCE_DIR}/commondefs.cpp | 41 | ${CMAKE_CURRENT_SOURCE_DIR}/commondefs.cpp |
39 | ${CMAKE_CURRENT_SOURCE_DIR}/connectionstatus.cpp | 42 | ${CMAKE_CURRENT_SOURCE_DIR}/connectionstatus.cpp |
src/compat-chrono.h
@@ -48,7 +48,11 @@ To ceil(const std::chrono::duration<Rep, Period>& d) | @@ -48,7 +48,11 @@ To ceil(const std::chrono::duration<Rep, Period>& d) | ||
48 | { | 48 | { |
49 | To t = std::chrono::duration_cast<To>(d); | 49 | To t = std::chrono::duration_cast<To>(d); |
50 | if (t < d) | 50 | if (t < d) |
51 | + { | ||
51 | return t + To{ 1 }; | 52 | return t + To{ 1 }; |
53 | + } | ||
54 | + | ||
55 | + // or else... | ||
52 | return t; | 56 | return t; |
53 | } | 57 | } |
54 | 58 |
src/mqttpublisherbase.cpp
0 → 100644
src/mqttsubscriberbase.cpp
0 → 100644