Hi All, I’d like to be able to re-use types defined in one .api file in many other .api files. My specific objective is to re-use a fib_path_t across the many APIs that describe a destination to which to send packets.
My first attempt at this is: https://gerrit.fd.io/r/#/c/9489/ I updated vppapigen to accept the keyword ‘import’, munch the subsequent string, and then generate the #include in the resulting .api.h. then the fun started… multiple type definitions, include guards, here be dragons, turn back now and seek assistance. I later realised that an import statement is not required. If I create vnet/fib/fib.api and add it to vnet_all_api_h.h at the top, then that has some success. However, no import statement is not so friendly to other tools that parse the .api files. So an RFC that is really an RFH; how is it best to approach this? Regards, Neale _______________________________________________ vpp-dev mailing list vpp-dev@lists.fd.io https://lists.fd.io/mailman/listinfo/vpp-dev