Add output and connected outputs config API
ClosedPublic

Authored by romangg on Nov 12 2018, 5:39 PM.

Details

Summary

In order to support writing and retrieving config data by API consumers
introduce two API exposed functions for calculating hash values of
individual outputs and configs dependent on the currently connected
outputs.

This allows to move the similar code path out of kscreen.

Test Plan

Compiles.

Diff Detail

Repository
R110 KScreen Library
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
romangg created this revision.Nov 12 2018, 5:39 PM
Restricted Application added a project: Plasma. · View Herald TranscriptNov 12 2018, 5:39 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
romangg requested review of this revision.Nov 12 2018, 5:39 PM
davidedmundson accepted this revision.Nov 12 2018, 5:49 PM
This revision is now accepted and ready to land.Nov 12 2018, 5:49 PM
apol added a subscriber: apol.Nov 13 2018, 2:20 AM

Don't we already have a hash per config?

src/config.h
126

X=53 :)

In D16843#358678, @apol wrote:

Don't we already have a hash per config?

Not that I know of. There are output ids, but they get lost after restarts.

src/config.h
126

You mean X=15. libkscreen is part of Plasma.

This revision was automatically updated to reflect the committed changes.