diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2006-06-02 10:27:57 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2006-06-02 10:27:57 +0000 |
commit | 5093d69a31cfc7e27235c7e9d6481c82e3867891 (patch) | |
tree | 5c1b100f1e5644d5766a7f597eb1d3342fd062ae /hcid/main.c | |
parent | 1cb7d5d359881443a53e1859c1dfbf8f947e702b (diff) |
Make RFCOMM and SDP support experimental
Diffstat (limited to 'hcid/main.c')
-rw-r--r-- | hcid/main.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/hcid/main.c b/hcid/main.c index 86a4a773..757d436f 100644 --- a/hcid/main.c +++ b/hcid/main.c @@ -654,7 +654,7 @@ int main(int argc, char *argv[]) struct hci_filter flt; struct sigaction sa; GIOChannel *ctl_io; - int opt, daemonize = 1, sdp = 0; + int opt, daemonize = 1, sdp = 0, experimental = 0; /* Default HCId settings */ memset(&hcid, 0, sizeof(hcid)); @@ -671,7 +671,7 @@ int main(int argc, char *argv[]) init_defaults(); - while ((opt = getopt(argc, argv, "nsf:")) != EOF) { + while ((opt = getopt(argc, argv, "nsxf:")) != EOF) { switch (opt) { case 'n': daemonize = 0; @@ -681,6 +681,10 @@ int main(int argc, char *argv[]) sdp = 1; break; + case 'x': + experimental = 1; + break; + case 'f': hcid.config_file = strdup(optarg); break; @@ -744,11 +748,14 @@ int main(int argc, char *argv[]) init_devices(); - if (hcid_dbus_init() == FALSE) { + if (hcid_dbus_init() < 0) { error("Unable to get on D-Bus"); exit(1); } + if (experimental) + hcid_dbus_set_experimental(); + init_security_data(); /* Create event loop */ |