supersven opened a new issue, #522:
URL: https://github.com/apache/pulsar-client-cpp/issues/522

   ### Search before asking
   
   - [x] I searched in the 
[issues](https://github.com/apache/pulsar-client-cpp/issues) and found nothing 
similar.
   
   
   ### Version
   
   `v3.7.0` and `main`
   
   ### Minimal reproduce step
   
   `PULSAR_PUBLIC void pulsar_message_set_schema_version(pulsar_message_t 
*message, const char *schemaVersion)` is declared in 
[`include/pulsar/c/message.h`](https://github.com/apache/pulsar-client-cpp/blob/a03eb9278bf96cbda42eb9e7dc1c73ee0b65ea3e/include/pulsar/c/message.h#L216),
 however I cannot find where this function is defined/implemented 🤔 
   
   I'm pretty new to the code base, so I might me overlooking something. Please 
accept my excuses if that's the case.
   
   ### What did you expect to see?
   
   I'd expected to find a function like
   
   ```C
   void pulsar_message_set_schema_version(pulsar_message_t *message, const char 
*schemaVersion) {
       message->message.setSchemaVersion(schemaVersion);
   }
   ```
   in `lib/c/c_Message.cc`. [Please note that the function should just 
illustrate the issue - I haven't tried it.]
   
   ### What did you see instead?
   
   Nothing 😉 
   I found no delegating C function for `pulsar_message_set_schema_version`.
   
   ### Anything else?
   
   May be an interesting detail: I'm generating Haskell bindings to this 
library from the C header files. I found this issue because the linker couldn't 
find a symbol for `pulsar_message_set_schema_version`.
   
   If my reasoning makes sense, I'm happy to provide the three line delegate 
function as PR.
   
   ### Are you willing to submit a PR?
   
   - [x] I'm willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to