[gnome-bluetooth] Add enums types, and mark some as skipped
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-bluetooth] Add enums types, and mark some as skipped
- Date: Thu, 28 May 2009 08:51:57 -0400 (EDT)
commit 2524df7c8f87fdb03467fd648cd6e501d6710607
Author: Bastien Nocera <hadess hadess net>
Date: Thu May 28 11:28:09 2009 +0100
Add enums types, and mark some as skipped
---
common/bluetooth-client.h | 6 +++---
common/bluetooth-enums.h | 12 +++++++-----
2 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/common/bluetooth-client.h b/common/bluetooth-client.h
index b39b62c..62a1a4b 100644
--- a/common/bluetooth-client.h
+++ b/common/bluetooth-client.h
@@ -31,7 +31,7 @@
G_BEGIN_DECLS
-enum {
+typedef enum {
BLUETOOTH_COLUMN_PROXY,
BLUETOOTH_COLUMN_ADDRESS,
BLUETOOTH_COLUMN_ALIAS,
@@ -47,8 +47,8 @@ enum {
BLUETOOTH_COLUMN_POWERED,
BLUETOOTH_COLUMN_SERVICES,
BLUETOOTH_COLUMN_UUIDS,
- _BLUETOOTH_NUM_COLUMNS
-};
+ _BLUETOOTH_NUM_COLUMNS /*< skip >*/
+} BluetoothColumn;
#define BLUETOOTH_TYPE_CLIENT (bluetooth_client_get_type())
#define BLUETOOTH_CLIENT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \
diff --git a/common/bluetooth-enums.h b/common/bluetooth-enums.h
index 867b44b..97919a8 100644
--- a/common/bluetooth-enums.h
+++ b/common/bluetooth-enums.h
@@ -24,18 +24,20 @@
#ifndef __BLUETOOTH_ENUMS_H
#define __BLUETOOTH_ENUMS_H
+#include <glib.h>
+
G_BEGIN_DECLS
-enum {
+typedef enum {
BLUETOOTH_CATEGORY_ALL,
BLUETOOTH_CATEGORY_PAIRED,
BLUETOOTH_CATEGORY_TRUSTED,
BLUETOOTH_CATEGORY_NOT_PAIRED_OR_TRUSTED,
BLUETOOTH_CATEGORY_PAIRED_OR_TRUSTED,
- BLUETOOTH_CATEGORY_NUM_CATEGORIES
-};
+ BLUETOOTH_CATEGORY_NUM_CATEGORIES /*< skip >*/
+} BluetoothCategory;
-enum {
+typedef enum {
BLUETOOTH_TYPE_ANY = 1 << 0,
BLUETOOTH_TYPE_PHONE = 1 << 1,
BLUETOOTH_TYPE_MODEM = 1 << 2,
@@ -50,7 +52,7 @@ enum {
BLUETOOTH_TYPE_PRINTER = 1 << 11,
BLUETOOTH_TYPE_JOYPAD = 1 << 12,
BLUETOOTH_TYPE_TABLET = 1 << 13,
-};
+} BluetoothType;
#define _BLUETOOTH_TYPE_NUM_TYPES 14
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]