Andrew Stitcher created PROTON-2558:
---------------------------------------

             Summary: Provide an API to create pn_class_t instances
                 Key: PROTON-2558
                 URL: https://issues.apache.org/jira/browse/PROTON-2558
             Project: Qpid Proton
          Issue Type: Sub-task
            Reporter: Andrew Stitcher
            Assignee: Andrew Stitcher


The Proton bindings (for at least Python, C++ and ruby) need to create 
{{pn_class_t}} instances for various reasons. Currently the only way to do that 
is to use some macros in {{proton/object.h}} which create static const 
{{pn_class_t}} instances however this requires knowledge of the internals of 
the struct itself which means that it cannot be changed without breaking ABI.

So shifting this to a dynamic API is necessary to hide the internals of 
{{{}pn_class_t{}}}. This is very slightly less efficient but only in the 
startup path so it really doesn't matter all that much!



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to