summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2008-09-02 16:48:47 -0300
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2008-09-03 15:34:25 -0300
commitdd749c518ab4d2f5833b844a10a563286f23d3d8 (patch)
tree4862bd0c09f13221a95fb12d91c037cf07103db4 /input
parent29ac7adb5e2d8feb59824be6f2443ac5ac24e506 (diff)
Input cleanup: Unnecessary headers and function
Diffstat (limited to 'input')
-rw-r--r--input/device.c8
-rw-r--r--input/device.h2
-rw-r--r--input/server.c7
3 files changed, 0 insertions, 17 deletions
diff --git a/input/device.c b/input/device.c
index ccaf0374..e5fe0c46 100644
--- a/input/device.c
+++ b/input/device.c
@@ -44,7 +44,6 @@
#include <gdbus.h>
#include "logging.h"
-#include "textfile.h"
#include "uinput.h"
#include "device.h"
@@ -1002,13 +1001,6 @@ int input_device_unregister(const char *path, const char *uuid)
return 0;
}
-gboolean input_device_is_registered(bdaddr_t *src, bdaddr_t *dst)
-{
- struct input_device *idev = find_device(src, dst);
-
- return idev ? TRUE : FALSE;
-}
-
int input_device_set_channel(const bdaddr_t *src, const bdaddr_t *dst, int psm, int nsk)
{
struct input_device *idev = find_device(src, dst);
diff --git a/input/device.h b/input/device.h
index 036907b3..cdc65171 100644
--- a/input/device.h
+++ b/input/device.h
@@ -45,8 +45,6 @@ int fake_input_register(DBusConnection *conn, const char *path, bdaddr_t *src,
bdaddr_t *dst, const char *uuid, uint8_t channel);
int input_device_unregister(const char *path, const char *uuid);
-gboolean input_device_is_registered(bdaddr_t *src, bdaddr_t *dst);
-
int input_device_set_channel(const bdaddr_t *src, const bdaddr_t *dst, int psm, int nsk);
int input_device_close_channels(const bdaddr_t *src, const bdaddr_t *dst);
int input_device_connadd(bdaddr_t *src, bdaddr_t *dst);
diff --git a/input/server.c b/input/server.c
index d8bd1925..e3411cb5 100644
--- a/input/server.c
+++ b/input/server.c
@@ -25,29 +25,22 @@
#include <config.h>
#endif
-#include <errno.h>
#include <unistd.h>
-#include <stdlib.h>
-#include <sys/ioctl.h>
-#include <sys/socket.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/l2cap.h>
#include <bluetooth/hidp.h>
#include <bluetooth/hci.h>
-#include <bluetooth/hci_lib.h>
#include <bluetooth/sdp.h>
#include <glib.h>
#include <dbus/dbus.h>
-#include <gdbus.h>
#include "logging.h"
#include "adapter.h"
#include "device.h"
#include "server.h"
-#include "storage.h"
#include "glib-helper.h"
static const char *HID_UUID = "00001124-0000-1000-8000-00805f9b34fb";