Re: Running several drivers with pictogram support

Markus Dolze <[email protected]>
Newsgroups gmane.comp.sysutils.lcdproc
Message-ID <[email protected]>
On 03.11.2011 02:38, Stefan Herdler wrote:
> Hi,
> Am 30.10.2011 13:10, Markus Dolze wrote:
>>
>> * What if two drivers define a different type for the same word? Like
>> one driver defining WLAN as a boolean type and another driver as
>> numeric type (level bar)?
>>    
> Nothing will happen.
> The client has to verify the availability of an icon before using it.
> The test has to include the icontype.
>
> A client searching for a WLAN-bartype-icon wont find one on a Display
> with a WLAN-booltype-icon.
> So nothing will happen and the icon stays dark.
>
> A driver with fancy icon names which are not supported by the clients
> is pointless.
> Thant circumstance will force the drivers programmer to use the
> recommended names for his icons.

Hi,

I want to stress that topic even more.

We need to keep in mind that it *is* possible and valid to load and run
several different drivers at the same time. In this case two drivers
that assign a different type to the same pictogram name are a problem as
LCDd core won't know which syntax shall be treated as correct.

We need to state if

a) Loading multiple drivers that support pictograms shall be allowed (I
say: yes) or
b) it should be prevented.

If a) then core should accept either

c)  all pictograms supported by all loaded drivers (superset) and ignore
errors from those that don't support one of these or
d)  the common subset of pictograms supports by all loaded drivers (I
say: yes). In this case clients can make alternate decisions for those
pictograms not supported.

Regards,
Markus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.