OSDN Git Service

android/avrcp: Add avrcp_connect_browsing()
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Mon, 31 Mar 2014 12:24:55 +0000 (15:24 +0300)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 2 Apr 2014 11:25:40 +0000 (14:25 +0300)
Add support for browsing channel

android/avrcp-lib.c
android/avrcp-lib.h

index c218fd7..98453b5 100644 (file)
@@ -291,6 +291,12 @@ struct avrcp *avrcp_new(int fd, size_t imtu, size_t omtu, uint16_t version)
        return session;
 }
 
+int avrcp_connect_browsing(struct avrcp *session, int fd, size_t imtu,
+                                                               size_t omtu)
+{
+       return avctp_connect_browsing(session->conn, fd, imtu, omtu);
+}
+
 void avrcp_set_destroy_cb(struct avrcp *session, avrcp_destroy_cb_t cb,
                                                        void *user_data)
 {
index 5c5790a..aa8b74a 100644 (file)
@@ -209,6 +209,8 @@ struct avrcp *avrcp_new(int fd, size_t imtu, size_t omtu, uint16_t version);
 void avrcp_shutdown(struct avrcp *session);
 void avrcp_set_destroy_cb(struct avrcp *session, avrcp_destroy_cb_t cb,
                                                        void *user_data);
+int avrcp_connect_browsing(struct avrcp *session, int fd, size_t imtu,
+                                                               size_t omtu);
 
 void avrcp_register_player(struct avrcp *session,
                                const struct avrcp_control_ind *ind,