summaryrefslogtreecommitdiffstats
path: root/hcid/device.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-08-17 20:28:47 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-08-17 20:28:47 +0000
commit86892be8d38960096f9b9c5613ba28fc9003d288 (patch)
treefdf1987d0e4f261112ea3fb4561c3cb4fd50e943 /hcid/device.h
parentc2f12da34adf0e5d2a04b7b3dbeb3753cb77f5d7 (diff)
Add initial steps for generic device handling
Diffstat (limited to 'hcid/device.h')
-rw-r--r--hcid/device.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/hcid/device.h b/hcid/device.h
new file mode 100644
index 00000000..73c2b718
--- /dev/null
+++ b/hcid/device.h
@@ -0,0 +1,32 @@
+/*
+ *
+ * BlueZ - Bluetooth protocol stack for Linux
+ *
+ * Copyright (C) 2004-2007 Marcel Holtmann <marcel@holtmann.org>
+ *
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ */
+
+struct device_data {
+ char *path;
+};
+
+gboolean device_init(DBusConnection *conn);
+void device_cleanup(void);
+void device_foreach(GFunc func, gpointer user_data);
+struct device_data *device_create(const char *adapter, const char *address);
+void device_remove(const char *path);