summaryrefslogtreecommitdiffstats
path: root/sdpd
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2004-04-03 06:04:35 +0000
committerMarcel Holtmann <marcel@holtmann.org>2004-04-03 06:04:35 +0000
commit1d3715db11f573060cb02a2b7b7c44f06607d337 (patch)
tree53e9b7eca91253c4c19e2cba3679d3c6084000a7 /sdpd
parentb215047988241418ccbcaa41c07366ea637678c7 (diff)
Update BlueZ library configuration
Diffstat (limited to 'sdpd')
-rw-r--r--sdpd/Makefile.am4
-rw-r--r--sdpd/main.c8
-rw-r--r--sdpd/sdpd.h9
3 files changed, 20 insertions, 1 deletions
diff --git a/sdpd/Makefile.am b/sdpd/Makefile.am
index 81c248ce..97f9b9e1 100644
--- a/sdpd/Makefile.am
+++ b/sdpd/Makefile.am
@@ -6,6 +6,10 @@ sbin_PROGRAMS = sdpd
sdpd_SOURCES = main.c request.c service.c cstate.c servicedb.c sdpd.h
+LDFLAGS = @BLUEZ_LIBS@
+
+INCLUDES = @BLUEZ_INCLUDES@
+
man_MANS = sdpd.8
EXTRA_DIST = $(man_MANS)
diff --git a/sdpd/main.c b/sdpd/main.c
index fea283f2..132539d5 100644
--- a/sdpd/main.c
+++ b/sdpd/main.c
@@ -34,23 +34,29 @@
/*
* $Id$
*/
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <errno.h>
#include <signal.h>
+#include <syslog.h>
#include <getopt.h>
#include <sys/un.h>
#include <sys/select.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
+#include <netinet/in.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/l2cap.h>
#include <bluetooth/sdp.h>
#include <bluetooth/sdp_lib.h>
-#include <bluetooth/sdp_internal.h>
#include "sdpd.h"
diff --git a/sdpd/sdpd.h b/sdpd/sdpd.h
index 1f0d7e47..37c685e2 100644
--- a/sdpd/sdpd.h
+++ b/sdpd/sdpd.h
@@ -30,6 +30,15 @@
#ifndef SDPD_H
#define SDPD_H
+#define SDPINF(fmt, arg...) syslog(LOG_INFO, fmt "\n", ## arg)
+#define SDPERR(fmt, arg...) syslog(LOG_ERR, "%s: " fmt "\n", __func__ , ## arg)
+
+#ifdef SDP_DEBUG
+#define SDPDBG(fmt, arg...) syslog(LOG_DEBUG, "%s: " fmt "\n", __func__ , ## arg)
+#else
+#define SDPDBG(fmt...)
+#endif
+
typedef struct request {
bdaddr_t bdaddr;
int local;