[BRLTTY] Low-level BrlAPI questions

Aura Kelloniemi kaura.dev at sange.fi
Tue May 11 03:01:35 EDT 2021


Hi again

How are strings handled in the parameters API?

My initial thought was that string parameter values (as returned by BrlAPI)
are const char* so that this pointer is contained into the parameter value.
This would allow having a parameter that is an array of strings.

But now I came to think that most likely the parameter value contains the
characters directly. This will not allow returning an array of strings.

Which is right?

If the second, could the parameter type be changed from a string to char, and
the array handling would be applied to strings the same way as for all other
array types – except that the terminating NUL is also counted as one element.
I think this could be done in an ABI-compatible way.

-- 
Aura


More information about the BRLTTY mailing list