Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for DBus object path type #17

Merged
merged 4 commits into from
Jun 27, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added toHash function for usage of ObjectPath as KeyType in AAs
thaven committed Jun 25, 2017
commit 884b31fa9f1b7380730c570760b9d5b5b3586e37
4 changes: 4 additions & 0 deletions source/ddbus/thin.d
Original file line number Diff line number Diff line change
@@ -42,6 +42,10 @@ struct ObjectPath {
return _value;
}

size_t toHash() const pure nothrow @trusted {
return hashOf(_value);
}

bool opEquals(const ObjectPath b) const {
return _value == b._value;
}