From 414ec4a2b94c1922346ec84d06a3b3d6d2ddfc3d Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Thu, 3 Dec 2015 10:50:48 -0600 Subject: gril: Remove g_ril_reply_oem_hook_raw --- gril/grilreply.c | 47 ----------------------------------------------- gril/grilreply.h | 10 ---------- 2 files changed, 57 deletions(-) diff --git a/gril/grilreply.c b/gril/grilreply.c index 06e1b577..476a7ddc 100644 --- a/gril/grilreply.c +++ b/gril/grilreply.c @@ -217,50 +217,3 @@ no_data: return NULL; } - -void g_ril_reply_free_oem_hook(struct reply_oem_hook *oem_hook) -{ - if (oem_hook) { - g_free(oem_hook->data); - g_free(oem_hook); - } -} - -struct reply_oem_hook *g_ril_reply_oem_hook_raw(GRil *gril, - const struct ril_msg *message) -{ - struct reply_oem_hook *reply = NULL; - struct parcel rilp; - - reply = g_try_malloc0(sizeof(*reply)); - if (reply == NULL) { - ofono_error("%s: out of memory", __func__); - goto end; - } - - g_ril_init_parcel(message, &rilp); - - reply->data = parcel_r_raw(&rilp, &(reply->length)); - - if (rilp.malformed) { - ofono_error("%s: malformed parcel", __func__); - g_ril_reply_free_oem_hook(reply); - reply = NULL; - goto end; - } - - g_ril_append_print_buf(gril, "{%d", reply->length); - - if (reply->data != NULL) { - char *hex_dump; - hex_dump = encode_hex(reply->data, reply->length, '\0'); - g_ril_append_print_buf(gril, "%s,%s", print_buf, hex_dump); - g_free(hex_dump); - } - - g_ril_append_print_buf(gril, "%s}", print_buf); - g_ril_print_response(gril, message); - -end: - return reply; -} diff --git a/gril/grilreply.h b/gril/grilreply.h index abb85f65..90e63559 100644 --- a/gril/grilreply.h +++ b/gril/grilreply.h @@ -32,21 +32,11 @@ extern "C" { #endif -struct reply_oem_hook { - int length; - void *data; -}; - GSList *g_ril_reply_parse_get_calls(GRil *gril, const struct ril_msg *message); int *g_ril_reply_parse_retries(GRil *gril, const struct ril_msg *message, enum ofono_sim_password_type passwd_type); -void g_ril_reply_free_oem_hook(struct reply_oem_hook *oem_hook); - -struct reply_oem_hook *g_ril_reply_oem_hook_raw(GRil *gril, - const struct ril_msg *message); - #ifdef __cplusplus } #endif -- cgit v1.2.3