OSDN Git Service

Input cleanup: removed old API files
authorClaudio Takahasi <claudio.takahasi@openbossa.org>
Tue, 2 Sep 2008 20:59:29 +0000 (17:59 -0300)
committerClaudio Takahasi <claudio.takahasi@openbossa.org>
Wed, 3 Sep 2008 18:34:25 +0000 (15:34 -0300)
input/Makefile.am
input/input-api.txt [deleted file]
input/test-input [deleted file]

index 44f416e..e22f125 100644 (file)
@@ -19,6 +19,6 @@ AM_CFLAGS = @BLUEZ_CFLAGS@ @DBUS_CFLAGS@ @GLIB_CFLAGS@ @GDBUS_CFLAGS@
 
 INCLUDES = -I$(top_srcdir)/common -I$(top_srcdir)/src
 
-EXTRA_DIST = input.conf input-api.txt test-input
+EXTRA_DIST = input.conf
 
 MAINTAINERCLEANFILES = Makefile.in
diff --git a/input/input-api.txt b/input/input-api.txt
deleted file mode 100644 (file)
index 8eb1312..0000000
+++ /dev/null
@@ -1,103 +0,0 @@
-Bluetooth input service API description
-***************************************
-
-Copyright (C) 2006-2007  Marcel Holtmann <marcel@holtmann.org>
-
-
-Input Manager hierarchy
-=======================
-
-Interface      org.bluez.input.Manager
-Object path    /org/bluez/input
-
-Methods                array{string} ListDevices()
-
-                       Returns an array of available input devices path.
-
-               string CreateDevice(string address)
-
-                       Create an input device object.
-
-                       On success it will return the path of the
-                       newly created device object.
-
-                       Possible errors: org.bluez.Error.AlreadyExists
-                                        org.bluez.Error.NotSupported
-                                        org.bluez.Error.ConnectionAttemptFailed
-                                        org.bluez.Error.Failed
-
-               string CreateSecureDevice(string address)
-
-                       Create an input device object. Pairing will
-                       be initiated if needed(keyboard/combo devices).
-
-                       On success it will return the path of the
-                       newly created device object.
-
-                       Possible errors: org.bluez.Error.AlreadyExists
-                                        org.bluez.Error.NotSupported
-                                        org.bluez.Error.ConnectionAttemptFailed
-                                        org.bluez.Error.Failed
-
-               void RemoveDevice(string path)
-
-                       Remove the input device object for a given path.
-
-                       Possible errors:org.bluez.Error.DoesNotExist
-                                       org.bluez.Error.Failed
-
-Signals                void DeviceCreated(string path)
-
-               void DeviceRemoved(string path)
-
-
-Input Device hierarchy
-======================
-
-Interface      org.bluez.input.Device
-Object path    /org/bluez/input/{keyboard*|mouse*|...}
-
-Methods                string GetAdapter()
-
-                       Returns the adapter address.
-
-                       Example: "00:11:22:33:44:55"
-
-               string GetAddress()
-
-                       Returns the device address.
-
-                       Example: "00:11:22:33:44:55"
-
-               string GetName()
-
-                       Returns the service name.
-
-               uint16 GetProductId()
-
-                       Returns the product id.
-
-               uint16 GetVendorId()
-
-                       Returns the vendor id.
-
-               boolean IsConnected()
-
-                       Returns the connection status.
-
-               void Connect()
-
-                       Connect to the input device.
-
-                       Possible errors: org.bluez.Error.AlreadyConnected
-                                        org.bluez.Error.ConnectionAttemptFailed
-
-               void Disconnect()
-
-                       Disconnect from the input device.
-
-                       Possible errors: org.bluez.Error.Failed
-
-Signals                void Connected()
-
-               void Disconnected()
diff --git a/input/test-input b/input/test-input
deleted file mode 100755 (executable)
index 7f41b6f..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/usr/bin/python
-
-import sys
-import dbus
-
-bus = dbus.SystemBus()
-
-manager = dbus.Interface(bus.get_object('org.bluez', '/org/bluez'),
-                                                       'org.bluez.Manager')
-
-conn = manager.ActivateService('input')
-
-input = dbus.Interface(bus.get_object(conn, '/org/bluez/input'),
-                                               'org.bluez.input.Manager')
-
-if (len(sys.argv) < 2):
-       print "Usage: %s <command>" % (sys.argv[0])
-       print ""
-       print "  list"
-       print "  create <address>"
-       print "  remove <path>"
-       sys.exit(1)
-
-if (sys.argv[1] == "list"):
-       list = input.ListDevices()
-       print list
-       sys.exit(0)
-
-if (sys.argv[1] == "create"):
-       if (len(sys.argv) < 3):
-               print "Need address parameter"
-       else:
-               device = input.CreateSecureDevice(sys.argv[2])
-               print device
-       sys.exit(0)
-
-if (sys.argv[1] == "remove"):
-       if (len(sys.argv) < 3):
-               print "Need object path parameter"
-       else:
-               input.RemoveDevice(sys.argv[2])
-       sys.exit(0)
-
-print "Unknown command"
-sys.exit(1)