From c23380e74349bd4bae7718b66a78a07a51a6f0fe Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Wed, 16 Nov 2011 00:54:39 +0100 Subject: [PATCH] cec: make add() and clear() camelcased again and re-add the old methods and mark them as deprecated --- include/cectypes.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/include/cectypes.h b/include/cectypes.h index f561d84..1b942e6 100644 --- a/include/cectypes.h +++ b/include/cectypes.h @@ -738,13 +738,22 @@ typedef struct cec_device_type_list cec_device_type types[5]; #ifdef __cplusplus - void clear(void) + /*! + * @deprecated + */ + void clear(void) { Clear(); } + /*! + * @deprecated + */ + void add(const cec_device_type type) { Add(type); } + + void Clear(void) { for (unsigned int iPtr = 0; iPtr < 5; iPtr++) types[iPtr] = CEC_DEVICE_TYPE_RESERVED; } - void add(const cec_device_type type) + void Add(const cec_device_type type) { for (unsigned int iPtr = 0; iPtr < 5; iPtr++) { -- 2.34.1