Adjust dbus interface for service error code.
authorJiwan Kim <ji-wan.kim@samsung.com>
Thu, 1 Jun 2017 07:21:23 +0000 (16:21 +0900)
committersaerome.kim <saerome.kim@samsung.com>
Mon, 17 Jul 2017 02:35:36 +0000 (11:35 +0900)
- Change to send (u) -> (i) for CAPI error type.

include/mesh.h
introspection/manager.xml
introspection/mesh.xml

index 4fbb743..4dde086 100644 (file)
@@ -23,6 +23,7 @@
 #include <gio/gio.h>
 #include <tizen.h>
 
+/**< Internal error code with mesh daemon. It should be matched with API side */
 typedef enum {
        MESHD_ERROR_NONE = 0, /**< Successful */
        MESHD_ERROR_IO_ERROR, /**< I/O error */
index 9bb0737..f9b3d3b 100644 (file)
@@ -8,10 +8,10 @@
        <interface name="net.mesh.manager">
                <!-- Method definitions -->
                <method name="enable">
-                       <arg type="u" name="result" direction="out"/>
+                       <arg type="i" name="result" direction="out"/>
                </method>
                <method name="disable">
-                       <arg type="u" name="result" direction="out"/>
+                       <arg type="i" name="result" direction="out"/>
                </method>
        </interface>
 </node>
index 1dc36c2..d06d4ed 100644 (file)
@@ -8,39 +8,39 @@
        <interface name="net.mesh">\r
                <!-- Method definitions -->\r
                <method name="scan">\r
-                       <arg type="u" name="result" direction="out"/>\r
+                       <arg type="i" name="result" direction="out"/>\r
                </method>\r
                <method name="specific_scan">\r
                        <arg type="s" name="mesh_id" direction="in"/>\r
                        <arg type="i" name="channel" direction="in"/>\r
-                       <arg type="u" name="result" direction="out"/>\r
+                       <arg type="i" name="result" direction="out"/>\r
                </method>\r
                <method name="cancel_scan">\r
-                       <arg type="u" name="result" direction="out"/>\r
+                       <arg type="i" name="result" direction="out"/>\r
                </method>\r
                <method name="get_found_mesh_networks">\r
                        <arg type="aa{sv}" name="network" direction="out"/>\r
-                       <arg type="u" name="result" direction="out"/>\r
+                       <arg type="i" name="result" direction="out"/>\r
                </method>\r
                <method name="enable_mesh">\r
-                       <arg type="u" name="result" direction="out"/>\r
+                       <arg type="i" name="result" direction="out"/>\r
                </method>\r
                <method name="disable_mesh">\r
-                       <arg type="u" name="result" direction="out"/>\r
+                       <arg type="i" name="result" direction="out"/>\r
                </method>\r
                <method name="get_joined_mesh_network">\r
                        <arg type="s" name="meshid" direction="out"/>\r
                        <arg type="s" name="bssid" direction="out"/>\r
                        <arg type="i" name="channel" direction="out"/>\r
-                       <arg type="u" name="result" direction="out"/>\r
+                       <arg type="i" name="result" direction="out"/>\r
                </method>\r
                <method name="set_gate">\r
                        <arg type="b" name="stp" direction="in"/>\r
                        <arg type="b" name="gate_announce" direction="in"/>\r
-                       <arg type="u" name="result" direction="out"/>\r
+                       <arg type="i" name="result" direction="out"/>\r
                </method>\r
                <method name="unset_gate">\r
-                       <arg type="u" name="result" direction="out"/>\r
+                       <arg type="i" name="result" direction="out"/>\r
                </method>\r
                <method name="set_softap">\r
                        <arg type="s" name="ssid" direction="in"/>\r
                        <arg type="i" name="visibility" direction="in"/>\r
                        <arg type="i" name="max_sta" direction="in"/>\r
                        <arg type="i" name="security" direction="in"/>\r
-                       <arg type="u" name="result" direction="out"/>\r
+                       <arg type="i" name="result" direction="out"/>\r
                </method>\r
                <method name="enable_softap">\r
-                       <arg type="u" name="result" direction="out"/>\r
+                       <arg type="i" name="result" direction="out"/>\r
                </method>\r
                <method name="disable_softap">\r
-                       <arg type="u" name="result" direction="out"/>\r
+                       <arg type="i" name="result" direction="out"/>\r
                </method>\r
                <method name="create_mesh_network">\r
                        <arg type="s" name="mesh_id" direction="in"/>\r
                        <arg type="i" name="channel" direction="in"/>\r
                        <arg type="i" name="security" direction="in"/>\r
-                       <arg type="u" name="result" direction="out"/>\r
+                       <arg type="i" name="result" direction="out"/>\r
                </method>\r
                <method name="connect_mesh_network">\r
                        <arg type="s" name="mesh_id" direction="in"/>\r
                        <arg type="i" name="channel" direction="in"/>\r
                        <arg type="i" name="security" direction="in"/>\r
-                       <arg type="u" name="result" direction="out"/>\r
+                       <arg type="i" name="result" direction="out"/>\r
                </method>\r
                <method name="disconnect_mesh_network">\r
                        <arg type="s" name="mesh_id" direction="in"/>\r
                        <arg type="i" name="channel" direction="in"/>\r
                        <arg type="i" name="security" direction="in"/>\r
-                       <arg type="u" name="result" direction="out"/>\r
+                       <arg type="i" name="result" direction="out"/>\r
                </method>\r
                <method name="forget_mesh_network">\r
                        <arg type="s" name="mesh_id" direction="in"/>\r
                        <arg type="i" name="channel" direction="in"/>\r
                        <arg type="i" name="security" direction="in"/>\r
-                       <arg type="u" name="result" direction="out"/>\r
+                       <arg type="i" name="result" direction="out"/>\r
                </method>\r
                <method name="set_interfaces">\r
                        <arg type="s" name="mesh" direction="in"/>\r
                        <arg type="s" name="gate" direction="in"/>\r
                        <arg type="s" name="softap" direction="in"/>\r
-                       <arg type="u" name="result" direction="out"/>\r
+                       <arg type="i" name="result" direction="out"/>\r
                </method>\r
                <method name="get_station_info">\r
                        <arg type="aa{sv}" name="station" direction="out"/>\r
-                       <arg type="u" name="result" direction="out"/>\r
+                       <arg type="i" name="result" direction="out"/>\r
                </method>\r
                <method name="get_mpath_info">\r
                        <arg type="aa{sv}" name="mpath" direction="out"/>\r
-                       <arg type="u" name="result" direction="out"/>\r
+                       <arg type="i" name="result" direction="out"/>\r
                </method>\r
 \r
                <!-- Signal (D-Bus) definitions -->\r
                <signal name="mesh_enabled">\r
-                       <arg type="u" name="result" direction="out"/>\r
+                       <arg type="i" name="result" direction="out"/>\r
                </signal>\r
                <signal name="scan_done">\r
                </signal>\r