From: Lars Op den Kamp Date: Wed, 20 Jun 2012 13:31:46 +0000 (+0200) Subject: cec: added cec_command::PushArray() X-Git-Tag: upstream/2.2.0~1^2~22^2^2~35 X-Git-Url: https://git.piment-noir.org/?p=deb_libcec.git;a=commitdiff_plain;h=0b7822f9dbac67b733a7cbcb094535fe4a59a086 cec: added cec_command::PushArray() --- diff --git a/include/cectypes.h b/include/cectypes.h index b5ae1ec..cc0b57e 100644 --- a/include/cectypes.h +++ b/include/cectypes.h @@ -901,6 +901,12 @@ typedef struct cec_command return CEC_OPCODE_NONE; } + + void PushArray(size_t len, uint8_t *data) + { + for (size_t iPtr = 0; iPtr < len; iPtr++) + PushBack(data[iPtr]); + } #endif } cec_command;