Max Kellermann
|
b9cca49e14
|
lib/dbus/ReadIter: switch off -Wshadow on GCC<8
GCC 6.3.0 emits bogus warnings like this:
In file included from src/lib/dbus/UDisks2.cxx:22:0:
src/lib/dbus/ReadIter.hxx: In instantiation of 'ODBus::ReadMessageIter::ForEachProperty(F&&)::<lambda(auto:2&&)> [with auto:2 = ODBus::ReadMessageIter; F = std::_Bind<void (*(std::reference_wrapper<UDisks2::Object>, std::_Placeholder<1>, std::_Placeholder<2>))(UDisks2::Object&, const char*, ODBus::ReadMessageIter&&) noexcept>]':
src/lib/dbus/ReadIter.hxx:102:6: required from 'ODBus::ReadMessageIter::ForEachRecurse(int, F&&)::<lambda(auto:1&&)> [with auto:1 = ODBus::ReadMessageIter&; F = ODBus::ReadMessageIter::ForEachProperty(F&&) [with F = std::_Bind<void (*(std::reference_wrapper<UDisks2::Object>, std::_Placeholder<1>, std::_Placeholder<2>))(UDisks2::Object&, const char*, ODBus::ReadMessageIter&&) noexcept>]::<lambda(auto:2&&)>]'
src/lib/dbus/ReadIter.hxx:92:5: required from 'void ODBus::ReadMessageIter::ForEach(int, F&&) [with F = ODBus::ReadMessageIter::ForEachRecurse(int, F&&) [with F = ODBus::ReadMessageIter::ForEachProperty(F&&) [with F = std::_Bind<void (*(std::reference_wrapper<UDisks2::Object>, std::_Placeholder<1>, std::_Placeholder<2>))(UDisks2::Object&, const char*, ODBus::ReadMessageIter&&) noexcept>]::<lambda(auto:2&&)>]::<lambda(auto:1&&)>]'
src/lib/dbus/ReadIter.hxx:101:3: required from 'void ODBus::ReadMessageIter::ForEachRecurse(int, F&&) [with F = ODBus::ReadMessageIter::ForEachProperty(F&&) [with F = std::_Bind<void (*(std::reference_wrapper<UDisks2::Object>, std::_Placeholder<1>, std::_Placeholder<2>))(UDisks2::Object&, const char*, ODBus::ReadMessageIter&&) noexcept>]::<lambda(auto:2&&)>]'
src/lib/dbus/ReadIter.hxx:114:3: required from 'void ODBus::ReadMessageIter::ForEachProperty(F&&) [with F = std::_Bind<void (*(std::reference_wrapper<UDisks2::Object>, std::_Placeholder<1>, std::_Placeholder<2>))(UDisks2::Object&, const char*, ODBus::ReadMessageIter&&) noexcept>]'
src/lib/dbus/UDisks2.cxx:71:30: required from here
src/lib/dbus/ReadIter.hxx:114:53: error: declaration of 'ODBus::ReadMessageIter&& i' shadows a parameter [-Werror=shadow]
ForEachRecurse(DBUS_TYPE_DICT_ENTRY, [&f](auto &&i){
^
src/lib/dbus/ReadIter.hxx:101:33: note: shadowed declaration is here
ForEach(arg_type, [&f](auto &&i){
^
|
2018-09-02 08:17:21 +02:00 |
|
Max Kellermann
|
ec54754e22
|
Compiler.h: move to util/
|
2018-08-20 16:19:17 +02:00 |
|
Max Kellermann
|
8d2101ccb4
|
Main: move libdbus cleanup to class ODBus::ScopeInit
|
2018-08-01 19:24:50 +02:00 |
|
Max Kellermann
|
ba8040d068
|
storage/udisks: new plugin
Documentation will follow soon.
|
2018-06-04 22:00:52 +02:00 |
|
Max Kellermann
|
5fa94d2a85
|
lib/dbus/AsyncRequest: add missing include
|
2018-06-04 22:00:52 +02:00 |
|
Max Kellermann
|
7eee79c145
|
neighbor/udisks: move code to class UDisks2::ParseObjects(ODBus::Message)
|
2018-06-04 21:50:34 +02:00 |
|
Max Kellermann
|
9626523420
|
neighbor/udisks: move code to class UDisks2::ParseObjects(ReadMessageIter)
|
2018-06-04 21:41:51 +02:00 |
|
Max Kellermann
|
03c89c9cec
|
neighbor/udisks: move ParseObject() to UDisks2.cxx
|
2018-06-04 17:23:55 +02:00 |
|
Max Kellermann
|
640de5518b
|
neighbor/udisks: move struct UdisksObject to UDisks2.hxx
|
2018-06-04 17:23:55 +02:00 |
|
Max Kellermann
|
a92c694f1b
|
neighbor/Iter: add missing include
|
2018-06-04 17:23:55 +02:00 |
|
Max Kellermann
|
a159299a4b
|
lib/dbus/AsyncRequest: new helper class
|
2018-06-04 12:21:17 +02:00 |
|
Max Kellermann
|
d048545f1a
|
lib/dbus/Connection: add DBusConnection& cast operator
|
2018-06-04 12:20:41 +02:00 |
|
Max Kellermann
|
aea6d354b7
|
lib/dbus/ObjectManager: use TypeTraits instead of CPP macro
|
2018-06-03 20:30:08 +02:00 |
|
Max Kellermann
|
d3793dfe5b
|
lib/dbus/Types: add ObjectPathTypeTraits
|
2018-06-03 20:30:08 +02:00 |
|
Max Kellermann
|
234f8d287a
|
lib/dbus/Types: rename _MakeStructTypeAsString to ConcatTypeAsString
|
2018-06-03 20:29:01 +02:00 |
|
Max Kellermann
|
e560f6bc63
|
lib/dbus/ReadIter: add ForEachProperty()
|
2018-06-03 20:18:46 +02:00 |
|
Max Kellermann
|
fbfbc5682a
|
lib/dbus/ReadIter: add ForEachRecurse()
|
2018-06-03 20:18:08 +02:00 |
|
Max Kellermann
|
d4141bf7f1
|
lib/dbus/ReadIter: add API documentation
|
2018-06-03 20:05:37 +02:00 |
|
Max Kellermann
|
6c81fa1ec5
|
neighbor/udisks: move code to ForEachInterface()
|
2018-06-03 14:47:12 +02:00 |
|
Max Kellermann
|
b63664988f
|
lib/dbus/Types: support DBUS_TYPE_DICT_ENTRY
|
2018-06-03 12:19:17 +02:00 |
|
Max Kellermann
|
37e25f93d6
|
lib/dbus/Glue: move Connect()/Disconnect() calls to I/O thread
|
2018-06-03 12:08:37 +02:00 |
|
Max Kellermann
|
d58d65ebf0
|
lib/dbus/Glue: use private connection
Avoid interfering with libraries also using the shared connection.
|
2018-06-03 11:00:58 +02:00 |
|
Max Kellermann
|
f3ffdaf21f
|
lib/dbus/Glue: singleton for global initialization
|
2018-06-03 09:28:04 +02:00 |
|
Max Kellermann
|
dc111bbec2
|
odbus: import dbus-1 OO wrapper library
From a7cef404c1
To be used by upcoming code.
|
2018-06-02 19:15:56 +02:00 |
|