You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/06/08 20:37:00 UTC

[jira] [Commented] (PROTON-2558) Provide an API to create pn_class_t instances

    [ https://issues.apache.org/jira/browse/PROTON-2558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17551783#comment-17551783 ] 

ASF subversion and git services commented on PROTON-2558:
---------------------------------------------------------

Commit b18da591521709102d3957b7407706d8060796cf in qpid-proton's branch refs/heads/main from Andrew Stitcher
[ https://gitbox.apache.org/repos/asf?p=qpid-proton.git;h=b18da5915 ]

PROTON-2558: Add make class operation to hide class details

The new operation is used by the bindings to create proton objects
without needing to know the details of the pn_class_t struct.


> 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
>            Priority: Major
>
> 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