X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=include%2Fcectypes.h;h=cc0b57ee449877333c85e2b073e217c6c0808a0a;hb=0b7822f9dbac67b733a7cbcb094535fe4a59a086;hp=72295ada13d13ffebbe227973939c5778cf43d33;hpb=0a61dc2416f3eacb839ff67ac5abf0024c1d2f40;p=deb_libcec.git diff --git a/include/cectypes.h b/include/cectypes.h index 72295ad..cc0b57e 100644 --- a/include/cectypes.h +++ b/include/cectypes.h @@ -112,6 +112,7 @@ namespace CEC { #define CEC_MIN_LIB_VERSION 1 #define CEC_LIB_VERSION_MAJOR 1 +#define CEC_LIB_VERSION_MAJOR_STR "1" #define CEC_LIB_VERSION_MINOR 7 typedef enum cec_abort_reason @@ -900,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;