1 /* 2 * Copyright (C) 2002 Jorn Baayen <jorn@nl.linux.org> 3 * Copyright (C) 2003,2004 Colin Walters <walters@redhat.com> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 9 * 10 * The Rhythmbox authors hereby grant permission for non-GPL compatible 11 * GStreamer plugins to be used and distributed together with GStreamer 12 * and Rhythmbox. This permission is above and beyond the permissions granted 13 * by the GPL license by which Rhythmbox is covered. If you modify this code 14 * you may extend this exception to your version of the code, but you are not 15 * obligated to do so. If you do not wish to do so, delete this exception 16 * statement from your version. 17 * 18 * This program is distributed in the hope that it will be useful, 19 * but WITHOUT ANY WARRANTY; without even the implied warranty of 20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21 * GNU General Public License for more details. 22 * 23 * You should have received a copy of the GNU General Public License 24 * along with this program; if not, write to the Free Software 25 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 26 * 27 */ 28 29 /* 30 * Header for play queue source class 31 */ 32 33 #ifndef __RB_PLAY_QUEUE_SOURCE_H 34 #define __RB_PLAY_QUEUE_SOURCE_H 35 36 #include <sources/rb-static-playlist-source.h> 37 38 G_BEGIN_DECLS 39 40 #define RB_TYPE_PLAY_QUEUE_SOURCE (rb_play_queue_source_get_type ()) 41 #define RB_PLAY_QUEUE_SOURCE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), RB_TYPE_PLAY_QUEUE_SOURCE, RBPlayQueueSource)) 42 #define RB_PLAY_QUEUE_SOURCE_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), RB_TYPE_PLAY_QUEUE_SOURCE, RBPlayQueueSourceClass)) 43 #define RB_IS_PLAY_QUEUE_SOURCE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), RB_TYPE_PLAY_QUEUE_SOURCE)) 44 #define RB_IS_PLAY_QUEUE_SOURCE_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), RB_TYPE_PLAY_QUEUE_SOURCE)) 45 #define RB_PLAY_QUEUE_SOURCE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), RB_TYPE_PLAY_QUEUE_SOURCE, RBPlayQueueSourceClass)) 46 47 typedef struct _RBPlayQueueSource RBPlayQueueSource; 48 typedef struct _RBPlayQueueSourceClass RBPlayQueueSourceClass; 49 50 struct _RBPlayQueueSource 51 { 52 RBStaticPlaylistSource parent; 53 }; 54 55 struct _RBPlayQueueSourceClass 56 { 57 RBStaticPlaylistSourceClass parent; 58 }; 59 60 GType rb_play_queue_source_get_type (void); 61 62 RBSource * rb_play_queue_source_new (RBShell *shell); 63 64 /* XXX die */ 65 void rb_play_queue_source_clear_queue (RBPlayQueueSource *source); 66 67 G_END_DECLS 68 69 #endif /* __RB_PLAY_QUEUE_SOURCE_H */ 70