3 * BlueZ - Bluetooth protocol stack for Linux
5 * Copyright (C) 2004-2010 Marcel Holtmann <marcel@holtmann.org>
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
24 #ifndef __GST_AVDTP_SINK_H
25 #define __GST_AVDTP_SINK_H
28 #include <gst/base/gstbasesink.h>
32 #define GST_TYPE_AVDTP_SINK \
33 (gst_avdtp_sink_get_type())
34 #define GST_AVDTP_SINK(obj) \
35 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_AVDTP_SINK,\
37 #define GST_AVDTP_SINK_CLASS(klass) \
38 (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_AVDTP_SINK,\
40 #define GST_IS_AVDTP_SINK(obj) \
41 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_AVDTP_SINK))
42 #define GST_IS_AVDTP_SINK_CLASS(obj) \
43 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_AVDTP_SINK))
45 typedef struct _GstAvdtpSink GstAvdtpSink;
46 typedef struct _GstAvdtpSinkClass GstAvdtpSinkClass;
48 struct bluetooth_data;
50 struct _GstAvdtpSink {
57 struct bluetooth_data *data;
61 /* mp3 stream data (outside caps data)*/
65 /* stream connection data */
75 struct _GstAvdtpSinkClass {
76 GstBaseSinkClass parent_class;
79 GType gst_avdtp_sink_get_type(void);
81 GstCaps *gst_avdtp_sink_get_device_caps(GstAvdtpSink *sink);
82 gboolean gst_avdtp_sink_set_device_caps(GstAvdtpSink *sink,
85 guint gst_avdtp_sink_get_link_mtu(GstAvdtpSink *sink);
87 void gst_avdtp_sink_set_device(GstAvdtpSink *sink,
90 void gst_avdtp_sink_set_transport(GstAvdtpSink *sink,
91 const gchar *transport);
93 gchar *gst_avdtp_sink_get_device(GstAvdtpSink *sink);
95 gchar *gst_avdtp_sink_get_transport(GstAvdtpSink *sink);
97 gboolean gst_avdtp_sink_plugin_init(GstPlugin *plugin);
99 void gst_avdtp_sink_set_crc(GstAvdtpSink *self, gboolean crc);
101 void gst_avdtp_sink_set_channel_mode(GstAvdtpSink *self,
107 #endif /* __GST_AVDTP_SINK_H */