2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-22 01:51:26 +00:00
Ilya Maximets 1de4a08c22 json: Use functions to access json arrays.
Internal implementation of JSON array will be changed in the future
commits.  Add access functions that users can rely on instead of
accessing the internals of 'struct json' directly and convert all the
users.  Structure fields are intentionally renamed to make sure that
no code is using the old fields directly.

json_array() function is removed, as not needed anymore.  Added new
functions:  json_array_size(), json_array_at(), json_array_set()
and json_array_pop().  These are enough to cover all the use cases
within OVS.

The change is fairly large, however, IMO, it's a much overdue cleanup
that we need even without changing the underlying implementation.

Acked-by: Mike Pattrick <mkp@redhat.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
2025-06-30 16:53:56 +02:00
..
2024-03-08 20:18:05 +01:00
2025-04-25 21:29:10 +02:00
2025-04-25 21:29:10 +02:00
2016-05-16 17:46:55 -07:00
2022-10-18 12:20:55 +02:00
2022-03-30 16:59:02 +02:00
2017-12-01 13:22:18 -08:00
2016-04-27 15:00:37 -07:00
2016-04-27 15:00:37 -07:00
2025-06-19 21:02:56 +02:00
2025-06-19 21:03:03 +02:00
2025-04-17 16:51:46 -04:00
2022-11-30 13:31:11 +01:00
2020-03-24 07:36:14 -07:00
2025-01-17 00:20:48 +01:00
2025-06-19 21:03:09 +02:00
2020-03-25 20:26:51 -07:00
2022-11-30 13:28:37 +01:00
2022-08-15 19:43:57 +02:00
2022-08-15 19:43:57 +02:00
2024-02-21 20:45:23 +01:00
2024-02-15 22:24:43 +01:00
2016-03-30 13:01:21 -07:00
2017-08-03 14:48:33 -07:00
2017-03-20 10:23:04 -07:00
2024-05-17 13:25:25 +02:00
2018-02-01 13:03:44 -08:00
2025-05-30 10:29:58 +02:00
2022-09-27 01:17:56 +02:00
2022-09-27 01:17:56 +02:00