[gnome-bluetooth] lib: Fix weird GI enum names for columns



commit 432c9fd5c3b2bc38685539f04a3cbc96b09d0b85
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Nov 26 17:19:24 2013 +0100

    lib: Fix weird GI enum names for columns
    
    Move _BLUETOOTH_NUM_COLUMNS outside the enum so that the prefixes
    are correctly stripped, eg. GnomeBluetooth.Column.DEFAULT not
    GnomeBluetooth.Column.LUETOOTH_COLUMN_DEFAULT (yes, with the missing B)

 lib/bluetooth-enums.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lib/bluetooth-enums.h b/lib/bluetooth-enums.h
index 65403ec..b6241e0 100644
--- a/lib/bluetooth-enums.h
+++ b/lib/bluetooth-enums.h
@@ -150,10 +150,10 @@ typedef enum {
        BLUETOOTH_COLUMN_POWERED,
        BLUETOOTH_COLUMN_SERVICES,
        BLUETOOTH_COLUMN_UUIDS,
-       /* < private > */
-       _BLUETOOTH_NUM_COLUMNS /*< skip >*/
 } BluetoothColumn;
 
+#define _BLUETOOTH_NUM_COLUMNS (BLUETOOTH_COLUMN_UUIDS + 1)
+
 /**
  * BluetoothStatus:
  * @BLUETOOTH_STATUS_INVALID: whether the status has been set yet


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]