Hello community, here is the log from the commit of package bluez-libs checked in at Fri Nov 23 01:50:20 CET 2007. -------- --- bluez-libs/bluez-libs.changes 2007-09-17 16:12:07.000000000 +0200 +++ /mounts/work_src_done/STABLE/bluez-libs/bluez-libs.changes 2007-11-22 19:35:24.000000000 +0100 @@ -1,0 +2,8 @@ +Thu Nov 22 19:32:09 CET 2007 - seife@suse.de + +- update to v3.22: + ver 3.22: Fix remote name request event handling. + ver 3.21: Add constant for Bluetooth socket options level. + ver 3.20: Add support for inquiry transmit power level. + +------------------------------------------------------------------- Old: ---- bluez-libs-3.19.tar.bz2 New: ---- bluez-libs-3.22.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ bluez-libs.spec ++++++ --- /var/tmp/diff_new_pack.D17875/_old 2007-11-23 01:50:05.000000000 +0100 +++ /var/tmp/diff_new_pack.D17875/_new 2007-11-23 01:50:05.000000000 +0100 @@ -1,5 +1,5 @@ # -# spec file for package bluez-libs (Version 3.19) +# spec file for package bluez-libs (Version 3.22) # # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine @@ -12,7 +12,7 @@ Name: bluez-libs Url: http://bluez.sourceforge.net -Version: 3.19 +Version: 3.22 Release: 1 Summary: Bluetooth Libraries License: GPL v2 or later @@ -64,7 +64,13 @@ %{_libdir}/pkgconfig/bluez.pc %{_datadir}/aclocal/bluez.m4 %doc AUTHORS COPYING INSTALL ChangeLog NEWS README + %changelog +* Thu Nov 22 2007 - seife@suse.de +- update to v3.22: + ver 3.22: Fix remote name request event handling. + ver 3.21: Add constant for Bluetooth socket options level. + ver 3.20: Add support for inquiry transmit power level. * Mon Sep 17 2007 - seife@suse.de - update to v3.19: * Add L2CAP mode constants. ++++++ bluez-libs-3.19.tar.bz2 -> bluez-libs-3.22.tar.bz2 ++++++ diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/bluez-libs-3.19/ChangeLog new/bluez-libs-3.22/ChangeLog --- old/bluez-libs-3.19/ChangeLog 2007-09-16 09:51:50.000000000 +0200 +++ new/bluez-libs-3.22/ChangeLog 2007-10-26 01:08:27.000000000 +0200 @@ -1,3 +1,12 @@ +ver 3.22: + Fix remote name request event handling. + +ver 3.21: + Add constant for Bluetooth socket options level. + +ver 3.20: + Add support for inquiry transmit power level. + ver 3.19: Add L2CAP mode constants. diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/bluez-libs-3.19/configure new/bluez-libs-3.22/configure --- old/bluez-libs-3.19/configure 2007-09-16 09:59:22.000000000 +0200 +++ new/bluez-libs-3.22/configure 2007-10-26 01:09:52.000000000 +0200 @@ -2236,7 +2236,7 @@ # Define the identity of the package. PACKAGE=bluez-libs - VERSION=3.19 + VERSION=3.22 cat >>confdefs.h <<_ACEOF diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/bluez-libs-3.19/configure.in new/bluez-libs-3.22/configure.in --- old/bluez-libs-3.19/configure.in 2007-09-16 09:51:50.000000000 +0200 +++ new/bluez-libs-3.22/configure.in 2007-10-26 01:08:27.000000000 +0200 @@ -1,7 +1,7 @@ AC_PREREQ(2.50) AC_INIT() -AM_INIT_AUTOMAKE(bluez-libs, 3.19) +AM_INIT_AUTOMAKE(bluez-libs, 3.22) AM_CONFIG_HEADER(config.h) AM_MAINTAINER_MODE diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/bluez-libs-3.19/include/bluetooth.h new/bluez-libs-3.22/include/bluetooth.h --- old/bluez-libs-3.19/include/bluetooth.h 2007-06-24 00:55:57.000000000 +0200 +++ new/bluez-libs-3.22/include/bluetooth.h 2007-10-25 01:10:07.000000000 +0200 @@ -41,6 +41,10 @@ #define PF_BLUETOOTH AF_BLUETOOTH #endif +#ifndef SOL_BLUETOOTH +#define SOL_BLUETOOTH 274 +#endif + #define BTPROTO_L2CAP 0 #define BTPROTO_HCI 1 #define BTPROTO_SCO 2 diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/bluez-libs-3.19/include/hci_lib.h new/bluez-libs-3.22/include/hci_lib.h --- old/bluez-libs-3.19/include/hci_lib.h 2007-08-08 18:05:29.000000000 +0200 +++ new/bluez-libs-3.22/include/hci_lib.h 2007-10-05 09:15:52.000000000 +0200 @@ -101,6 +101,8 @@ int hci_read_simple_pairing_mode(int dd, uint8_t *mode, int to); int hci_write_simple_pairing_mode(int dd, uint8_t mode, int to); int hci_read_local_oob_data(int dd, uint8_t *hash, uint8_t *randomizer, int to); +int hci_read_inquiry_transmit_power_level(int dd, int8_t *level, int to); +int hci_write_inquiry_transmit_power_level(int dd, int8_t level, int to); int hci_read_transmit_power_level(int dd, uint16_t handle, uint8_t type, int8_t *level, int to); int hci_read_link_supervision_timeout(int dd, uint16_t handle, uint16_t *timeout, int to); int hci_write_link_supervision_timeout(int dd, uint16_t handle, uint16_t timeout, int to); diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/bluez-libs-3.19/src/hci.c new/bluez-libs-3.22/src/hci.c --- old/bluez-libs-3.19/src/hci.c 2007-08-30 14:25:19.000000000 +0200 +++ new/bluez-libs-3.22/src/hci.c 2007-10-26 01:08:27.000000000 +0200 @@ -1009,7 +1009,9 @@ try = 10; while (try--) { evt_cmd_complete *cc; - evt_cmd_status *cs; + evt_cmd_status *cs; + evt_remote_name_req_complete *rn; + remote_name_req_cp *cp; if (to) { struct pollfd p; @@ -1074,6 +1076,20 @@ memcpy(r->rparam, ptr, r->rlen); goto done; + case EVT_REMOTE_NAME_REQ_COMPLETE: + if (hdr->evt != r->event) + break; + + rn = r->rparam; + cp = r->cparam; + + if (bacmp(&rn->bdaddr, &cp->bdaddr)) + continue; + + r->rlen = MIN(len, r->rlen); + memcpy(r->rparam, ptr, r->rlen); + goto done; + default: if (hdr->evt != r->event) break; @@ -2135,6 +2151,57 @@ return 0; } +int hci_read_inquiry_transmit_power_level(int dd, int8_t *level, int to) +{ + read_inquiry_transmit_power_level_rp rp; + struct hci_request rq; + + memset(&rq, 0, sizeof(rq)); + rq.ogf = OGF_HOST_CTL; + rq.ocf = OCF_READ_INQUIRY_TRANSMIT_POWER_LEVEL; + rq.rparam = &rp; + rq.rlen = READ_INQUIRY_TRANSMIT_POWER_LEVEL_RP_SIZE; + + if (hci_send_req(dd, &rq, to) < 0) + return -1; + + if (rp.status) { + errno = EIO; + return -1; + } + + *level = rp.level; + return 0; +} + +int hci_write_inquiry_transmit_power_level(int dd, int8_t level, int to) +{ + write_inquiry_transmit_power_level_cp cp; + write_inquiry_transmit_power_level_rp rp; + struct hci_request rq; + + memset(&cp, 0, sizeof(cp)); + cp.level = level; + + memset(&rq, 0, sizeof(rq)); + rq.ogf = OGF_HOST_CTL; + rq.ocf = OCF_WRITE_INQUIRY_TRANSMIT_POWER_LEVEL; + rq.cparam = &cp; + rq.clen = WRITE_INQUIRY_TRANSMIT_POWER_LEVEL_CP_SIZE; + rq.rparam = &rp; + rq.rlen = WRITE_INQUIRY_TRANSMIT_POWER_LEVEL_RP_SIZE; + + if (hci_send_req(dd, &rq, to) < 0) + return -1; + + if (rp.status) { + errno = EIO; + return -1; + } + + return 0; +} + int hci_read_transmit_power_level(int dd, uint16_t handle, uint8_t type, int8_t *level, int to) { read_transmit_power_level_cp cp; diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/bluez-libs-3.19/src/Makefile.am new/bluez-libs-3.22/src/Makefile.am --- old/bluez-libs-3.19/src/Makefile.am 2007-09-16 09:51:50.000000000 +0200 +++ new/bluez-libs-3.22/src/Makefile.am 2007-10-26 01:08:27.000000000 +0200 @@ -2,7 +2,7 @@ lib_LTLIBRARIES = libbluetooth.la libbluetooth_la_SOURCES = bluetooth.c hci.c sdp.c -libbluetooth_la_LDFLAGS = -version-info 10:5:8 +libbluetooth_la_LDFLAGS = -version-info 11:2:9 INCLUDES = -I$(top_builddir)/include diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/bluez-libs-3.19/src/Makefile.in new/bluez-libs-3.22/src/Makefile.in --- old/bluez-libs-3.19/src/Makefile.in 2007-09-16 09:59:21.000000000 +0200 +++ new/bluez-libs-3.22/src/Makefile.in 2007-10-26 01:09:51.000000000 +0200 @@ -175,7 +175,7 @@ top_srcdir = @top_srcdir@ lib_LTLIBRARIES = libbluetooth.la libbluetooth_la_SOURCES = bluetooth.c hci.c sdp.c -libbluetooth_la_LDFLAGS = -version-info 10:5:8 +libbluetooth_la_LDFLAGS = -version-info 11:2:9 INCLUDES = -I$(top_builddir)/include MAINTAINERCLEANFILES = Makefile.in all: all-am ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org