From 30471a2ebac1d103ff75a25e36315afd9ac76c46 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 9 Mar 2006 19:20:38 +0000 Subject: Add skeleton for general logging functions --- hcid/Makefile.am | 4 ++-- hcid/logging.c | 29 +++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 hcid/logging.c diff --git a/hcid/Makefile.am b/hcid/Makefile.am index aa3b2cc1..2a80ba6f 100644 --- a/hcid/Makefile.am +++ b/hcid/Makefile.am @@ -29,8 +29,8 @@ dbus_hcid_libs = dbus_hcid_cflags = endif -hcid_SOURCES = main.c security.c device.c storage.c hcid.h \ - sdp.c sdp.h lib.c lib.h parser.h parser.y \ +hcid_SOURCES = main.c security.c device.c logging.c storage.c \ + sdp.c sdp.h lib.c lib.h hcid.h parser.h parser.y \ lexer.l kword.c kword.h $(dbus_hcid_sources) \ $(top_builddir)/tools/oui.h $(top_builddir)/tools/oui.c diff --git a/hcid/logging.c b/hcid/logging.c new file mode 100644 index 00000000..f3bf47c4 --- /dev/null +++ b/hcid/logging.c @@ -0,0 +1,29 @@ +/* + * + * BlueZ - Bluetooth protocol stack for Linux + * + * Copyright (C) 2004-2006 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 +#include -- cgit