From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH BlueZ 1/3] android/avrcp-lib: Rename AVCTP session to conn
Date: Thu, 20 Feb 2014 16:40:53 +0200 [thread overview]
Message-ID: <1392907255-29758-1-git-send-email-luiz.dentz@gmail.com> (raw)
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
---
android/avrcp-lib.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/android/avrcp-lib.c b/android/avrcp-lib.c
index ef48fa7..8450480 100644
--- a/android/avrcp-lib.c
+++ b/android/avrcp-lib.c
@@ -36,13 +36,13 @@
#include "avrcp-lib.h"
struct avrcp {
- struct avctp *session;
+ struct avctp *conn;
};
void avrcp_shutdown(struct avrcp *session)
{
- if (session->session)
- avctp_shutdown(session->session);
+ if (session->conn)
+ avctp_shutdown(session->conn);
g_free(session);
}
@@ -53,8 +53,8 @@ struct avrcp *avrcp_new(int fd, size_t imtu, size_t omtu, uint16_t version)
session = g_new0(struct avrcp, 1);
- session->session = avctp_new(fd, imtu, omtu, version);
- if (!session->session) {
+ session->conn = avctp_new(fd, imtu, omtu, version);
+ if (!session->conn) {
g_free(session);
return NULL;
}
@@ -65,11 +65,11 @@ struct avrcp *avrcp_new(int fd, size_t imtu, size_t omtu, uint16_t version)
void avrcp_set_destroy_cb(struct avrcp *session, avrcp_destroy_cb_t cb,
void *user_data)
{
- avctp_set_destroy_cb(session->session, cb, user_data);
+ avctp_set_destroy_cb(session->conn, cb, user_data);
}
int avrcp_init_uinput(struct avrcp *session, const char *name,
const char *address)
{
- return avctp_init_uinput(session->session, name, address);
+ return avctp_init_uinput(session->conn, name, address);
}
--
1.8.5.3
next reply other threads:[~2014-02-20 14:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-20 14:40 Luiz Augusto von Dentz [this message]
2014-02-20 14:40 ` [PATCH BlueZ 2/3] android/avrcp-lib: Add avrcp_set_control_handlers Luiz Augusto von Dentz
2014-02-20 14:40 ` [PATCH BlueZ 3/3] android/avrcp-lib: Add avrcp_set_passthrough_handlers Luiz Augusto von Dentz
2014-02-24 12:38 ` [PATCH BlueZ 1/3] android/avrcp-lib: Rename AVCTP session to conn Luiz Augusto von Dentz
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=1392907255-29758-1-git-send-email-luiz.dentz@gmail.com \
--to=luiz.dentz@gmail.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