~ubuntu-branches/ubuntu/utopic/rhythmbox/utopic-proposed

« back to all changes in this revision

Viewing changes to sources/rb-daap-source.h

Tags: upstream-0.9.2
ImportĀ upstreamĀ versionĀ 0.9.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  Header for DAAP (iTunes Music Sharing) source object
 
3
 *
 
4
 *  Copyright (C) 2005 Charles Schmidt <cschmidt2@emich.edu>
 
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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
19
 *
 
20
 */
 
21
 
 
22
#ifndef __RB_DAAP_SOURCE_H
 
23
#define __RB_DAAP_SOURCE_H
 
24
 
 
25
#include "rb-shell.h"
 
26
#include "rb-library-source.h"
 
27
#include "rhythmdb.h"
 
28
 
 
29
G_BEGIN_DECLS
 
30
 
 
31
#define RB_TYPE_DAAP_SOURCE         (rb_daap_source_get_type ())
 
32
#define RB_DAAP_SOURCE(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), RB_TYPE_DAAP_SOURCE, RBDAAPSource))
 
33
#define RB_DAAP_SOURCE_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), RB_TYPE_DAAP_SOURCE, RBDAAPSourceClass))
 
34
#define RB_IS_DAAP_SOURCE(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), RB_TYPE_DAAP_SOURCE))
 
35
#define RB_IS_DAAP_SOURCE_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), RB_TYPE_DAAP_SOURCE))
 
36
#define RB_DAAP_SOURCE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), RB_TYPE_DAAP_SOURCE, RBDAAPSourceClass))
 
37
 
 
38
typedef struct RBDAAPSourcePrivate RBDAAPSourcePrivate;
 
39
 
 
40
typedef struct {
 
41
        RBLibrarySource parent;
 
42
 
 
43
        RBDAAPSourcePrivate *priv;
 
44
} RBDAAPSource;
 
45
 
 
46
typedef struct {
 
47
        RBLibrarySourceClass parent;
 
48
} RBDAAPSourceClass;
 
49
 
 
50
RBSource * 
 
51
rb_daap_sources_init (RBShell *shell);
 
52
 
 
53
void 
 
54
rb_daap_sources_shutdown (RBShell *shell);
 
55
 
 
56
GType 
 
57
rb_daap_source_get_type (void);
 
58
 
 
59
RBDAAPSource *  
 
60
rb_daap_source_find_for_uri (const gchar *uri);
 
61
 
 
62
gchar *
 
63
rb_daap_source_get_headers (RBDAAPSource *source, 
 
64
                            const gchar *uri, 
 
65
                            glong time,
 
66
                            gint64 *bytes);
 
67
 
 
68
G_END_DECLS
 
69
 
 
70
#endif /* __RB_DAAP_SOURCE_H */