Linux bluetooth development
 help / color / mirror / Atom feed
From: Szymon Janc <szymon.janc@tieto.com>
To: <linux-bluetooth@vger.kernel.org>
Cc: Szymon Janc <szymon.janc@tieto.com>
Subject: [RFC 7/7] device: Make device_get_address return const pointer
Date: Thu, 4 Oct 2012 14:06:04 +0200	[thread overview]
Message-ID: <1349352364-5491-8-git-send-email-szymon.janc@tieto.com> (raw)
In-Reply-To: <1349352364-5491-1-git-send-email-szymon.janc@tieto.com>

---
 src/device.c |    2 +-
 src/device.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/device.c b/src/device.c
index 58498b2..46758bd 100644
--- a/src/device.c
+++ b/src/device.c
@@ -2311,7 +2311,7 @@ struct btd_adapter *device_get_adapter(struct btd_device *device)
 	return device->adapter;
 }
 
-bdaddr_t *device_get_address(struct btd_device *device)
+const bdaddr_t *device_get_address(struct btd_device *device)
 {
 	return &device->bdaddr;
 }
diff --git a/src/device.h b/src/device.h
index f919af4..0c16c18 100644
--- a/src/device.h
+++ b/src/device.h
@@ -64,7 +64,7 @@ void btd_device_add_uuid(struct btd_device *device, const char *uuid);
 void device_probe_profile(gpointer a, gpointer b);
 void device_remove_profile(gpointer a, gpointer b);
 struct btd_adapter *device_get_adapter(struct btd_device *device);
-bdaddr_t *device_get_address(struct btd_device *device);
+const bdaddr_t *device_get_address(struct btd_device *device);
 void device_set_addr_type(struct btd_device *device, uint8_t bdaddr_type);
 uint8_t device_get_addr_type(struct btd_device *device);
 const gchar *device_get_path(struct btd_device *device);
-- 
1.7.9.5


      parent reply	other threads:[~2012-10-04 12:06 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-04 12:05 [RFC 0/7] adapter and device bdaddr_t getters Szymon Janc
2012-10-04 12:05 ` [RFC 1/7] adapter: Convert adapter_get_address into simple getter Szymon Janc
2012-10-04 12:05 ` [RFC 2/7] storage: Constify bdaddr_t pointers parameters Szymon Janc
2012-10-04 12:06 ` [RFC 3/7] adapter: Constify pointer returned by adapter_get_address Szymon Janc
2012-10-04 12:06 ` [RFC 4/7] device: Convert device_get_address into simple getter Szymon Janc
2012-10-04 12:06 ` [RFC 5/7] mgmt: Constify use of bdaddr_t pointer parameters Szymon Janc
2012-10-04 12:06 ` [RFC 6/7] adapter: " Szymon Janc
2012-10-04 12:06 ` Szymon Janc [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1349352364-5491-8-git-send-email-szymon.janc@tieto.com \
    --to=szymon.janc@tieto.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox