Re: Proposed new TS API function: TSYAMLCompatibilityCheck()

2023-04-11 Thread Leif Hedstrom
Hmmm, I’m not sure about this. Two reasons 1. We have compatibility checks already for plugins, and whatever yaml versions we have wi5 in a major version ought to always be compatible. If a plug-in uses TSYAML APIs, its compatibility ought to be guaranteed with the major version of ATS. This wo

Proposed new TS API function: TSRecYAMLConfigParse()

2023-04-11 Thread Damian Meden
typedef TSReturnCode (*TSYAMLRecNodeHandler)(const TSYAMLRecCfgFieldData *cfg, void *data); tsapi TSReturnCode TSRecYAMLConfigParse(TSYaml node, TSYAMLRecNodeHandler handler, void *data); conf_remap currently has a copy of the records.config parsing logic inside the plugin's code. The idea with

Proposed new TS API function: TSYAMLCompatibilityCheck()

2023-04-11 Thread Damian Meden
const char* TS_YAML_CPP_CORE_VERSION; int TS_YAML_CPP_CORE_VERSION_LEN; TSReturnCode TSYAMLCompatibilityCheck(const char *yamlcpp_lib_version, int yamlcpp_lib_len); This will be handy for several reasons: 1 - Avoid binary compatibility issues: Make sure that any plugin using a TS API with a TS