summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2013-06-19 15:32:31 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2013-06-19 15:34:35 +0200
commit3088964bfa484ea4ba0b02d05b580e3f6b26264f (patch)
treeaa7673e50f7e67377a79ad9fc9259e52c131d217
parent7f75c023726f6e517cb815fb2318e5726c549acc (diff)
downloadneard-3088964bfa484ea4ba0b02d05b580e3f6b26264f.tar.gz
neard-3088964bfa484ea4ba0b02d05b580e3f6b26264f.tar.bz2
neard-3088964bfa484ea4ba0b02d05b580e3f6b26264f.zip
ndef: Rename build_ho_record
build_ho_record is used for initiating negotiated handover, so it will only send handover requests. As such, rename build_ho_record to build_hr_record.
-rw-r--r--src/ndef.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ndef.c b/src/ndef.c
index 0c5c46a..dd99178 100644
--- a/src/ndef.c
+++ b/src/ndef.c
@@ -3054,18 +3054,18 @@ static struct near_ndef_message *build_sp_record(DBusMessage *msg)
(uint8_t *)(uri + id_len));
}
-static struct near_ndef_message *build_ho_record(DBusMessage *msg)
+static struct near_ndef_message *build_hr_record(DBusMessage *msg)
{
- struct near_ndef_message *ho;
+ struct near_ndef_message *hr;
GSList *carriers;
DBG("");
carriers = get_carrier_field(msg);
- ho = near_ndef_prepare_hr_message(carriers);
+ hr = near_ndef_prepare_hr_message(carriers);
g_slist_free_full(carriers, g_free);
- return ho;
+ return hr;
}
static int fill_wifi_wsc_data(uint8_t *tlv, uint16_t id,
@@ -3303,7 +3303,7 @@ struct near_ndef_message *__ndef_build_from_message(DBusMessage *msg)
ndef = build_sp_record(msg);
break;
} else if (g_strcmp0(value, "Handover") == 0) {
- ndef = build_ho_record(msg);
+ ndef = build_hr_record(msg);
break;
} else if (g_strcmp0(value, "MIME") == 0) {
ndef = build_mime_record(msg);