[BRLTTY] Low-level BrlAPI questions

Samuel Thibault samuel.thibault at ens-lyon.org
Tue May 11 03:52:42 EDT 2021


Aura Kelloniemi, le mar. 11 mai 2021 09:49:04 +0300, a ecrit:
> I am happy that this sorts out. Should there also be can_watch flag?

I was wondering about it the other day. Aren't all readable parameters
also watchable?

> And what about a field (at the end of the struct) that tells the maximum size
> of the parameter value array (in bytes or elements)? Or is there already a way
> to know how much space to allocate for a parameter value?

The current count field is to provide this information.

For variable values, brlapi_getParameter returns the actually needed
size, so you can re-allocate a bigger buffer. Or to avoid a round-trip
you can use getParameterAlloc which immediately allocates the proper
size.

Samuel


More information about the BRLTTY mailing list