diff options
author | Marcin Miklas <marcin.miklas@harman.com> | 2021-06-21 08:51:08 +0200 |
---|---|---|
committer | Marcin Miklas <marcin.miklas@harman.com> | 2021-06-21 09:44:26 +0200 |
commit | 12d5c8317c398f7fc7fccf85f35b5673a99f77cb (patch) | |
tree | cc283e937918be370f4e6adda59e7b93b607916a | |
parent | a63a5148dd8c5d31a38cc90b51747f302fb2faed (diff) | |
download | Open-AVB-12d5c8317c398f7fc7fccf85f35b5673a99f77cb.tar.gz |
Added description for new functions.
-rw-r--r-- | lib/avtp_pipeline/platform/Linux/avb_host/openavb_harness.c | 8 | ||||
-rwxr-xr-x | lib/avtp_pipeline/tl/openavb_tl_pub.h | 12 |
2 files changed, 19 insertions, 1 deletions
diff --git a/lib/avtp_pipeline/platform/Linux/avb_host/openavb_harness.c b/lib/avtp_pipeline/platform/Linux/avb_host/openavb_harness.c index c70c360a..5a307fef 100644 --- a/lib/avtp_pipeline/platform/Linux/avb_host/openavb_harness.c +++ b/lib/avtp_pipeline/platform/Linux/avb_host/openavb_harness.c @@ -157,6 +157,14 @@ void openavbTlHarnessMenu() ); } +// manually matches following regular expression: +// +// /(\d+)\s+([^\s]+)\s+(.*)\s*/ +// +// where: +// $1 - idx +// $2 - name +// $3 - value int parse_idx_name_value(char* line, int* pIdx, char** pName, char** pValue) { char *token = NULL; diff --git a/lib/avtp_pipeline/tl/openavb_tl_pub.h b/lib/avtp_pipeline/tl/openavb_tl_pub.h index 0c7211ae..53c06865 100755 --- a/lib/avtp_pipeline/tl/openavb_tl_pub.h +++ b/lib/avtp_pipeline/tl/openavb_tl_pub.h @@ -240,7 +240,17 @@ tl_handle_t openavbTLOpen(void); void openavbTLInitCfg(openavb_tl_cfg_t *pCfg); -void openavbTlChangeConfig(tl_handle_t handle, openavb_tl_cfg_name_value_t *pNVCfg); +/** Change talker's / listener's configuration item + * + * Changes one configuration option of talker / listener from name value pair. + * Only intf_nv_ and map_nv_ names are supported. + * Can be called while stream is running, assuming that map and intf modules + * are prepared for runtime changes of particular configration item. + * + * @param handle Handle of talker/listener + * @param pNVCfg Pointer to name value pair configuration structure + */ +void openavbTlChangeConfig(tl_handle_t handle, openavb_tl_cfg_name_value_t* pNVCfg); /** Configure the talker / listener. * |