Sorry to ask this question because it's more a "learning" question than
anything else. If it's not really important please ignore the question. Would someone be able to tell me why (I'm only asking out of curiosity) many internal structures (like GstMiniObject) have a "reserved" field generally called "_gst_reserved". Thanks. -- José ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
On Sun, 2010-02-07 at 19:45 -0500, José Alburquerque wrote:
> Sorry to ask this question because it's more a "learning" question than > anything else. If it's not really important please ignore the question. > > Would someone be able to tell me why (I'm only asking out of curiosity) > many internal structures (like GstMiniObject) have a "reserved" field > generally called "_gst_reserved". Thanks. It's there to allow later additions to those structures without breaking ABI. Look at GstBus' instance struct for example. Without these reserved areas, additions to the structures would change their size, which would require recompilations of everything using them. In the case of the instance/class structs all subclasses' instance/class structs would increase in size too. ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel signature.asc (205 bytes) Download Attachment |
On Mon, 2010-02-08 at 08:31 +0100, Sebastian Dröge wrote:
> It's there to allow later additions to those structures without breaking > ABI. Look at GstBus' instance struct for example. > > Without these reserved areas, additions to the structures would change > their size, which would require recompilations of everything using them. > In the case of the instance/class structs all subclasses' instance/class > structs would increase in size too. Thank you. I suspected as much but wanted a definite confirmation of what I suspected. -- José ------------------------------------------------------------------------------ SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |