Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-2427

Avoid using pn_message_id()/pn_message_correlation_id() APIs in examples and bindings

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • proton-c-0.36.0
    • cpp-binding, proton-c
    • None

    Description

      These APIs return a pn_data_t to represent a message id/correlation id which has a very restricted set of possible values. All of which are simple scalars - ulong, uuid, binary and string. There is already a setter/getter API that returns a pn_atom_t which is a much simpler and more efficient representation, so we should use this.

      We can make up the small API lack of pn_atom_t by introducing some pn_atom_put/get_ulong/uuid/string/binary APIs. But initially pn_atom_t is easy enough to construct/deconstruct especially with C99 structure initiialisers.

      Attachments

        Issue Links

          Activity

            People

              astitcher Andrew Stitcher
              astitcher Andrew Stitcher
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: