1 /* 2 * Copyright (C) 2015 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 grant 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_ANDROID_SOURCE_H 29 #define __RB_ANDROID_SOURCE_H 30 31 #include "rb-shell.h" 32 #include "rb-media-player-source.h" 33 #include "rhythmdb.h" 34 #include "rhythmdb-import-job.h" 35 36 G_BEGIN_DECLS 37 38 #define RB_TYPE_ANDROID_SOURCE (rb_android_source_get_type ()) 39 #define RB_ANDROID_SOURCE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), RB_TYPE_ANDROID_SOURCE, RBAndroidSource)) 40 #define RB_ANDROID_SOURCE_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), RB_TYPE_ANDROID_SOURCE, RBAndroidSourceClass)) 41 #define RB_IS_ANDROID_SOURCE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), RB_TYPE_ANDROID_SOURCE)) 42 #define RB_IS_ANDROID_SOURCE_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), RB_TYPE_ANDROID_SOURCE)) 43 #define RB_ANDROID_SOURCE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), RB_TYPE_ANDROID_SOURCE, RBAndroidSourceClass)) 44 45 typedef struct 46 { 47 RBMediaPlayerSource parent; 48 } RBAndroidSource; 49 50 typedef struct 51 { 52 RBMediaPlayerSourceClass parent; 53 } RBAndroidSourceClass; 54 55 GType rb_android_source_get_type (void); 56 57 void _rb_android_source_register_type (GTypeModule *module); 58 59 G_END_DECLS 60 61 #endif /* __RB_ANDROID_SOURCE_H */ 62