cec: make add() and clear() camelcased again and re-add the old methods and mark...
authorLars Op den Kamp <lars@opdenkamp.eu>
Tue, 15 Nov 2011 23:54:39 +0000 (00:54 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Tue, 15 Nov 2011 23:54:39 +0000 (00:54 +0100)
include/cectypes.h

index f561d84748692ebf7116562f0a8d3357fece687a..1b942e6d2c11f40d85960bd60ace0c7330931eac 100644 (file)
@@ -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++)
     {