Samuel,

Your main() function is missing the initialization of the connection to VPP as well as vppinfra initialization should you decide to use such features in your app.

I would recommend that you review the vat (VPP API Test) application main() function which is the application used to test the vpp api c interface: https://git.fd.io/vpp/tree/src/vat/main.c

Thanks,
-daw-


On 12/10/17 6:36 AM, Samuel S wrote:
Hi,
I decide to write some simple program that  can work with VPP API.
in other word i want call some vpp api in my simple program.
I want interact with VPP through C application.
and i read wiki <https://wiki.fd.io/view/VPP/How_To_Use_The_C_API>but i think i have some mistake, or i can't fully understand what i had to do.
please guide me.
and here my code:
vpp_api.h <http://dpaste.com/2ZA5S34>
vpp_api.c <http://dpaste.com/1G7S61D>
main.c <http://dpaste.com/0AV0A30>



_______________________________________________
vpp-dev mailing list
[email protected]
https://lists.fd.io/mailman/listinfo/vpp-dev

_______________________________________________
vpp-dev mailing list
[email protected]
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to