[
https://issues.apache.org/jira/browse/PROTON-2557?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17551780#comment-17551780
]
ASF subversion and git services commented on PROTON-2557:
---------------------------------------------------------
Commit d9ccd2923be628ac85e8a8da45090d981f0585cd in qpid-proton's branch
refs/heads/main from Andrew Stitcher
[ https://gitbox.apache.org/repos/asf?p=qpid-proton.git;h=d9ccd2923 ]
PROTON-2557: Introduce pn_tostring in place of pn_inspect
Introduce and use a new API pn_tostring which produces a string
representation of a Proton object in a char* string. It allocates this
string with malloc and the application must free it.
This replaces pn_inspect which requires the application to use the
pn_string_t type purely to receive the string output. But we really
don't want or need to expose this type outside the library itself.
> Provide an alternative API to pn_inspect
> ----------------------------------------
>
> Key: PROTON-2557
> URL: https://issues.apache.org/jira/browse/PROTON-2557
> Project: Qpid Proton
> Issue Type: Sub-task
> Reporter: Andrew Stitcher
> Assignee: Andrew Stitcher
> Priority: Major
>
> {{The pn_inspect}} API requires the use of {{pn_string_t. but this type is
> really internal to Proton, so an alternative API which returns a {{const char
> *}}}} is really much more suitable as well as requiring a little less
> boilerplate from the application programmer.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]