From 322c41c4273483a4da742e30e2c9f453249f986c Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Fri, 20 Nov 2015 22:51:57 -0600 Subject: gril: Remove g_ril_request_deactivate_data_call --- gril/grilrequest.c | 42 ------------------------------------------ gril/grilrequest.h | 10 ---------- 2 files changed, 52 deletions(-) diff --git a/gril/grilrequest.c b/gril/grilrequest.c index 38278528..b2321e8d 100644 --- a/gril/grilrequest.c +++ b/gril/grilrequest.c @@ -41,9 +41,6 @@ #include "util.h" #include "common.h" -/* DEACTIVATE_DATA_CALL request parameters */ -#define DEACTIVATE_DATA_CALL_NUM_PARAMS 2 - /* SETUP_DATA_CALL_PARAMS request parameters */ #define SETUP_DATA_CALL_PARAMS 7 #define DATA_PROFILE_DEFAULT_STR "0" @@ -70,45 +67,6 @@ error->error = 0; \ } while (0) -gboolean g_ril_request_deactivate_data_call(GRil *gril, - const struct req_deactivate_data_call *req, - struct parcel *rilp, - struct ofono_error *error) -{ - gchar *cid_str = NULL; - gchar *reason_str = NULL; - - if (req->reason != RIL_DEACTIVATE_DATA_CALL_NO_REASON && - req->reason != RIL_DEACTIVATE_DATA_CALL_RADIO_SHUTDOWN) { - goto error; - } - - parcel_init(rilp); - parcel_w_int32(rilp, DEACTIVATE_DATA_CALL_NUM_PARAMS); - - cid_str = g_strdup_printf("%d", req->cid); - parcel_w_string(rilp, cid_str); - - /* - * TODO: airplane-mode; change reason to '1', - * which means "radio power off". - */ - reason_str = g_strdup_printf("%d", req->reason); - parcel_w_string(rilp, reason_str); - - g_ril_append_print_buf(gril, "(%s,%s)", cid_str, reason_str); - - g_free(cid_str); - g_free(reason_str); - - OFONO_NO_ERROR(error); - return TRUE; - -error: - OFONO_EINVAL(error); - return FALSE; -} - void g_ril_request_set_net_select_manual(GRil *gril, const char *mccmnc, struct parcel *rilp) diff --git a/gril/grilrequest.h b/gril/grilrequest.h index a84af284..76572463 100644 --- a/gril/grilrequest.h +++ b/gril/grilrequest.h @@ -34,11 +34,6 @@ extern "C" { #endif -struct req_deactivate_data_call { - gint cid; - guint reason; -}; - struct req_setup_data_call { guint tech; guint data_profile; @@ -50,11 +45,6 @@ struct req_setup_data_call { unsigned req_cid; }; -gboolean g_ril_request_deactivate_data_call(GRil *gril, - const struct req_deactivate_data_call *req, - struct parcel *rilp, - struct ofono_error *error); - void g_ril_request_set_net_select_manual(GRil *gril, const char *mccmnc, struct parcel *rilp); -- cgit v1.2.3