You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2018/05/05 21:30:16 UTC

[GitHub] merlimat opened a new pull request #1736: C API wrapper based on C++ client library

merlimat opened a new pull request #1736: C API wrapper based on C++ client library
URL: https://github.com/apache/incubator-pulsar/pull/1736
 
 
   ### Motivation
   
   Added plain C API for Pulsar client. 
   
   This is implemented as a super-thin wrapper on top of existing C++ client library. The same `libpulsar.so` will contain both implementations.
   
   Primary use case for this API is to enable wrapping Pulsar client library in higher level languages that have facilities to convert C APIs but not C++ code. One such example is Go language, that with `cgo` can generate bindings for C headers.
   
   Added some working examples for how to use Pulsar C API and I'll add unit tests directly in Go, to cover both wrappers at once.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services