add new api for mbtk,get modem version

Change-Id: I8cebf6552ee47eef2c8d2e980a0d6436c9a55ef8
diff --git a/mbtk/libmbtk_lib/ril/mbtk_info.c b/mbtk/libmbtk_lib/ril/mbtk_info.c
index b61a3b0..58358ca 100755
--- a/mbtk/libmbtk_lib/ril/mbtk_info.c
+++ b/mbtk/libmbtk_lib/ril/mbtk_info.c
@@ -213,6 +213,9 @@
         case MBTK_INFO_ID_DEV_VERSION_REQ:
         case MBTK_INFO_ID_DEV_VERSION_RSP:
             return "VERSION";
+        case MBTK_INFO_ID_DEV_MD_VERSION_REQ:
+        case MBTK_INFO_ID_DEV_MD_VERSION_RSP:
+            return "MD_VERSION";
         case MBTK_INFO_ID_DEV_MODEL_REQ:
         case MBTK_INFO_ID_DEV_MODEL_RSP:
             return "MODEL";
diff --git a/mbtk/libmbtk_lib/ril/mbtk_info.h b/mbtk/libmbtk_lib/ril/mbtk_info.h
index d58c498..f1679f2 100755
--- a/mbtk/libmbtk_lib/ril/mbtk_info.h
+++ b/mbtk/libmbtk_lib/ril/mbtk_info.h
@@ -59,7 +59,10 @@
 
     MBTK_INFO_ID_DEV_MODEM_REQ,
     MBTK_INFO_ID_DEV_MODEM_RSP,
-
+    
+    MBTK_INFO_ID_DEV_MD_VERSION_REQ,
+    MBTK_INFO_ID_DEV_MD_VERSION_RSP,
+    
     MBTK_INFO_ID_DEV_END,
 
     // Sim Information
diff --git a/mbtk/libmbtk_lib/ril/mbtk_info_api.c b/mbtk/libmbtk_lib/ril/mbtk_info_api.c
index 99fb91f..1dc3464 100755
--- a/mbtk/libmbtk_lib/ril/mbtk_info_api.c
+++ b/mbtk/libmbtk_lib/ril/mbtk_info_api.c
@@ -17,11 +17,14 @@
 
 #include "time.h"
 
+
+
 #define EPOLL_LISTEN_MAX 100
 #define EPOLL_LISTEN_MAX 100
 
 static mbtk_info_callback_func ril_server_state_cb = NULL;
 
+
 #if 0
 struct
 {
@@ -2629,3 +2632,19 @@
 }
 
 
+int mbtk_get_modem_version(mbtk_info_handle_t* handle, void *modem_version)
+{
+    if(handle == NULL || modem_version == NULL)
+    {
+        LOGE("ARG error.");
+        return -1;
+    }
+
+    if(info_item_process(handle, MBTK_INFO_ID_DEV_MD_VERSION_REQ, NULL, 0, modem_version) > 0) {
+        LOG("Version : %s", modem_version);
+        return 0;
+    } else {
+        return handle->info_err;
+    }
+}
+