From 2d0b42ca00acee0e51be0365576ceb4e95bd7b02 Mon Sep 17 00:00:00 2001 From: Petri Savolainen Date: Tue, 26 Apr 2016 16:02:39 +0300 Subject: api: pktio: define input array as const Input arrays should be defined as const, so that user can be sure that the implementation does not overwrite it during processing. Signed-off-by: Petri Savolainen Signed-off-by: Maxim Uvarov --- include/odp/api/spec/packet_io.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/odp/api/spec/packet_io.h') diff --git a/include/odp/api/spec/packet_io.h b/include/odp/api/spec/packet_io.h index 1899a4fe8..c1c14b2a4 100644 --- a/include/odp/api/spec/packet_io.h +++ b/include/odp/api/spec/packet_io.h @@ -819,7 +819,8 @@ uint64_t odp_pktin_wait_time(uint64_t nsec); * @return Number of packets sent * @retval <0 on failure */ -int odp_pktout_send(odp_pktout_queue_t queue, odp_packet_t packets[], int num); +int odp_pktout_send(odp_pktout_queue_t queue, const odp_packet_t packets[], + int num); /** * Return the currently configured MTU value of a packet IO interface. -- cgit v1.2.3