GNOME Bugzilla – Bug 735919
Remove access to RestProxyCallPrivate data from derived classes
Last modified: 2014-09-03 08:57:29 UTC
The fact that subclasses access RestProxyCallPrivateData caused some regressions after the change from bgo #708359. This patch series removes this direct access.
Created attachment 285172 [details] [review] oauth: Remove direct access to RestProxyCallPrivate OAuthProxyCall was directly accessing private RestProxyCall data. With the addition of rest_proxy_call_get_url(), OAuthProxyCall can be implemented without directly accessing these members.
Created attachment 285173 [details] [review] flickr: Remove direct access to RestProxyCallPrivate Now that FlickrProxyCall no longer directly modifies RestProxyCall::url, it's trivial to remove all accesses to RestProxyCallPrivate.
Created attachment 285174 [details] [review] lastfm: Remove direct access to RestProxyCallPrivate Now that LastFMProxyCall no longer directly modifies RestProxyCall::url, it's trivial to remove all accesses to RestProxyCallPrivate.
Created attachment 285175 [details] [review] Move RestProxyCallPrivate to rest-proxy-call.c It was in a separate rest-proxy-call.h header which allowed derived classes to access RestProxyCall private data without any control. Better to go through explicit methods to do that.
Created attachment 285186 [details] [review] Add private rest_proxy_call_get_url() This will be used by OAuthProxyCall so that it does not have to poke directly at RestProxyCallPrivate.
it looks like the last patch should be first. series looks good otherwise
Yep, last patch is first in my git history, I just missed it when attaching the patches.
Attachment 285172 [details] pushed as a721391 - oauth: Remove direct access to RestProxyCallPrivate Attachment 285173 [details] pushed as 9030b86 - flickr: Remove direct access to RestProxyCallPrivate Attachment 285174 [details] pushed as 3ec0311 - lastfm: Remove direct access to RestProxyCallPrivate Attachment 285175 [details] pushed as 73984ab - Move RestProxyCallPrivate to rest-proxy-call.c