node: add port and node params

Add a new struct spa_param_info that lists the available params on
a node/port and if they are readable/writable/updated. We can use
this to replace and improve the PARAM_List and also to notify
property change and updates.

Update elements and code to deal with this new param stuff. Add
port and node info to most elements and signal changes.

Use async enum_params in -inspect and use the param info to know
which ones to enumerate.

Use the port info to know what parameters to update in the
remote-node.
This commit is contained in:
Wim Taymans 2019-02-27 16:43:01 +01:00
parent 3d25adc598
commit 499dd3ff22
52 changed files with 1979 additions and 1461 deletions

View file

@ -112,15 +112,14 @@ static void test_abi(void)
spa_assert(SPA_TYPE_OBJECT_START == 0x50000);
spa_assert(SPA_TYPE_OBJECT_MonitorItem == 0x50001);
spa_assert(SPA_TYPE_OBJECT_ParamList == 0x50002);
spa_assert(SPA_TYPE_OBJECT_PropInfo == 0x50003);
spa_assert(SPA_TYPE_OBJECT_Props == 0x50004);
spa_assert(SPA_TYPE_OBJECT_Format == 0x50005);
spa_assert(SPA_TYPE_OBJECT_ParamBuffers == 0x50006);
spa_assert(SPA_TYPE_OBJECT_ParamMeta == 0x50007);
spa_assert(SPA_TYPE_OBJECT_ParamIO == 0x50008);
spa_assert(SPA_TYPE_OBJECT_ParamProfile == 0x50009);
spa_assert(SPA_TYPE_OBJECT_LAST == 0x5000a);
spa_assert(SPA_TYPE_OBJECT_PropInfo == 0x50002);
spa_assert(SPA_TYPE_OBJECT_Props == 0x50003);
spa_assert(SPA_TYPE_OBJECT_Format == 0x50004);
spa_assert(SPA_TYPE_OBJECT_ParamBuffers == 0x50005);
spa_assert(SPA_TYPE_OBJECT_ParamMeta == 0x50006);
spa_assert(SPA_TYPE_OBJECT_ParamIO == 0x50007);
spa_assert(SPA_TYPE_OBJECT_ParamProfile == 0x50008);
spa_assert(SPA_TYPE_OBJECT_LAST == 0x50009);
spa_assert(SPA_TYPE_VENDOR_PipeWire == 0x02000000);
spa_assert(SPA_TYPE_VENDOR_Other == 0x7f000000);