5 Jul
2012
5 Jul
'12
12:35 p.m.
On Thu, Jul 05, 2012 at 11:55:36AM +0200, Takashi Iwai wrote:
The rule->private pointer isn't designed to be always const. The data purely depends on each rule function, thus whether it can be const or not also depends on the rule, too. For simple rules like list take indeed the constant list. But more complex rules may take a struct containing variables changed on the fly (e.g. the max rate set by user via control API).
Well, it's mostly const - it's const unless the rule itself starts fiddling with stuff which I'd have expected to be the exception rather than the rule.