summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
Diffstat (limited to 'audio')
-rw-r--r--audio/Makefile.am2
-rw-r--r--audio/main.c8
-rw-r--r--audio/manager.c37
-rw-r--r--audio/manager.h25
4 files changed, 70 insertions, 2 deletions
diff --git a/audio/Makefile.am b/audio/Makefile.am
index 5fbbcd21..63f338b7 100644
--- a/audio/Makefile.am
+++ b/audio/Makefile.am
@@ -4,7 +4,7 @@ servicedir = $(libdir)/bluetooth
noinst_PROGRAMS = bluetoothd-service-audio \
bluetoothd-service-headset
-bluetoothd_service_audio_SOURCES = main.c
+bluetoothd_service_audio_SOURCES = main.c manager.h manager.c
bluetoothd_service_audio_LDADD = $(top_builddir)/common/libhelper.a \
@SBC_LIBS@ @GLIB_LIBS@ @DBUS_LIBS@ @BLUEZ_LIBS@
diff --git a/audio/main.c b/audio/main.c
index c04bb251..2f3a1fa0 100644
--- a/audio/main.c
+++ b/audio/main.c
@@ -2,7 +2,7 @@
*
* BlueZ - Bluetooth protocol stack for Linux
*
- * Copyright (C) 2005-2006 Marcel Holtmann <marcel@holtmann.org>
+ * Copyright (C) 2004-2007 Marcel Holtmann <marcel@holtmann.org>
*
*
* This program is free software; you can redistribute it and/or modify
@@ -28,7 +28,13 @@
#include <stdio.h>
#include <errno.h>
+#include "manager.h"
+
int main(int argc, char *argv[])
{
+ audio_init();
+
+ audio_exit();
+
return 0;
}
diff --git a/audio/manager.c b/audio/manager.c
new file mode 100644
index 00000000..7c7a92c0
--- /dev/null
+++ b/audio/manager.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 "manager.h"
+
+int audio_init(void)
+{
+ return 0;
+}
+
+void audio_exit(void)
+{
+}
diff --git a/audio/manager.h b/audio/manager.h
new file mode 100644
index 00000000..3f2988f9
--- /dev/null
+++ b/audio/manager.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 audio_init(void);
+void audio_exit(void);