Add card Inserted implementation and fix bug
[platform/core/connectivity/smartcard-service.git] / common / smartcard-service-gdbus.xml
index da14b88..6941e88 100755 (executable)
@@ -8,7 +8,6 @@
       SeService
     -->
     <method name="SeService">
-      <arg type="a(y)" name="privilege" direction="in" />
       <arg type="i" name="result" direction="out" />
       <arg type="u" name="handle" direction="out" />
       <arg type="a(us)" name="readers" direction="out" />
@@ -18,7 +17,6 @@
       shutdown
     -->
     <method name="shutdown">
-      <arg type="a(y)" name="privilege" direction="in" />
       <arg type="u" name="service_id" direction="in" />
       <arg type="i" name="result" direction="out" />
     </method>
       <arg type="u" name="reader_id" />
       <arg type="s" name="reader_name" />
     </signal>
+
+    <!--
+      CardInserted
+    -->
+    <signal name="CardInserted">
+      <arg type="u" name="reader_id" />
+      <arg type="s" name="reader_name" />
+    </signal>
+
+    <!--
+      CardRemoved
+    -->
+    <signal name="CardRemoved">
+      <arg type="u" name="reader_id" />
+      <arg type="s" name="reader_name" />
+    </signal>
   </interface>
 
   <interface name="org.tizen.SmartcardService.Reader">
@@ -45,7 +59,6 @@
       openSession
     -->
     <method name="openSession">
-      <arg type="a(y)" name="privilege" direction="in" />
       <arg type="u" name="service_id" direction="in" />
       <arg type="u" name="reader_id" direction="in" />
       <arg type="i" name="result" direction="out" />
@@ -58,7 +71,6 @@
       getATR
     -->
     <method name="getATR">
-      <arg type="a(y)" name="privilege" direction="in" />
       <arg type="u" name="service_id" direction="in" />
       <arg type="u" name="session_id" direction="in" />
       <arg type="i" name="result" direction="out" />
       openChannel
     -->
     <method name="openChannel">
-      <arg type="a(y)" name="privilege" direction="in" />
       <arg type="u" name="service_id" direction="in" />
       <arg type="u" name="session_id" direction="in" />
       <arg type="u" name="type" direction="in" />
       <arg type="a(y)" name="aid" direction="in" />
+      <arg type="y" name="P2" direction="in" />
       <arg type="i" name="result" direction="out" />
       <arg type="u" name="handle" direction="out" />
+      <arg type="i" name="channel_number" direction="out" />
       <arg type="a(y)" name="select_response" direction="out" />
     </method>
     <!--
       closeSession
     -->
     <method name="closeSession">
-      <arg type="a(y)" name="privilege" direction="in" />
       <arg type="u" name="service_id" direction="in" />
       <arg type="u" name="session_id" direction="in" />
       <arg type="i" name="result" direction="out" />
       transmit
     -->
     <method name="transmit">
-      <arg type="a(y)" name="privilege" direction="in" />
       <arg type="u" name="service_id" direction="in" />
       <arg type="u" name="channel_id" direction="in" />
       <arg type="a(y)" name="command" direction="in" />
       closeChannel
     -->
     <method name="closeChannel">
-      <arg type="a(y)" name="privilege" direction="in" />
       <arg type="u" name="service_id" direction="in" />
       <arg type="u" name="channel_id" direction="in" />
       <arg type="i" name="result" direction="out" />