ucm: add cset-new sequence command to create new controls from UCM

This command create a new control using ID, description and value.

Syntax:

    cset-new "name='ABCD',index=2 type=boolean,count=2 on,on"
    cset-new "name='Enum' type=enum,labels='L1;L2;L3' 'L2'"

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2021-03-25 20:36:54 +01:00
parent b0b9e4b88d
commit 02423dc970
4 changed files with 197 additions and 25 deletions

View file

@ -51,8 +51,9 @@
#define SEQUENCE_ELEMENT_TYPE_EXEC 4
#define SEQUENCE_ELEMENT_TYPE_CSET_BIN_FILE 5
#define SEQUENCE_ELEMENT_TYPE_CSET_TLV 6
#define SEQUENCE_ELEMENT_TYPE_CMPT_SEQ 7
#define SEQUENCE_ELEMENT_TYPE_SYSSET 8
#define SEQUENCE_ELEMENT_TYPE_CSET_NEW 7
#define SEQUENCE_ELEMENT_TYPE_CMPT_SEQ 8
#define SEQUENCE_ELEMENT_TYPE_SYSSET 9
struct ucm_value {
struct list_head list;