X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=inline;f=lib%2Flibrte_bitratestats%2Frte_bitrate.h;h=16467221bbaa43e2056068824707175f505c5fcd;hb=87cf4c6cca30201ae4d94ddf527e78bebec9680b;hp=b9f11bd20d5632407c16457995a97d17948f7415;hpb=2ad7ba9a6567029c2e497e8b61df96d7b911c70f;p=dpdk.git diff --git a/lib/librte_bitratestats/rte_bitrate.h b/lib/librte_bitratestats/rte_bitrate.h index b9f11bd20d..16467221bb 100644 --- a/lib/librte_bitratestats/rte_bitrate.h +++ b/lib/librte_bitratestats/rte_bitrate.h @@ -34,6 +34,12 @@ #ifndef _RTE_BITRATE_H_ #define _RTE_BITRATE_H_ +#include + +#ifdef __cplusplus +extern "C" { +#endif + /** * Bitrate statistics data structure. * This data structure is intentionally opaque. @@ -79,6 +85,10 @@ int rte_stats_bitrate_reg(struct rte_stats_bitrates *bitrate_data); * - Negative value on error */ int rte_stats_bitrate_calc(struct rte_stats_bitrates *bitrate_data, - uint8_t port_id); + uint16_t port_id); + +#ifdef __cplusplus +} +#endif #endif /* _RTE_BITRATE_H_ */