3 * BlueZ - Bluetooth protocol stack for Linux
5 * Copyright (C) 2012 Collabora Ltd.
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_SRC_H
25 #define __GST_AVDTP_SRC_H
28 #include <gst/base/gstbasesrc.h>
29 #include "gstavdtputil.h"
30 #include "gstavrcputil.h"
33 #define GST_TYPE_AVDTP_SRC \
34 (gst_avdtp_src_get_type())
35 #define GST_AVDTP_SRC(obj) \
36 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_AVDTP_SRC, GstAvdtpSrc))
37 #define GST_AVDTP_SRC_CLASS(klass) \
38 (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_AVDTP_SRC, GstAvdtpSrc))
39 #define GST_IS_AVDTP_SRC(obj) \
40 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_AVDTP_SRC))
41 #define GST_IS_AVDTP_SRC_CLASS(obj) \
42 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_AVDTP_SRC))
43 typedef struct _GstAvdtpSrc GstAvdtpSrc;
44 typedef struct _GstAvdtpSrcClass GstAvdtpSrcClass;
46 struct _GstAvdtpSrcClass
48 GstBaseSrcClass parentclass;
55 GstAvdtpConnection conn;
58 GstAvrcpConnection *avrcp;
62 volatile gint unlocked;
64 GstClockTime duration;
66 guint transport_volume;
69 GType gst_avdtp_src_get_type (void);
71 gboolean gst_avdtp_src_plugin_init (GstPlugin * plugin);