From 850927098605ff169bcc0b576ebd7e0ace963595 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 9 Mar 2007 22:32:47 +0000 Subject: Add skeleton for manager interface --- audio/Makefile.am | 2 +- audio/main.c | 8 +++++++- audio/manager.c | 37 +++++++++++++++++++++++++++++++++++++ audio/manager.h | 25 +++++++++++++++++++++++++ 4 files changed, 70 insertions(+), 2 deletions(-) create mode 100644 audio/manager.c create mode 100644 audio/manager.h (limited to 'audio') 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 + * Copyright (C) 2004-2007 Marcel Holtmann * * * This program is free software; you can redistribute it and/or modify @@ -28,7 +28,13 @@ #include #include +#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 + * + * + * 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 +#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 + * + * + * 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); -- cgit