From: Andre Noll Date: Tue, 6 Oct 2015 02:32:31 +0000 (+0000) Subject: Constify struct filter access and introduce filter_get(). X-Git-Tag: v0.5.6~65 X-Git-Url: http://git.tuebingen.mpg.de/?a=commitdiff_plain;h=b0a115ed731885c92fcd8b6fb1c89b97dca410e8;hp=b0a115ed731885c92fcd8b6fb1c89b97dca410e8;p=paraslash.git Constify struct filter access and introduce filter_get(). This modifies all users of the filter API to not access the filter array directly. Instead all callers now obtain a const pointer to the filter structure through the new filter_get() accessor function. However, the filter array can not be made constant yet because the ->init methods modify the filter structure. This requires some casts in filter_common.c unfortunately. ---