Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eff63118 authored by Courtney Goeltzenleuchter's avatar Courtney Goeltzenleuchter Committed by Jesse Hall
Browse files

loader: Add GetName and GetDescription for logs

Handy to have more layer detail for logging.

Change-Id: I6933a8fcb90b9cfb70fc85a358244863aac9d702
(cherry picked from commit cf275f37)
parent 1dd712ae
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -394,6 +394,14 @@ LayerRef::~LayerRef() {
    }
}

const char* LayerRef::GetName() {
    return layer_->properties.layerName;
}

uint32_t LayerRef::GetSpecVersion() {
    return layer_->properties.specVersion;
}

LayerRef::LayerRef(LayerRef&& other) : layer_(std::move(other.layer_)) {
    other.layer_ = nullptr;
}
+3 −0
Original line number Diff line number Diff line
@@ -150,6 +150,9 @@ class LayerRef {
    LayerRef(const LayerRef&) = delete;
    LayerRef& operator=(const LayerRef&) = delete;

    const char* GetName();
    uint32_t GetSpecVersion();

    // provides bool-like behavior
    operator const Layer*() const { return layer_; }