diff options
| author | William A. Kennington III <wak@google.com> | 2018-07-17 14:40:14 -0700 |
|---|---|---|
| committer | William A. Kennington III <wak@google.com> | 2018-07-17 14:40:14 -0700 |
| commit | 4863b96b8e6a6c02397c5ca44ed6ea51b4753286 (patch) | |
| tree | 680d8d96b15f68b950e05516e84aff028b12de73 /src | |
| parent | 7c24e05704497d7bbf99b18cfd19b0a591ed29ef (diff) | |
| download | sdeventplus-4863b96b8e6a6c02397c5ca44ed6ea51b4753286.tar.gz sdeventplus-4863b96b8e6a6c02397c5ca44ed6ea51b4753286.zip | |
source/base: Make it possible to get the underlying sd_event_source
Diffstat (limited to 'src')
| -rw-r--r-- | src/sdeventplus/source/base.cpp | 5 | ||||
| -rw-r--r-- | src/sdeventplus/source/base.hpp | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/sdeventplus/source/base.cpp b/src/sdeventplus/source/base.cpp index 3e164ca..d9dd127 100644 --- a/src/sdeventplus/source/base.cpp +++ b/src/sdeventplus/source/base.cpp @@ -45,6 +45,11 @@ int Base::prepareCallback() } } +sd_event_source* Base::get() const +{ + return source.get(); +} + const Event& Base::get_event() const { return event; diff --git a/src/sdeventplus/source/base.hpp b/src/sdeventplus/source/base.hpp index f8db620..b6fd47b 100644 --- a/src/sdeventplus/source/base.hpp +++ b/src/sdeventplus/source/base.hpp @@ -27,6 +27,7 @@ class Base int prepareCallback(); + sd_event_source* get() const; const Event& get_event() const; const char* get_description() const; |

