~timo-jyrinki/ubuntu/utopic/rhythmbox/enable_grilo_rhythmbox

« back to all changes in this revision

Viewing changes to plugins/mtpdevice/rb-mtp-source.h

Tags: upstream-0.11.1
Import upstream version 0.11.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  arch-tag: Header for mtp source object
 
3
 *
 
4
 *  Copyright (C) 2006 Peter Grundström  <pete@openfestis.org>
 
5
 *
 
6
 *  This program is free software; you can redistribute it and/or modify
 
7
 *  it under the terms of the GNU General Public License as published by
 
8
 *  the Free Software Foundation; either version 2 of the License, or
 
9
 *  (at your option) any later version.
 
10
 *
 
11
 *  This program is distributed in the hope that it will be useful,
 
12
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
 *  GNU General Public License for more details.
 
15
 *
 
16
 *  You should have received a copy of the GNU General Public License
 
17
 *  along with this program; if not, write to the Free Software
 
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA.
 
19
 *
 
20
 */
 
21
 
 
22
#ifndef __RB_MTP_SOURCE_H
 
23
#define __RB_MTP_SOURCE_H
 
24
 
 
25
#include "rb-shell.h"
 
26
#include "rb-removable-media-source.h"
 
27
#include "rhythmdb.h"
 
28
#include <libmtp.h>
 
29
 
 
30
G_BEGIN_DECLS
 
31
 
 
32
#define RB_TYPE_MTP_SOURCE         (rb_mtp_source_get_type ())
 
33
#define RB_MTP_SOURCE(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), RB_TYPE_MTP_SOURCE, RBMtpSource))
 
34
#define RB_MTP_SOURCE_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), RB_TYPE_MTP_SOURCE, RBMtpSourceClass))
 
35
#define RB_IS_MTP_SOURCE(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), RB_TYPE_MTP_SOURCE))
 
36
#define RB_IS_MTP_SOURCE_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), RB_TYPE_MTP_SOURCE))
 
37
#define RB_MTP_SOURCE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), RB_TYPE_MTP_SOURCE, RBMtpSourceClass))
 
38
 
 
39
typedef struct
 
40
{
 
41
        RBRemovableMediaSource parent;
 
42
} RBMtpSource;
 
43
 
 
44
typedef struct
 
45
{
 
46
        RBRemovableMediaSourceClass parent;
 
47
} RBMtpSourceClass;
 
48
 
 
49
RBBrowserSource *       rb_mtp_source_new               (RBShell *shell, LIBMTP_mtpdevice_t *device, const char *udi);
 
50
GType                   rb_mtp_source_get_type          (void);
 
51
GType                   rb_mtp_source_register_type     (GTypeModule *module);
 
52
 
 
53
gboolean rb_mtp_source_is_udi                           (RBMtpSource *source, const char *udi);
 
54
 
 
55
G_END_DECLS
 
56
 
 
57
#endif /* __RB_MTP_SOURCE_H */