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 _______________________________________________ This message was sent via the BRLTTY mailing list. To post a message, send an e-mail to: [email protected] For general information, go to: http://brltty.app/mailman/listinfo/brltty
