Skip to content

Commit

Permalink
[IDNSServer] Make the interface explicit. (#304)
Browse files Browse the repository at this point in the history
Remove the redundancy of the label/designator as it is also part of the RECORD..
  • Loading branch information
pwielders authored Oct 31, 2023
1 parent 55a4076 commit 1807c13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions interfaces/IDNSServer.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,16 @@ namespace Exchange {
};

type Type;
string Label;
string Designator;
string Value;
};

~IDNS() override = default;

virtual Core::hresult FindByType(const Record::type kind, const string& designator, Record& entry /* @out */) = 0;
virtual Core::hresult FindByIndex(const uint8_t index, const string& designator, Record& entry /* @out */) = 0;
virtual Core::hresult Add(const string& designator, const Record& entry) = 0;
virtual Core::hresult Remove(const string designator, const Record& record) = 0;
virtual Core::hresult Add(const Record& entry) = 0;
virtual Core::hresult Remove(const Record& record) = 0;
};


Expand Down

0 comments on commit 1807c13

Please sign in to comment.