Skip to content
Browse files

scroble: add scrobble_cb()

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
  • Loading branch information...
1 parent 30fe90f commit 622d9b45c66be8d668b2430c301ca6103734190f @felipec committed May 30, 2010
Showing with 4 additions and 0 deletions.
  1. +3 −0 scrobble.c
  2. +1 −0 scrobble.h
View
3 scrobble.c
@@ -459,6 +459,9 @@ drop_submitted(sr_session_t *s)
break;
}
g_mutex_unlock(priv->queue_mutex);
+
+ if (s->scrobble_cb)
+ s->scrobble_cb(s);
}
static inline void
View
1 scrobble.h
@@ -30,6 +30,7 @@ struct sr_session {
void *priv;
void *user_data;
void (*error_cb) (sr_session_t *s, int fatal, const char *msg);
+ void (*scrobble_cb) (sr_session_t *s);
};
sr_session_t *sr_session_new(const char *url,

0 comments on commit 622d9b4

Please sign in to comment.
Something went wrong with that request. Please try again.