-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sometimes is it necessary to support multiple interfaces on a single D-Bus object. This commit extends the `Skeleton` class template to allow multiple interfaces. It can similarly be useful to simply rely on the built-in support for various FreeDesktop interfaces, so the `Skeleton<>` class template should allow you have _no_ interfaces.
- Loading branch information
Showing
17 changed files
with
824 additions
and
303 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#ifndef SIMPPL_DETAIL_INTERPOSER_H | ||
#define SIMPPL_DETAIL_INTERPOSER_H | ||
|
||
namespace simppl | ||
{ | ||
|
||
namespace dbus | ||
{ | ||
|
||
namespace detail | ||
{ | ||
|
||
|
||
template<int Id, | ||
typename AncestorT, | ||
template<typename...> class Method, | ||
template<typename...> class Signal, | ||
template<typename, int> class Property, | ||
template<int, typename, template<typename...> class, template<typename...> class, template<typename, int> class, typename> class I, | ||
template<int, typename, template<typename...> class, template<typename...> class, template<typename, int> class, typename> class... Is> | ||
struct Interposer : I<Id, AncestorT, Method, Signal, Property, Interposer<Id-1, AncestorT, Method, Signal, Property, Is...>> {}; | ||
|
||
template<typename AncestorT, | ||
template<typename...> class Method, | ||
template<typename...> class Signal, | ||
template<typename, int> class Property, | ||
template<int, typename, template<typename...> class, template<typename...> class, template<typename, int> class, typename> class I> | ||
struct Interposer<0, AncestorT, Method, Signal, Property, I> : I<0, AncestorT, Method, Signal, Property, AncestorT> {}; | ||
|
||
|
||
} // detail | ||
|
||
} // dbus | ||
|
||
} // simppl | ||
|
||
#endif // SIMPPL_DETAIL_INTERPOSER_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.