[PATCH 4/5] core: add message handler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12.01.2018 16:59, Tanu Kaskinen wrote:
> On Sun, 2017-10-29 at 20:51 +0100, Georg Chini wrote:
>> +Recipient: /core
>> +Message: list-handlers
>> +Parameters: None
>> +Return value: {{Handler name} {Description}}
> I now realized that a single-level list isn't sufficient, it has to be
> a list of lists:
>
> { { {/path1} {Description 1} } { {/path2} {Description 2} } }
>
> The reason is that the list of attributes should be extensible. When
> using a single-level list, this would break old clients:
>
> { {/path1} {Description 1} {Some new attribute 1} {/path2} {Description 2} {Some new attribute 2} }
>
It is in fact a list of lists. The outermost brackets are not necessary 
because you
always pass a list of elements and the elements are of the form {{path} 
{description}}



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux