Michal Hučko
dc6d55a282
Provide CMake config and PkgConfig files for tools ( #172 )
2021-04-28 11:15:47 +02:00
riuriuriu
3f54b5e762
comment sd_bus_match_signal() requires libsystemd v237
2021-04-13 15:59:35 +02:00
riuriuriu
fe8cdce107
update changelog: v0.8.4
2021-04-13 15:59:35 +02:00
riuriuriu
d47e9d1834
fix issue 145, signals are not filtered by sender
2021-04-13 15:59:35 +02:00
Urs Ritzmann
b9723850b8
add integrationtest for issue 145
2021-04-13 15:59:35 +02:00
riuriuriu
e1008dd8cf
reformat CMake linking
2021-04-13 11:02:20 +02:00
Luca Boccassi
fc9f770512
Find and link against pthread
...
Building on SUSE fails, as std::thread usage requires linking
against pthread:
/usr/bin/c++ -fPIC -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -DNDEBUG -O3 -DNDEBUG -flto=auto -Wl,--as-needed -Wl,--no-undefined -Wl,-z,now -shared -Wl,-soname,libsdbus-c++.so.0 -o libsdbus-c++.so.0.8.3 CMakeFiles/sdbus-c++-objlib.dir/src/Connection.cpp.o CMakeFiles/sdbus-c++-objlib.dir/src/Error.cpp.o CMakeFiles/sdbus-c++-objlib.dir/src/Message.cpp.o CMakeFiles/sdbus-c++-objlib.dir/src/Object.cpp.o CMakeFiles/sdbus-c++-objlib.dir/src/Proxy.cpp.o CMakeFiles/sdbus-c++-objlib.dir/src/Types.cpp.o CMakeFiles/sdbus-c++-objlib.dir/src/Flags.cpp.o CMakeFiles/sdbus-c++-objlib.dir/src/VTableUtils.c.o CMakeFiles/sdbus-c++-objlib.dir/src/SdBus.cpp.o /usr/lib64/libsystemd.so
/usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: /tmp/libsdbus-c++.so.0.8.3.uWoUml.ltrans0.ltrans.o: in function `sdbus::internal::Connection::enterEventLoopAsync()':
<artificial>:(.text+0x2bb): undefined reference to `pthread_create'
/usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: /tmp/libsdbus-c++.so.0.8.3.uWoUml.ltrans0.ltrans.o: in function `non-virtual thunk to sdbus::internal::Connection::enterEventLoopAsync()':
<artificial>:(.text+0x37a): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
2021-04-13 10:56:43 +02:00
alivenets
5e03e78451
feat: add API to get message credentials ( #151 )
...
* sdbus-cpp: Add API to get message credentials
Signed-off-by: Alexander Livenets <a.livenets@gmail.com >
* fix: add <sys/types.h> include for gid_t and other types
Co-authored-by: Stanislav Angelovič <angelovic.s@gmail.com >
2021-03-12 14:14:23 +01:00
Knut Tidemann
3f74512f8e
cmake: fix building with BUILD_LIBSYSTEMD and ninja generator ( #138 )
...
The ninja generator requires the BUILD_BYPRODUCTS specifier to work out the dependencies.
2021-03-12 14:07:10 +01:00
Michael Davis
0090ca97ee
fix: missing copy assignment operator ( #120 )
...
Explicitly list default copy assignment operator otherwise it is deleted in gcc 8.3.
2021-03-12 14:03:25 +01:00
Stanislav Angelovic
a649a0225e
style: fix indentation in CMakeLists.txt
2021-03-12 14:01:02 +01:00
Yonggang Luo
cfb9956de6
Fixes for floating point systemd version such as 243.4 ( #128 )
...
```
~/package $ pkg-config --modversion libsystemd
243.4
~/package $
```
Split it to the list and use the first one
2021-03-12 13:26:21 +01:00
bobrofon
fb008445b1
xml2cpp: Add missing EXPAT include dirs ( #136 )
...
This patch is required if EXPAT library is installed in non-standard location.
Without 'target_include_directories' cmake will find EXPAT library:
...
-- Found EXPAT: .../lib/libexpat.a (found version "2.2.10")
...
But 'xml.cpp' compilation will fail with error:
...
tools/xml2cpp-codegen/xml.cpp:7:10: fatal error: expat.h: No such file or directory
7 | #include <expat.h>
...
2021-03-12 13:17:55 +01:00
Cameron Nemo
1e2a09cccf
docs: note expat dependency ( #131 )
...
* docs: note expat dependency
* Add description for expat dependency
Co-authored-by: Stanislav Angelovič <angelovic.s@gmail.com >
2021-03-12 13:15:07 +01:00
Stanislav Angelovič
a9f2043daa
Fix examples in the tutorial
...
Remove sdbus:: namespace in injected-class-name of the template base class in c-tor initialization list
2021-03-10 09:49:25 +01:00
Stanislav Angelovič
96b2dfff69
Update using-sdbus-c++.md
...
Fix name of class in destructor
2021-03-09 17:04:43 +01:00
Stanislav Angelovič
d6fdacafbe
Try to first find googletest in the system before downloading it ( #125 )
2020-11-16 17:05:36 +01:00
Stanislav Angelovic
b190646aa5
Make a note in README about an exception for LGPL license
2020-10-11 14:27:14 +02:00
Stanislav Angelovic
1c56f069dd
Add license exception for template code in header files
2020-10-11 14:25:14 +02:00
Stanislav Angelovic
6e8e5aadb6
Bump up to v0.8.3
v0.8.3
2020-09-11 22:29:15 +02:00
Stanislav Angelovič
3b735bf1aa
Introduce CI workflow based on GitHub Actions ( #114 )
...
This introduces GitHub CI which runs builds and tests in a matrix configuration. It also changes the systemd repo to stable one. And puts the CI badge (plus a few more badges) to the README page.
Fixes #44
2020-07-22 16:35:42 +02:00
Stanislav Angelovic
2f7b35c5a8
Fix unused variable warnings for release builds
2020-07-21 15:44:16 +02:00
Stanislav Angelovic
d5867e1197
Fix unused variable warning for release builds
2020-07-21 15:32:31 +02:00
Stanislav Angelovic
250aa2bbe3
Add additional messages to CMake build for optional parts
2020-07-21 12:12:14 +02:00
Stanislav Angelovic
e63357b222
Remove non-virtual-dtor warnings by making classes final
2020-07-21 11:12:57 +02:00
Stanislav Angelovič
2c6be0307f
Update CMake configuration flag names
2020-07-19 18:23:19 +02:00
sangelovic
138a437b22
Fix #112 : Address a few inconsistencies and make code more idiomatic
2020-07-18 20:47:05 +02:00
sangelovic
cc8d88cc64
Fix GetObjectPath() in integration tests
2020-07-18 20:30:51 +02:00
sangelovic
bded067496
Fix #43 : Clean up integration tests
2020-07-18 20:21:47 +02:00
Tomas Pecka
c1c4512f9f
Fix build with gcc8.3
...
sdbus::ObjectPath and sdbus::Signature copy constructors are implicitly
declared as deleted when compiling with Linaro's ARM toolchain [1] gcc8.3.
Explicitly listing the copy constructors for affected classes fixes the problem.
[1] https://www.linaro.org/
2020-07-16 18:53:18 +02:00
Stanislav Angelovic
175c43ec53
Bump revision up to v0.8.2
v0.8.2
2020-06-17 15:29:46 +02:00
Stanislav Angelovic
c137dfa213
Fix potential data race in Proxy's condition variable
2020-06-17 09:13:30 +02:00
Stanislav Angelovic
a0dadcc6fe
Fix integration tests after getObjectPath() introduction failed them
2020-06-16 17:25:01 +02:00
Jan Kundrát
0d010440c5
Fix build with clang 9.0.1 and libcxx
...
This should not be required in C++17 because there is an appropriate
class template deduction rule [1] which infers that it's going to be a
weak_ptr<T> when constructing from a shared_ptr<T>. However, in
clang/LLVM's libcxx C++ STL implementation this only got implemented in
May 2020 [2].
[1] https://en.cppreference.com/w/cpp/memory/weak_ptr/deduction_guides
[2] https://reviews.llvm.org/D69603
2020-06-16 16:51:53 +02:00
ChristianS99
ae8849e545
Implement #104 : add getObjectPath() for classes ( #105 )
...
* Implement #104 : add getObjectPath() for classes
* Implement #104 : changes requested in review
Co-authored-by: Christian Schneider <cschneider@radiodata.biz >
2020-05-28 15:36:58 +02:00
sangelovic
fb35a9a196
Fix integration test cases failing in specific situations
2020-05-17 15:06:29 +02:00
sangelovic
6cbd49ddaa
Install proper public sd-bus headers in internal libsystemd build
2020-05-17 15:05:24 +02:00
ChristianS99
fb0a70a831
Fix #101 : sanitize names of namespaces/methods/signals/properties/arguments ( #102 )
...
- add a list of c++ keywords and common defines
- sanitize names so that there are no functions/args with names that are reserved in c++
Co-authored-by: Christian Schneider <cschneider@radiodata.biz >
2020-05-16 22:57:37 +02:00
Viliam Lejcik
9af20af001
Fixed integration tests for libsystemd older than 242
2020-05-09 22:02:57 +02:00
Benjamin Kaufmann
63bbb07ef0
Fixup for 00d0837d98
...
* Add PendingAsyncCall return value to all relevant overloads of
IProxy::callMethod().
2020-04-08 16:41:29 +02:00
sangelovic
00d0837d98
Introduce support for cancellable async calls
2020-04-04 16:30:56 +02:00
sangelovic
e91bedd4cb
Fix #92 : CallData race condition in Proxy::callMethod
2020-04-02 20:46:38 +02:00
Oliver Tappe
dc66efbbcb
Fix #93 : Get signals working for multiple proxies.
...
* Proxy::sdbus_signal_handler() needs to return 0 instead of 1 in
order to allow multiple proxies listening to a signal all being
triggered.
* Add test for emitting a signal to multiple proxies on same
connection.
2020-03-26 21:19:18 +01:00
Stanislav Angelovič
a23aadbe5e
Fix required CMake version to v3.13
...
Fixes #86
2020-02-14 14:31:14 +01:00
Viliam Lejcik
ae57c6760b
sdbus-c++-xml2cpp: fixed file existence condition
...
fixes issue: https://github.com/Kistler-Group/sdbus-cpp/issues/83
2020-02-04 12:18:50 +01:00
Stanislav Angelovič
21820f7529
Update using-sdbus-c++.md
2020-02-02 23:03:24 +01:00
sangelovic
3a4f343fb9
Provide better names to event loop-related IConnection methods
v0.8.1
2020-02-02 22:22:26 +01:00
sangelovic
dee6adce02
Bump revision up to v0.8.1
2020-02-02 02:31:39 +01:00
sangelovic
3e68fee4cd
Switch to more modern CMake
2020-02-02 02:29:32 +01:00
sangelovic
8dfd29b0f0
Fix clang-9 warnings
2020-02-01 23:26:27 +01:00