aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2012-06-18 11:38:09 -0300
committerJoão Paulo Rechi Vita <jprvita@openbossa.org>2012-06-21 18:00:19 -0300
commitd9fbf796a83f42ea35c1b005e2a3e89b11668b36 (patch)
treec274ba1d87a33311b2fb58bb399ef0e4aa16cf81
parentbd1dab59d7278f1fb6beb15604c2e1d44f756105 (diff)
downloadbluez-d9fbf796a83f42ea35c1b005e2a3e89b11668b36.tar.gz
bluez-d9fbf796a83f42ea35c1b005e2a3e89b11668b36.tar.xz
bluez-d9fbf796a83f42ea35c1b005e2a3e89b11668b36.zip
attio: Rename att_cleanup to attio_cleanup
Cosmetic change renaming attio cleanup function. attio prefix is more suitable since attio implements GIOChannel abstraction in the top of the GAttrib.
-rw-r--r--src/device.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/device.c b/src/device.c
index 5b6c3806..7ecccea2 100644
--- a/src/device.c
+++ b/src/device.c
@@ -206,7 +206,7 @@ static void browse_request_free(struct browse_req *req)
g_free(req);
}
-static void att_cleanup(struct btd_device *device)
+static void attio_cleanup(struct btd_device *device)
{
if (device->attachid) {
attrib_channel_detach(device->attrib, device->attachid);
@@ -243,7 +243,7 @@ static void browse_request_cancel(struct browse_req *req)
bt_cancel_discovery(&src, &device->bdaddr);
- att_cleanup(device);
+ attio_cleanup(device);
device->browse = NULL;
browse_request_free(req);
@@ -269,7 +269,7 @@ static void device_free(gpointer user_data)
g_slist_free_full(device->attios_offline, g_free);
g_slist_free_full(device->batteries, g_free);
- att_cleanup(device);
+ attio_cleanup(device);
if (device->tmp_records)
sdp_list_free(device->tmp_records,
@@ -1853,7 +1853,7 @@ static gboolean attrib_disconnected_cb(GIOChannel *io, GIOCondition cond,
att_connect_dispatched);
done:
- att_cleanup(device);
+ attio_cleanup(device);
return FALSE;
}
@@ -1895,7 +1895,7 @@ static void appearance_cb(guint8 status, const guint8 *pdu, guint16 plen,
done:
att_data_list_free(list);
if (device->attios == NULL && device->attios_offline == NULL)
- att_cleanup(device);
+ attio_cleanup(device);
}
static void primary_cb(GSList *services, guint8 status, gpointer user_data)
@@ -1938,7 +1938,7 @@ static void primary_cb(GSList *services, guint8 status, gpointer user_data)
gatt_read_char_by_uuid(device->attrib, gap_prim->range.start,
gap_prim->range.end, &uuid, appearance_cb, device);
} else if (device->attios == NULL && device->attios_offline == NULL)
- att_cleanup(device);
+ attio_cleanup(device);
g_slist_free(uuids);
@@ -3181,7 +3181,7 @@ gboolean btd_device_remove_attio_callback(struct btd_device *device, guint id)
device->auto_id = 0;
}
- att_cleanup(device);
+ attio_cleanup(device);
return TRUE;
}