add copy and default constructors for UUID.

This commit is contained in:
Rohit Grover 2015-05-06 16:04:33 +01:00
parent 9f9e3b872d
commit e6c44ac779

View file

@ -77,6 +77,16 @@ public:
/* empty */
}
UUID(const UUID &source) {
type = source.type;
shortUUID = source.shortUUID;
memcpy(baseUUID, source.baseUUID, LENGTH_OF_LONG_UUID);
}
UUID(void) : type(UUID_TYPE_SHORT), shortUUID(BLE_UUID_UNKNOWN) {
/* empty */
}
public:
UUID_Type_t shortOrLong(void) const {return type; }
const uint8_t *getBaseUUID(void) const {