You can also check out the test/ext directory for vapi_c_test.c and
vapi_cpp_test.cpp, which are unittests for these bindings and there is
also an example of _dump API call.

Regards,
Klement

Quoting Ole Troan (2018-09-13 09:33:14)
> Hi again,
> 
> >     I am in the beginning of using-c-api.  Should I not follow  
> > (src/vpp-api/client)  ?
> > Can you please show me a fun-name and a example of the higher level C API?
> 
> That’s right, I wouldn’t recommend using the src/vpp-aoi/client API unless 
> you are building a new language binding.
> 
> If you need a C interface you should use VAPI.
> 
> See interface.api.vapi.h (auto-generated) for sw_interface_dump()
> 
> static inline vapi_error_e vapi_sw_interface_dump(struct vapi_ctx_s *ctx,
>   vapi_msg_sw_interface_dump *msg,
>   vapi_error_e (*callback)(struct vapi_ctx_s *ctx,
>                            void *callback_ctx,
>                            vapi_error_e rv,
>                            bool is_last,
>                            vapi_payload_sw_interface_details *reply),
>   void *callback_ctx)
> 
> 
> src/vpp-api/vapi/vapi_doc.md for documentation.
> 
> To get a feel of how the API works, at even higher level you can play with 
> the Python language binding.
> 
> Best regards,
> Ole
> 
> 
> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> 
> View/Reply Online (#10481): https://lists.fd.io/g/vpp-dev/message/10481
> Mute This Topic: https://lists.fd.io/mt/25510961/675704
> Group Owner: vpp-dev+ow...@lists.fd.io
> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [ksek...@cisco.com]
> -=-=-=-=-=-=-=-=-=-=-=-
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#10484): https://lists.fd.io/g/vpp-dev/message/10484
Mute This Topic: https://lists.fd.io/mt/25510961/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