diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2007-03-19 19:17:33 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2007-03-19 19:17:33 +0000 |
commit | d56a98ac7b81e416b7f9e43ae7dfcb7b6a573dd1 (patch) | |
tree | be704470de2b52e89f50e89266350097eedb6535 | |
parent | ab0791e294f317f970e5dc288c2d9f87fd22a4e2 (diff) |
Add skeleton for HAL support
-rw-r--r-- | network/Makefile.am | 2 | ||||
-rw-r--r-- | network/hal.c | 37 | ||||
-rw-r--r-- | network/hal.h | 25 |
3 files changed, 63 insertions, 1 deletions
diff --git a/network/Makefile.am b/network/Makefile.am index 094f95e8..aa3412b6 100644 --- a/network/Makefile.am +++ b/network/Makefile.am @@ -13,7 +13,7 @@ noinst_PROGRAMS = bluetoothd-service-network bluetoothd_service_network_SOURCES = main.c \ manager.h manager.c error.h error.c \ server.h server.c bridge.h bridge.c \ - connection.h connection.c + hal.h hal.c connection.h connection.c LDADD = $(top_builddir)/common/libhelper.a \ @GLIB_LIBS@ @DBUS_LIBS@ @BLUEZ_LIBS@ diff --git a/network/hal.c b/network/hal.c new file mode 100644 index 00000000..f024282e --- /dev/null +++ b/network/hal.c @@ -0,0 +1,37 @@ +/* + * + * 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 + * + */ + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + +#include "hal.h" + +int hal_init(void) +{ + return 0; +} + +void hal_cleanup(void) +{ +} diff --git a/network/hal.h b/network/hal.h new file mode 100644 index 00000000..769f203b --- /dev/null +++ b/network/hal.h @@ -0,0 +1,25 @@ +/* + * + * 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 + * + */ + +int hal_init(void); +void hal_cleanup(void); |