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

Commit a0f5906b authored by Courtney Goeltzenleuchter's avatar Courtney Goeltzenleuchter Committed by android-build-merger
Browse files

loader: Add GetName and GetDescription for logs

am: eff63118

* commit 'eff63118':
  loader: Add GetName and GetDescription for logs
parents dcf79be5 eff63118
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_; }