cec: added cec_command::PushArray()
authorLars Op den Kamp <lars@opdenkamp.eu>
Wed, 20 Jun 2012 13:31:46 +0000 (15:31 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Wed, 20 Jun 2012 13:31:46 +0000 (15:31 +0200)
include/cectypes.h

index b5ae1eca5dce16f6f9e191355155eb8bc88cc9c4..cc0b57ee449877333c85e2b073e217c6c0808a0a 100644 (file)
@@ -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;