add new api for mbtk,get modem version
Change-Id: I8cebf6552ee47eef2c8d2e980a0d6436c9a55ef8
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;
+ }
+}
+