Fix gdbus interface prefix and typo in xml 22/126522/3
authorHyeongsik Min <hyeongsik.min@samsung.com>
Mon, 24 Apr 2017 04:11:26 +0000 (13:11 +0900)
committerHyeongsik Min <hyeongsik.min@samsung.com>
Mon, 24 Apr 2017 11:06:13 +0000 (20:06 +0900)
Changed gdbus interface prefix to 'org.tizen.peripheral_io'.

Change-Id: Iab717d474a9c01011fe08268999d7849433849b4
Signed-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
CMakeLists.txt
include/peripheral_dbus.h
src/peripheral_io.xml

index c9d951a..45ec9ac 100644 (file)
@@ -21,7 +21,7 @@ EXEC_PROGRAM(${GDBUS_CODEGEN} ARGS
                 " \\
                 --generate-c-code ${CMAKE_SOURCE_DIR}/src/peripheral_io_gdbus \\
                 --c-namespace PeripheralIoGdbus \\
-                --interface-prefix org.tizen.system.peripheral_io. \\
+                --interface-prefix org.tizen.peripheral_io. \\
                 ${CMAKE_SOURCE_DIR}/src/peripheral_io.xml \\
                 ")
 
index d21fb2a..557b296 100644 (file)
 
 #include <gio/gio.h>
 
-#define PERIPHERAL_DBUS_INTERFACE      "org.tizen.system.peripheral_io"
-#define PERIPHERAL_DBUS_PATH           "/Org/Tizen/System/Peripheral_io"
-#define PERIPHERAL_DBUS_GPIO_PATH      "/Org/Tizen/System/Peripheral_io/Gpio"
-#define PERIPHERAL_DBUS_I2C_PATH       "/Org/Tizen/System/Peripheral_io/I2c"
-#define PERIPHERAL_DBUS_PWM_PATH       "/Org/Tizen/System/Peripheral_io/Pwm"
-#define PERIPHERAL_DBUS_NAME           "org.tizen.system.peripheral_io"
+#define PERIPHERAL_DBUS_INTERFACE      "org.tizen.peripheral_io"
+#define PERIPHERAL_DBUS_PATH           "/Org/Tizen/Peripheral_io"
+#define PERIPHERAL_DBUS_GPIO_PATH      "/Org/Tizen/Peripheral_io/Gpio"
+#define PERIPHERAL_DBUS_I2C_PATH       "/Org/Tizen/Peripheral_io/I2c"
+#define PERIPHERAL_DBUS_PWM_PATH       "/Org/Tizen/Peripheral_io/Pwm"
+#define PERIPHERAL_DBUS_NAME           "org.tizen.peripheral_io"
 
 #define PERIPHERAL_METHOD_GPIO "gpio"
 #define PERIPHERAL_METHOD_I2C  "i2c"
index 07a0067..40672ad 100644 (file)
@@ -1,46 +1,46 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <node>
-       <interface name="org.tizen.system.peripheral_io.gpio">
+       <interface name="org.tizen.peripheral_io.gpio">
                <method name="Open">
-                       <arg type="i" name="pin" dyyirection="in"/>
+                       <arg type="i" name="pin" direction="in"/>
                        <arg type="i" name="result" direction="out"/>
                </method>
                <method name="Close">
-                       <arg type="i" name="pin" dyyirection="in"/>
+                       <arg type="i" name="pin" direction="in"/>
                        <arg type="i" name="result" direction="out"/>
                </method>
                <method name="GetDirection">
-                       <arg type="i" name="pin" dyyirection="in"/>
+                       <arg type="i" name="pin" direction="in"/>
                        <arg type="i" name="direction" direction="out"/>
                        <arg type="i" name="result" direction="out"/>
                </method>
                <method name="SetDirection">
-                       <arg type="i" name="pin" dyyirection="in"/>
+                       <arg type="i" name="pin" direction="in"/>
                        <arg type="i" name="direction" direction="in"/>
                        <arg type="i" name="result" direction="out"/>
                </method>
                <method name="Read">
-                       <arg type="i" name="pin" dyyirection="in"/>
+                       <arg type="i" name="pin" direction="in"/>
                        <arg type="i" name="value" direction="out"/>
                        <arg type="i" name="result" direction="out"/>
                </method>
                <method name="Write">
-                       <arg type="i" name="pin" dyyirection="in"/>
+                       <arg type="i" name="pin" direction="in"/>
                        <arg type="i" name="value" direction="in"/>
                        <arg type="i" name="result" direction="out"/>
                </method>
                <method name="GetEdgeMode">
-                       <arg type="i" name="pin" dyyirection="in"/>
+                       <arg type="i" name="pin" direction="in"/>
                        <arg type="i" name="edge" direction="out"/>
                        <arg type="i" name="result" direction="out"/>
                </method>
                <method name="SetEdgeMode">
-                       <arg type="i" name="pin" dyyirection="in"/>
+                       <arg type="i" name="pin" direction="in"/>
                        <arg type="i" name="edge" direction="in"/>
                        <arg type="i" name="result" direction="out"/>
                </method>
        </interface>
-       <interface name="org.tizen.system.peripheral_io.i2c">
+       <interface name="org.tizen.peripheral_io.i2c">
                <method name="Init">
                        <arg type="i" name="bus" direction="in"/>
                        <arg type="i" name="fd" direction="out"/>
@@ -72,7 +72,7 @@
                        <arg type="i" name="result" direction="out"/>
                </method>
        </interface>
-       <interface name="org.tizen.system.peripheral_io.pwm">
+       <interface name="org.tizen.peripheral_io.pwm">
                <method name="Open">
                        <arg type="i" name="device" direction="in"/>
                        <arg type="i" name="channel" direction="in"/>