program: add orc_program_append_str_n
authorFrancesco Romani <fromani@gmail.com>
Sat, 5 Jul 2014 16:02:13 +0000 (18:02 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 12 Apr 2023 16:26:53 +0000 (19:26 +0300)
commit615d6129f465cc2286d842e51aadf3703766505c
treeac8fc4a62ef14f902ae05aa751e819cca82bf5dd
parent1edcce3775d163bc47a8f83a57ede2395174abc6
program: add orc_program_append_str_n

Add a new API which generalizes orc_program_append_str_2 which
* supports any number of operands for the given opcode
* reports the status of the operation

most notably, in case of unknown operand, the new API signals
the wrong operand.

Co-authored-by: Sebastian Dröge <sebastian@centricular.com>
Part-of: <https://gitlab.freedesktop.org/gstreamer/orc/-/merge_requests/30>
orc/orcprogram.c
orc/orcprogram.h