From 8b8f76a2d2715969e6babe4ab21d030e5baa549b Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Tue, 11 May 2010 14:27:35 +0000 Subject: [PATCH] Added a couple more debugging controls --- src/phone.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/phone.c b/src/phone.c index 519e3ac..6b75e79 100644 --- a/src/phone.c +++ b/src/phone.c @@ -886,6 +886,8 @@ static int _gsm_fetch_message_list_sent(GSM * gsm); static int _gsm_fetch_message_list_unread(GSM * gsm); static int _gsm_fetch_message_list_unsent(GSM * gsm); static int _gsm_reset(GSM * gsm); +static int _gsm_set_functional_disable(GSM * gsm); +static int _gsm_set_functional_enable(GSM * gsm); static struct { @@ -896,6 +898,8 @@ static struct { "Answer call", gsm_call_answer }, { "Battery charge", gsm_fetch_battery_charge }, { "Contact list", gsm_fetch_contact_list }, + { "Disable phone", _gsm_set_functional_disable }, + { "Enable phone", _gsm_set_functional_enable }, { "Hangup call", gsm_call_hangup }, { "Messages", _gsm_fetch_message_list_all }, { "Messages read", _gsm_fetch_message_list_read }, @@ -1042,6 +1046,16 @@ static int _gsm_reset(GSM * gsm) { return gsm_reset(gsm, 0); } + +static int _gsm_set_functional_disable(GSM * gsm) +{ + return gsm_set_functional(gsm, FALSE); +} + +static int _gsm_set_functional_enable(GSM * gsm) +{ + return gsm_set_functional(gsm, TRUE); +} #endif