~aw/rhythmbox/swedishradio

« back to all changes in this revision

Viewing changes to sources/rb-source.h

  • Committer: Jonathan Matthew
  • Date: 2010-08-14 13:21:37 UTC
  • Revision ID: git-v1:ea1fb03f57f705ac1d6cd199a3ca72bb3818e1dc
source: add a completion callback to rb_source_add_uri

Currently the only interesting case here is the library, since
its implementation of rb_source_add_uri is asynchronous.

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
 
77
77
typedef gboolean (*RBSourceFeatureFunc) (RBSource *source);
78
78
typedef const char * (*RBSourceStringFunc) (RBSource *source);
 
79
typedef void (*RBSourceAddCallback) (RBSource *source, const char *uri, gpointer data);
79
80
 
80
81
struct _RBSource
81
82
{
126
127
 
127
128
        gboolean        (*impl_try_playlist)    (RBSource *source);
128
129
        guint           (*impl_want_uri)        (RBSource *source, const char *uri);
129
 
        gboolean        (*impl_add_uri)         (RBSource *source, const char *uri, const char *title, const char *genre);
 
130
        gboolean        (*impl_add_uri)         (RBSource *source,
 
131
                                                 const char *uri,
 
132
                                                 const char *title,
 
133
                                                 const char *genre,
 
134
                                                 RBSourceAddCallback callback,
 
135
                                                 gpointer data,
 
136
                                                 GDestroyNotify destroy_data);
130
137
        gboolean        (*impl_uri_is_source)   (RBSource *source, const char *uri);
131
138
 
132
139
        gboolean        (*impl_can_pause)       (RBSource *source);
196
203
gboolean        rb_source_try_playlist          (RBSource *source);
197
204
guint           rb_source_want_uri              (RBSource *source, const char *uri);
198
205
gboolean        rb_source_uri_is_source         (RBSource *source, const char *uri);
199
 
gboolean        rb_source_add_uri               (RBSource *source, const char *uri, const char *title, const char *genre);
 
206
gboolean        rb_source_add_uri               (RBSource *source,
 
207
                                                 const char *uri,
 
208
                                                 const char *title,
 
209
                                                 const char *genre,
 
210
                                                 RBSourceAddCallback callback,
 
211
                                                 gpointer data,
 
212
                                                 GDestroyNotify destroy_data);
200
213
 
201
214
gboolean        rb_source_can_pause             (RBSource *source);
202
215
RBSourceEOFType rb_source_handle_eos            (RBSource *source);