We already have priv members in the structs, which are much much faster.
Created attachment 70595 [details] [review] Use ->priv where possible.
Comment on attachment 70595 [details] [review] Use ->priv where possible. Review of attachment 70595 [details] [review]: ----------------------------------------------------------------- (In reply to comment #0) > We already have priv members in the structs, which are much much faster. I don't think faster is really an argument here, given the rate at which we call those functions. However, I like the type-safety we had, especially on the public functions. Can you add SPICE_FOO(obj) checks in the public methods with this patch?
I don't think the performance really matters no, it just seems weird to use this slow complex thing when we have the priv in the public structures. However, i agree that its nice to have the typechecks.
Patch sent to ML, based on Alex patch and following Marc-Andre's recommendations: http://lists.freedesktop.org/archives/spice-devel/2014-July/017083.html
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.