Add Multiple AT channels supported for ril api v2

Change-Id: I53f574c85d07bd7b8e0dd15d2e596d23c8772907
diff --git a/mbtk/mbtk_rild_v2/inc/atchannel.h b/mbtk/mbtk_rild_v2/inc/atchannel.h
index b97cb27..43efd0e 100755
--- a/mbtk/mbtk_rild_v2/inc/atchannel.h
+++ b/mbtk/mbtk_rild_v2/inc/atchannel.h
@@ -22,6 +22,7 @@
 extern "C" {
 #endif
 #include "mbtk_type.h"
+#include "mbtk_ril_api.h"
 
 /* define AT_DEBUG to send AT traffic to /tmp/radio-at.log" */
 #define AT_DEBUG  0
@@ -44,7 +45,6 @@
                                           response */
 #define AT_ERROR_TIMEOUT_CLOSE    (-7)
 
-
 typedef enum
 {
     NO_RESULT,   /* no intermediate response expected */
@@ -87,8 +87,8 @@
  */
 typedef void (*ATUnsolHandler)(const char *s, const char *sms_pdu);
 
-int at_open(int at_fd, int uart_fd, ATUnsolHandler h);
-void at_close();
+int at_open(ATPortType_enum port, int at_fd, int uart_fd, ATUnsolHandler h);
+void at_close(ATPortType_enum port);
 
 /* This callback is invoked on the command thread.
    You should reset or handshake here to avoid getting out of sync */
@@ -101,26 +101,26 @@
    channel is already closed */
 void at_set_on_reader_closed(void (*onClose)(void));
 
-int at_send_command_singleline (const char *command,
+int at_send_command_singleline (ATPortType_enum port, const char *command,
                                 const char *responsePrefix,
                                 ATResponse **pp_outResponse);
-int at_send_command_singleline_with_timeout (const char *command,
+int at_send_command_singleline_with_timeout (ATPortType_enum port, const char *command,
         const char *responsePrefix,
         ATResponse **pp_outResponse,long long timeoutMsec);
 
-int at_send_command_numeric (const char *command,
+int at_send_command_numeric (ATPortType_enum port, const char *command,
                              ATResponse **pp_outResponse);
 
-int at_send_command_multiline (const char *command,
+int at_send_command_multiline (ATPortType_enum port, const char *command,
                                const char *responsePrefix,
                                ATResponse **pp_outResponse);
 
 
-int at_handshake();
+int at_handshake(ATPortType_enum port);
 
-int at_send_command (const char *command, ATResponse **pp_outResponse);
+int at_send_command (ATPortType_enum port, const char *command, ATResponse **pp_outResponse);
 
-int at_send_command_sms (const char *command, const char *pdu,
+int at_send_command_sms (ATPortType_enum port, const char *command, const char *pdu,
                          const char *responsePrefix,
                          ATResponse **pp_outResponse);
 
@@ -136,8 +136,8 @@
 
 AT_CME_Error at_get_cme_error(const ATResponse *p_response);
 
-mbtk_ril_at_state_enum at_state_get();
-void at_state_set(mbtk_ril_at_state_enum state);
+mbtk_ril_at_state_enum at_state_get(ATPortType_enum port);
+void at_state_set(ATPortType_enum port, mbtk_ril_at_state_enum state);
 bool at_rsp_check(ATResponse *p_response);
 
 #ifdef __cplusplus