1
/* This file is part of Clementine.
2
Copyright 2010, David Sansome <me@davidsansome.com>
4
Clementine is free software: you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
6
the Free Software Foundation, either version 3 of the License, or
7
(at your option) any later version.
9
Clementine is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
GNU General Public License for more details.
14
You should have received a copy of the GNU General Public License
15
along with Clementine. If not, see <http://www.gnu.org/licenses/>.
18
#ifndef __GST_AFCSRC_H__
19
#define __GST_AFCSRC_H__
22
#include <gst/base/gstbasesrc.h>
24
#include <libimobiledevice/afc.h>
25
#include <libimobiledevice/libimobiledevice.h>
26
#include <libimobiledevice/lockdown.h>
31
void afcsrc_register_static();
38
#define GST_TYPE_AFCSRC \
39
(gst_afc_src_get_type())
40
#define GST_AFCSRC(obj) \
41
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_AFCSRC,GstAfcSrc))
42
#define GST_AFCSRC_CLASS(klass) \
43
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_AFCSRC,GstAfcSrcClass))
44
#define GST_IS_AFCSRC(obj) \
45
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_AFCSRC))
46
#define GST_IS_AFCSRC_CLASS(klass) \
47
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_AFCSRC))
49
typedef struct _GstAfcSrc GstAfcSrc;
50
typedef struct _GstAfcSrcClass GstAfcSrcClass;
65
uint64_t file_handle_;
67
gboolean buffer_is_valid_;
68
guint64 buffer_offset_;
73
struct _GstAfcSrcClass {
74
GstBaseSrcClass parent_class;
77
GType gst_afc_src_get_type (void);