上库irq模块和dtmf和ims的api接口

Change-Id: I6dfbdb0b8ed0dd6543474d3fc10eef91ca1a2f2f
diff --git a/mbtk/libmbtk_ril/mbtk_info_api.c b/mbtk/libmbtk_ril/mbtk_info_api.c
index ef7ee1c..d471c3b 100755
--- a/mbtk/libmbtk_ril/mbtk_info_api.c
+++ b/mbtk/libmbtk_ril/mbtk_info_api.c
@@ -1382,6 +1382,42 @@
     }
 }
 
+/*
+* Get current network IMS information.
+*/
+int mbtk_net_ims_get(mbtk_info_handle_t* handle, int* reg)
+{
+    uint8 state;
+    if(handle == NULL)
+    {
+        LOGE("ARG error.");
+        return -1;
+    }
+    if(info_item_process(handle, MBTK_INFO_ID_NET_IMS_REQ, NULL, 0, &state) > 0) {
+        LOG("reg type : %d", state);
+        *reg = state;
+        return 0;
+    } else {
+        return handle->info_err;
+    }
+
+}
+
+/*
+* Set current network IMS information.
+*/
+int mbtk_net_ims_set(mbtk_info_handle_t* handle, int reg)
+{
+    if(handle == NULL)
+    {
+        LOGE("ARG error.");
+        return -1;
+    }
+
+    return info_item_process(handle, MBTK_INFO_ID_NET_IMS_REQ, (uint8*)&reg, sizeof(uint8), NULL) ? handle->info_err : 0;
+
+}
+
 
 /*
 * Get radio state.