~ubuntu-branches/ubuntu/saucy/clementine/saucy

« back to all changes in this revision

Viewing changes to gst/afcsrc/gstafcsrc.h

  • Committer: Package Import Robot
  • Author(s): Thomas PIERSON
  • Date: 2012-01-01 20:43:39 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120101204339-lsb6nndwhfy05sde
Tags: 1.0.1+dfsg-1
New upstream release. (Closes: #653926, #651611, #657391)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* This file is part of Clementine.
 
2
   Copyright 2010, David Sansome <me@davidsansome.com>
 
3
 
 
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.
 
8
 
 
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.
 
13
 
 
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/>.
 
16
*/
 
17
 
 
18
#ifndef __GST_AFCSRC_H__
 
19
#define __GST_AFCSRC_H__
 
20
 
 
21
#include <gst/gst.h>
 
22
#include <gst/base/gstbasesrc.h>
 
23
 
 
24
#include <libimobiledevice/afc.h>
 
25
#include <libimobiledevice/libimobiledevice.h>
 
26
#include <libimobiledevice/lockdown.h>
 
27
 
 
28
#ifdef __cplusplus
 
29
extern "C" {
 
30
#endif
 
31
  void afcsrc_register_static();
 
32
#ifdef __cplusplus
 
33
}
 
34
#endif
 
35
 
 
36
G_BEGIN_DECLS
 
37
 
 
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))
 
48
 
 
49
typedef struct _GstAfcSrc      GstAfcSrc;
 
50
typedef struct _GstAfcSrcClass GstAfcSrcClass;
 
51
 
 
52
struct _GstAfcSrc {
 
53
  GstBaseSrc element;
 
54
 
 
55
  char* location_;
 
56
  char* uuid_;
 
57
  char* path_;
 
58
 
 
59
  gboolean connected_;
 
60
  idevice_t device_;
 
61
  afc_client_t afc_;
 
62
 
 
63
  uint16_t afc_port_;
 
64
 
 
65
  uint64_t file_handle_;
 
66
 
 
67
  gboolean buffer_is_valid_;
 
68
  guint64 buffer_offset_;
 
69
  guint buffer_length_;
 
70
  char* buffer_;
 
71
};
 
72
 
 
73
struct _GstAfcSrcClass {
 
74
  GstBaseSrcClass parent_class;
 
75
};
 
76
 
 
77
GType gst_afc_src_get_type (void);
 
78
 
 
79
G_END_DECLS
 
80
 
 
81
#endif