Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(655)

Unified Diff: src/mm-modem-cdma.c

Issue 3517013: Add ActivateManual, ActivateManualDebug (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/modemmanager.git
Patch Set: Fixed comment Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/mm-modem-cdma.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/mm-modem-cdma.c
diff --git a/src/mm-modem-cdma.c b/src/mm-modem-cdma.c
index 3782c5ee73c29bc850f9cf9692d9295b9ed387ba..7f20730059277d86f2622bc5feee05642fe72ca7 100644
--- a/src/mm-modem-cdma.c
+++ b/src/mm-modem-cdma.c
@@ -27,6 +27,8 @@ static void impl_modem_cdma_get_esn (MMModemCdma *modem, DBusGMethodInvocation *
static void impl_modem_cdma_get_serving_system (MMModemCdma *modem, DBusGMethodInvocation *context);
static void impl_modem_cdma_get_registration_state (MMModemCdma *modem, DBusGMethodInvocation *context);
static void impl_modem_cdma_activate (MMModemCdma *modem, DBusGMethodInvocation *context);
+static void impl_modem_cdma_activate_manual (MMModemCdma *modem, DBusGMethodInvocation *context);
+static void impl_modem_cdma_activate_manual_debug (MMModemCdma *modem, DBusGMethodInvocation *context);
#include "mm-modem-cdma-glue.h"
@@ -270,6 +272,36 @@ static void impl_modem_cdma_activate(MMModemCdma *modem,
mm_modem_cdma_activate (modem, uint_call_done, context);
}
+
+void mm_modem_cdma_activate_manual(MMModemCdma *self, MMModemUIntFn callback,
+ gpointer user_data) {
+ g_return_if_fail (MM_IS_MODEM_CDMA (self));
+ g_return_if_fail (callback != NULL);
+ if (MM_MODEM_CDMA_GET_INTERFACE (self)->activate_manual)
+ MM_MODEM_CDMA_GET_INTERFACE (self)->activate_manual(self, callback, user_data);
+ else
+ uint_op_not_supported (MM_MODEM (self), callback, user_data);
+}
+static void impl_modem_cdma_activate_manual (MMModemCdma *modem,
+ DBusGMethodInvocation *context) {
+ mm_modem_cdma_activate_manual(modem, uint_call_done, context);
+}
+
+void mm_modem_cdma_activate_manual_debug(MMModemCdma *self, MMModemUIntFn callback,
+ gpointer user_data) {
+ g_return_if_fail (MM_IS_MODEM_CDMA (self));
+ g_return_if_fail (callback != NULL);
+ if (MM_MODEM_CDMA_GET_INTERFACE (self)->activate_manual_debug)
+ MM_MODEM_CDMA_GET_INTERFACE (self)->activate_manual_debug(self, callback, user_data);
+ else
+ uint_op_not_supported (MM_MODEM (self), callback, user_data);
+}
+static void impl_modem_cdma_activate_manual_debug (MMModemCdma *modem,
+ DBusGMethodInvocation *context) {
+ mm_modem_cdma_activate_manual_debug(modem, uint_call_done, context);
+}
+
+
/*****************************************************************************/
static void
« no previous file with comments | « src/mm-modem-cdma.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698