summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2013-06-19 15:38:11 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2013-06-19 15:38:11 +0200
commit31678eefbd7ad65c137e51105d8bb2580d168b29 (patch)
tree68be3767f769c2a31a1102d71da25f7030cfcdac
parent3088964bfa484ea4ba0b02d05b580e3f6b26264f (diff)
downloadneard-31678eefbd7ad65c137e51105d8bb2580d168b29.tar.gz
neard-31678eefbd7ad65c137e51105d8bb2580d168b29.tar.bz2
neard-31678eefbd7ad65c137e51105d8bb2580d168b29.zip
ndef: Rename near_ndef_prepare_hs_message
near_ndef_prepare_hs_message() does not prepare a generic handover select message but rather a reply to a handover request. Those 2 have to be differentiated in order to implement static handover where a handover select frame is sent without having first seen a handover request.
-rw-r--r--src/ndef.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ndef.c b/src/ndef.c
index dd99178..98f0bc8 100644
--- a/src/ndef.c
+++ b/src/ndef.c
@@ -1868,7 +1868,7 @@ fail:
return NULL;
}
-static struct near_ndef_message *near_ndef_prepare_hs_message(
+static struct near_ndef_message *near_ndef_prepare_hs_reply(
GSList *remote_mimes,
GSList *remote_cfgs)
{
@@ -2343,7 +2343,7 @@ static struct near_ndef_ho_payload *parse_ho_payload(enum record_type rec_type,
}
} else if (reply != NULL) {
/* Prepare Hs, it depends upon Hr message carrier types */
- *reply = near_ndef_prepare_hs_message(mimes, c_datas);
+ *reply = near_ndef_prepare_hs_reply(mimes, c_datas);
if (*reply == NULL) {
DBG("error in preparing in HS record");
goto fail;