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

« back to all changes in this revision

Viewing changes to lib/rb-chunk-loader.h

  • Committer: Package Import Robot
  • Author(s): Michael Biebl
  • Date: 2012-03-12 12:07:21 UTC
  • mfrom: (1.2.28)
  • Revision ID: package-import@ubuntu.com-20120312120721-ubdep6yl0sgfbr7i
Tags: 2.96-1
* New upstream release.
* Update Build-Depends:
  - Bump libgtk-3-dev to (>= 3.2.0).
  - Drop gir1.2-gtk-3.0, pulled via libgtk-3-dev.
  - Bump libglib2.0-dev (>= 2.28.0).
* Re-add magnatune plugin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  Copyright (C) 2012 Jonathan Matthew  <jonathan@d14n.org>
 
3
 *
 
4
 *  This program 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 2 of the License, or
 
7
 *  (at your option) any later version.
 
8
 *
 
9
 *  The Rhythmbox authors hereby grants permission for non-GPL compatible
 
10
 *  GStreamer plugins to be used and distributed together with GStreamer
 
11
 *  and Rhythmbox. This permission is above and beyond the permissions granted
 
12
 *  by the GPL license by which Rhythmbox is covered. If you modify this code
 
13
 *  you may extend this exception to your version of the code, but you are not
 
14
 *  obligated to do so. If you do not wish to do so, delete this exception
 
15
 *  statement from your version.
 
16
 *
 
17
 *  This program is distributed in the hope that it will be useful,
 
18
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
19
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
20
 *  GNU General Public License for more details.
 
21
 *
 
22
 *  You should have received a copy of the GNU General Public License
 
23
 *  along with this program; if not, write to the Free Software
 
24
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA.
 
25
 *
 
26
 */
 
27
 
 
28
#ifndef __RB_CHUNK_LOADER_H
 
29
#define __RB_CHUNK_LOADER_H
 
30
 
 
31
#include <gio/gio.h>
 
32
 
 
33
G_BEGIN_DECLS
 
34
 
 
35
#define RB_TYPE_CHUNK_LOADER           (rb_chunk_loader_get_type ())
 
36
#define RB_CHUNK_LOADER(o)             (G_TYPE_CHECK_INSTANCE_CAST ((o), RB_TYPE_CHUNK_LOADER, RBChunkLoader))
 
37
#define RB_CHUNK_LOADER_CLASS(k)       (G_TYPE_CHECK_CLASS_CAST((k), RB_TYPE_CHUNK_LOADER, RBChunkLoaderClass))
 
38
#define RB_IS_CHUNK_LOADER(o)          (G_TYPE_CHECK_INSTANCE_TYPE ((o), RB_TYPE_CHUNK_LOADER))
 
39
#define RB_IS_CHUNK_LOADER_CLASS(k)    (G_TYPE_CHECK_CLASS_TYPE ((k), RB_TYPE_CHUNK_LOADER))
 
40
#define RB_CHUNK_LOADER_GET_CLASS(o)   (G_TYPE_INSTANCE_GET_CLASS ((o), RB_TYPE_CHUNK_LOADER, RBChunkLoaderClass))
 
41
 
 
42
typedef struct _RBChunkLoader RBChunkLoader;
 
43
typedef struct _RBChunkLoaderClass RBChunkLoaderClass;
 
44
typedef struct _RBChunkLoaderPrivate RBChunkLoaderPrivate;
 
45
 
 
46
typedef void (*RBChunkLoaderCallback) (RBChunkLoader *loader, GString *data, goffset total, gpointer user_data);
 
47
 
 
48
struct _RBChunkLoader
 
49
{
 
50
        GObject parent;
 
51
        RBChunkLoaderPrivate *priv;
 
52
};
 
53
 
 
54
struct _RBChunkLoaderClass
 
55
{
 
56
        GObjectClass parent_class;
 
57
};
 
58
 
 
59
GType                   rb_chunk_loader_get_type        (void);
 
60
 
 
61
RBChunkLoader *         rb_chunk_loader_new             (void);
 
62
 
 
63
void                    rb_chunk_loader_set_callback    (RBChunkLoader *loader,
 
64
                                                         RBChunkLoaderCallback callback,
 
65
                                                         gpointer user_data,
 
66
                                                         GDestroyNotify destroy_data);
 
67
 
 
68
GError *                rb_chunk_loader_get_error       (RBChunkLoader *loader);
 
69
 
 
70
void                    rb_chunk_loader_start           (RBChunkLoader *loader,
 
71
                                                         const char *uri,
 
72
                                                         gssize chunk_size);
 
73
 
 
74
void                    rb_chunk_loader_cancel          (RBChunkLoader *loader);
 
75
 
 
76
G_END_DECLS
 
77
 
 
78
#endif /* __RB_CHUNK_LOADER_H */
 
79