diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2006-03-09 19:20:38 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2006-03-09 19:20:38 +0000 |
commit | 30471a2ebac1d103ff75a25e36315afd9ac76c46 (patch) | |
tree | 060733fc1119a5507dce4308d0e6c229bb7fd9a9 | |
parent | d7c1b5874dcb3b4242c8d905255cf3c07cd7f877 (diff) |
Add skeleton for general logging functions
-rw-r--r-- | hcid/Makefile.am | 4 | ||||
-rw-r--r-- | hcid/logging.c | 29 |
2 files changed, 31 insertions, 2 deletions
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 <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 <stdio.h> +#include <errno.h> |