diff options
author | Petri Savolainen <petri.savolainen@nokia.com> | 2016-04-26 16:02:39 +0300 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2016-04-26 19:02:25 +0300 |
commit | 2d0b42ca00acee0e51be0365576ceb4e95bd7b02 (patch) | |
tree | 2eb44f96159bffb5f93821d622f130cb6cee221b /include/odp/api/spec/packet_io.h | |
parent | 6bc64a5a2050693b6cd5ddf00550f9b90b60c048 (diff) |
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 <petri.savolainen@nokia.com>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'include/odp/api/spec/packet_io.h')
-rw-r--r-- | include/odp/api/spec/packet_io.h | 3 |
1 files changed, 2 insertions, 1 deletions
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. |