Re: [Bluez-devel] Alignment issue

David Woodhouse
2005-01-21T08:26:11Z

On Thu, 2005-01-20 at 19:14 +0100, Marcel Holtmann wrote:
> Your patch is now in (after I reworked the tab vs. space problem). And
> everyone should start testing these on various platforms.

OK. Do you want to apply this one too so we can release bluez-libs-2.15
without changing the soname?

--- bluez-libs-2.14/src/hci.c.compat 2005-01-20 12:21:11.000000000 +0000
+++ bluez-libs-2.14/src/hci.c 2005-01-20 12:21:17.000000000 +0000
@@ -850,6 +850,11 @@ int hci_disconnect(int dd, uint16_t hand
return 0;
}

+int hci_local_name(int dd, int len, char *name, int to)
+{
+ return hci_read_local_name(dd, len, name, to);
+}
+
int hci_read_local_name(int dd, int len, char *name, int to)
{
read_local_name_rp rp;
@@ -891,6 +896,11 @@ int hci_write_local_name(int dd, const c
return 0;
}

+int hci_remote_name(int dd, const bdaddr_t *bdaddr, int len, char *name, int to)
+{
+ return hci_read_remote_name(dd, bdaddr, len, name, to);
+}
+
int hci_read_remote_name(int dd, const bdaddr_t *bdaddr, int len, char *name, int to)
{
evt_remote_name_req_complete rn;
--- bluez-libs-2.14/include/hci_lib.h.compat 2005-01-20 12:21:11.000000000 +0000
+++ bluez-libs-2.14/include/hci_lib.h 2005-01-20 12:21:17.000000000 +0000
@@ -66,8 +66,11 @@ int hci_devinfo(int dev_id, struct hci_d
int hci_devba(int dev_id, bdaddr_t *bdaddr);
int hci_devid(const char *str);

+/* deprecated: preserve compatibility */
+int hci_local_name(int dd, int len, char *name, int to);
int hci_read_local_name(int dd, int len, char *name, int to);
int hci_write_local_name(int dd, const char *name, int to);
+int hci_remote_name(int dd, const bdaddr_t *bdaddr, int len, char *name, int to);
int hci_read_remote_name(int dd, const bdaddr_t *bdaddr, int len, char *name, int to);
int hci_read_remote_features(int dd, uint16_t handle, uint8_t *features, int to);
int hci_read_remote_version(int dd, uint16_t handle, struct hci_version *ver, int to);

--
dwmw2

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl