diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-05-30 18:11:55 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-05-30 18:11:55 +0200 |
| commit | bcf99dcfcf498d459e60be72aabcf34193fbe4c5 (patch) | |
| tree | c493bac57f6c1dbed7da69d17b6db70e807bb540 /src/lib/dkdm_wrapper.h | |
| parent | debc0ef69468530ba482c8ed0fc6a1ac1f26b26e (diff) | |
Don't add DKDMs twice (#2545).
Diffstat (limited to 'src/lib/dkdm_wrapper.h')
| -rw-r--r-- | src/lib/dkdm_wrapper.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/dkdm_wrapper.h b/src/lib/dkdm_wrapper.h index 7227fdc86..d15f017c5 100644 --- a/src/lib/dkdm_wrapper.h +++ b/src/lib/dkdm_wrapper.h @@ -93,6 +93,8 @@ public: void add (std::shared_ptr<DKDMBase> child, std::shared_ptr<DKDM> previous = std::shared_ptr<DKDM>()); void remove (std::shared_ptr<DKDMBase> child); + bool contains(std::string dkdm_id) const; + private: std::string _name; std::list<std::shared_ptr<DKDMBase>> _children; |
