diff options
| author | Alan Somers <asomers@FreeBSD.org> | 2017-10-26 17:56:34 +0000 |
|---|---|---|
| committer | Alan Somers <asomers@FreeBSD.org> | 2017-10-26 17:56:34 +0000 |
| commit | 33d9904abc19905861ec8a0ccf9b435eb955faed (patch) | |
| tree | d882d0a3940b89b7c35725eeff259c394ce3d32b /lib/libdevdctl | |
| parent | bf8d9a5b94bd1e9b52b5d1f940762b50c7116cb7 (diff) | |
Notes
Diffstat (limited to 'lib/libdevdctl')
| -rw-r--r-- | lib/libdevdctl/guid.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/libdevdctl/guid.h b/lib/libdevdctl/guid.h index e40d3f983aab..02ea6f27dc04 100644 --- a/lib/libdevdctl/guid.h +++ b/lib/libdevdctl/guid.h @@ -62,7 +62,11 @@ class Guid { public: /* Constructors */ + /* Default constructor: an Invalid guid */ + Guid(); + /* Construct a guid from a provided integer */ Guid(uint64_t guid); + /* Construct a guid from a string in base 8, 10, or 16 */ Guid(const std::string &guid); static Guid InvalidGuid(); @@ -89,6 +93,12 @@ protected: //- Guid Inline Public Methods ------------------------------------------------ inline +Guid::Guid() + : m_GUID(INVALID_GUID) +{ +} + +inline Guid::Guid(uint64_t guid) : m_GUID(guid) { |
