BewareMyPower opened a new pull request, #256:
URL: https://github.com/apache/pulsar-client-cpp/pull/256

   ### Motivation
   
   Currently, the `pulsar_consumer_configuration_get_batch_receive_policy` 
function returns a struct whose size is greater than 8, which is generally not 
acceptable in C API design because of the copy overhead.
   
   And the API documents are wrong that they say if the value is less than 0, 
it means no limit. However, if the value is exactly 0, it also means no limit.
   
   ### Modifications
   
   Use the POSIX style for these C APIs. The setter returns -1 if it failed. 
The getter accepts an output argument to store the value to get.
   
   Then test these changes in `testCApiConfig`. The docs are also fixed.
   
   ### Documentation
   
   <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
   
   - [ ] `doc-required` 
   (Your PR needs to update docs and you will update later)
   
   - [ ] `doc-not-needed` 
   (Please explain why)
   
   - [x] `doc` 
   (Your PR contains doc changes)
   
   - [ ] `doc-complete`
   (Docs have been already added)
   


-- 
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: commits-unsubscr...@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to