utils: add utility dynamic array
authorFrancesco Romani <fromani@gmail.com>
Sat, 5 Jul 2014 16:04:33 +0000 (18:04 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 12 Apr 2023 16:28:38 +0000 (19:28 +0300)
commitfed9b6f27f1c27babcddfef57184deef68fa6132
tree008e5e0139e8be10e89b0b7f420e9093e4258f85
parent615d6129f465cc2286d842e51aadf3703766505c
utils: add utility dynamic array

Add utility code to handle a dynamic array.
Supported operations:
* append an item
* grow the array
* get an item
* get the length of the array
* check if the array has any data on it.

There are clear use cases for this utility in the OrcParser,
but may be useful elsewhere as well.

Part-of: <https://gitlab.freedesktop.org/gstreamer/orc/-/merge_requests/30>
orc/orcutils.c
orc/orcutils.h