![]() |
![]() |
![]() |
Rhythmbox Development Reference Manual | ![]() |
---|---|---|---|---|
void (*RBAsyncQueueWatchFunc) (gpointer item, gpointer data); guint rb_async_queue_watch_new (GAsyncQueue *queue, gint priority, RBAsyncQueueWatchFunc callback, gpointer user_data, GDestroyNotify notify, GMainContext *context);
void (*RBAsyncQueueWatchFunc) (gpointer item, gpointer data);
Callback to call when an item is found in the queue.
|
the item found in the queue |
|
user data specified when creating the watch |
guint rb_async_queue_watch_new (GAsyncQueue *queue, gint priority, RBAsyncQueueWatchFunc callback, gpointer user_data, GDestroyNotify notify, GMainContext *context);
Creates a new GSource that triggers when the GAsyncQueue is non-empty. This is used in rhythmbox to process queues within RhythmDB in the main thread without polling.
|
the GAsyncQueue to watch |
|
priority value for the GSource |
|
callback to invoke when the queue is non-empty |
|
user data to pass to the callback |
|
function to call to clean up the user data for the callback |
|
the GMainContext to attach the source to |
Returns : |
the ID of the new GSource |