OSDN Git Service

audio/AVDTP: Remove public function that are only used locally
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 18 Nov 2013 11:50:12 +0000 (13:50 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 18 Nov 2013 12:10:48 +0000 (14:10 +0200)
profiles/audio/avdtp.c
profiles/audio/avdtp.h

index 25b7525..de31e12 100644 (file)
@@ -3183,8 +3183,8 @@ struct avdtp_service_capability *avdtp_stream_get_codec(
        return NULL;
 }
 
-gboolean avdtp_stream_has_capability(struct avdtp_stream *stream,
-                               struct avdtp_service_capability *cap)
+static gboolean avdtp_stream_has_capability(struct avdtp_stream *stream,
+                                       struct avdtp_service_capability *cap)
 {
        GSList *l;
        struct avdtp_service_capability *stream_cap;
@@ -3219,7 +3219,16 @@ gboolean avdtp_stream_has_capabilities(struct avdtp_stream *stream,
 struct avdtp_remote_sep *avdtp_stream_get_remote_sep(
                                                struct avdtp_stream *stream)
 {
-       return avdtp_get_remote_sep(stream->session, stream->rseid);
+       GSList *l;
+
+       for (l = stream->session->seps; l; l = l->next) {
+               struct avdtp_remote_sep *sep = l->data;
+
+               if (sep->seid == stream->rseid)
+                       return sep;
+       }
+
+       return NULL;
 }
 
 gboolean avdtp_stream_get_transport(struct avdtp_stream *stream, int *sock,
@@ -3268,21 +3277,6 @@ static int process_queue(struct avdtp *session)
        return send_req(session, FALSE, req);
 }
 
-struct avdtp_remote_sep *avdtp_get_remote_sep(struct avdtp *session,
-                                               uint8_t seid)
-{
-       GSList *l;
-
-       for (l = session->seps; l; l = l->next) {
-               struct avdtp_remote_sep *sep = l->data;
-
-               if (sep->seid == seid)
-                       return sep;
-       }
-
-       return NULL;
-}
-
 struct avdtp_service_capability *avdtp_get_codec(struct avdtp_remote_sep *sep)
 {
        return sep->codec;
index 30ade86..3c30d78 100644 (file)
@@ -221,9 +221,6 @@ struct avdtp *avdtp_ref(struct avdtp *session);
 struct avdtp_service_capability *avdtp_service_cap_new(uint8_t category,
                                                        void *data, int size);
 
-struct avdtp_remote_sep *avdtp_get_remote_sep(struct avdtp *session,
-                                               uint8_t seid);
-
 struct avdtp_service_capability *avdtp_get_codec(struct avdtp_remote_sep *sep);
 
 int avdtp_discover(struct avdtp *session, avdtp_discover_cb_t cb,
@@ -243,8 +240,6 @@ gboolean avdtp_stream_get_transport(struct avdtp_stream *stream, int *sock,
                                        GSList **caps);
 struct avdtp_service_capability *avdtp_stream_get_codec(
                                                struct avdtp_stream *stream);
-gboolean avdtp_stream_has_capability(struct avdtp_stream *stream,
-                               struct avdtp_service_capability *cap);
 gboolean avdtp_stream_has_capabilities(struct avdtp_stream *stream,
                                        GSList *caps);
 struct avdtp_remote_sep *avdtp_stream_get_remote_sep(