summaryrefslogtreecommitdiffstats
path: root/sdpd
diff options
context:
space:
mode:
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;