From: Lars Op den Kamp Date: Tue, 15 Nov 2011 23:54:39 +0000 (+0100) Subject: cec: make add() and clear() camelcased again and re-add the old methods and mark... X-Git-Tag: upstream/2.2.0~1^2~44^2~128 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=c23380e74349bd4bae7718b66a78a07a51a6f0fe;p=deb_libcec.git cec: make add() and clear() camelcased again and re-add the old methods and mark them as deprecated --- 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++) {