You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Andrew Stitcher (Jira)" <ji...@apache.org> on 2022/06/07 18:39:00 UTC
[jira] [Created] (PROTON-2558) Provide an API to create pn_class_t instances
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: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org