diff options
author | Guillaume Zajac <guillaume.zajac@linux.intel.com> | 2011-12-15 14:34:24 +0100 |
---|---|---|
committer | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2011-12-15 16:06:04 +0100 |
commit | c5a88f722037e06b98c6302af12ee7d49dae4e60 (patch) | |
tree | e18f161f3eebce8f60a5a77a0bc59c9e225ec121 /plugins | |
parent | 36757a45b6598fe66aae08320710fb0b276e3c78 (diff) | |
download | connman-c5a88f722037e06b98c6302af12ee7d49dae4e60.tar.gz connman-c5a88f722037e06b98c6302af12ee7d49dae4e60.tar.bz2 connman-c5a88f722037e06b98c6302af12ee7d49dae4e60.zip |
ofono: Add CDMA interfaces extraction
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/ofono.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/ofono.c b/plugins/ofono.c index aa9a776b..42f88d17 100644 --- a/plugins/ofono.c +++ b/plugins/ofono.c @@ -50,6 +50,8 @@ #define OFONO_NETREG_INTERFACE OFONO_SERVICE ".NetworkRegistration" #define OFONO_CM_INTERFACE OFONO_SERVICE ".ConnectionManager" #define OFONO_CONTEXT_INTERFACE OFONO_SERVICE ".ConnectionContext" +#define OFONO_CDMA_CM_INTERFACE OFONO_SERVICE ".cdma.ConnectionManager" +#define OFONO_CDMA_NETREG_INTERFACE OFONO_SERVICE ".cdma.NetworkRegistration" #define MODEM_ADDED "ModemAdded" #define MODEM_REMOVED "ModemRemoved" @@ -68,6 +70,8 @@ enum ofono_api { OFONO_API_SIM = 0x1, OFONO_API_NETREG = 0x2, OFONO_API_CM = 0x4, + OFONO_API_CDMA_NETREG = 0x8, + OFONO_API_CDMA_CM = 0x10, }; /* @@ -617,6 +621,10 @@ static uint8_t extract_interfaces(DBusMessageIter *array) interfaces |= OFONO_API_NETREG; else if (g_str_equal(name, OFONO_CM_INTERFACE) == TRUE) interfaces |= OFONO_API_CM; + else if (g_str_equal(name, OFONO_CDMA_CM_INTERFACE) == TRUE) + interfaces |= OFONO_API_CDMA_CM; + else if (g_str_equal(name, OFONO_CDMA_NETREG_INTERFACE) == TRUE) + interfaces |= OFONO_API_CDMA_NETREG; dbus_message_iter_next(&entry); } |