Hi Ole,

I believe you are referring to test/ext/vapi_c_test.c. However, it would
greatly help if there is a page that is similar to
https://wiki.fd.io/view/VPP/How_To_Use_The_C_API (which is easy to follow
correlating with contents of src/vat/) to explain how-to for VAPI.
Appreciate if following could be covered:

   1. Libraries to include in client application
   2. Examples for request/reply, dump/details and event registration with
   vapi
   3. Equivalents of accessing auto-generated APIs to cover

     vl_msg_id
     vl_union_id
     vl_printfun
     vl_endianfun
     vl_api_version
     vl_typedefs
     vl_msg_name
     vl_msg_name_crc_list

   4. Initialization and message registration
   5. Send and receive messages
   6. Anything else you can think of would be useful

Also this presentation helps a lot to understand VPP Binary API (
https://www.youtube.com/watch?v=V5XGUUgCtEg) in the context of VAT but not
VAPI. Hence, request you for some details on VAPI. I already looked at this
https://docs.fd.io/vpp/17.10/vapi_doc.html :-)

Thank you,
Prashant


On Fri, Aug 9, 2019 at 1:33 AM Ole Troan <otr...@employees.org> wrote:

> Hi Hua,
>
> > Here’s a basic question for the VPP APIs. We are trying to integrate the
> VPP into our application. We plan to use the C API as the interface between
> our software and VPP.  I thought there was a C library that can be built
> into our software at least for existing plugins. Unfortunately I didn’t
> find it. The only thing I got is the vat.  Do I have to write such a
> library by ourselves?
>
> There is a C/C++ language binding, called VAPI.
> See https://git.fd.io/vpp/tree/src/vpp-api/vapi
>
> There are a few examples in the test code.
> All the APIs are supported and autogenerated from the .api files, into per
> .api header files.
>
> There's also Go, Python, Lua(rotted) and Java bindings.
>
> Best regards,
> Ole
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#16772): https://lists.fd.io/g/vpp-dev/message/16772
Mute This Topic: https://lists.fd.io/mt/32808207/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to