rb-lastfm-source.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /*
  2. * arch-tag: Header for last.fm station source
  3. *
  4. * Copyright (C) 2006 Matt Novenstern <fisxoj@gmail.com>
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * The Rhythmbox authors hereby grant permission for non-GPL compatible
  12. * GStreamer plugins to be used and distributed together with GStreamer
  13. * and Rhythmbox. This permission is above and beyond the permissions granted
  14. * by the GPL license by which Rhythmbox is covered. If you modify this code
  15. * you may extend this exception to your version of the code, but you are not
  16. * obligated to do so. If you do not wish to do so, delete this exception
  17. * statement from your version.
  18. *
  19. * This program is distributed in the hope that it will be useful,
  20. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  21. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22. * GNU General Public License for more details.
  23. *
  24. * You should have received a copy of the GNU General Public License
  25. * along with this program; if not, write to the Free Software
  26. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  27. *
  28. */
  29. #ifndef __RB_LASTFM_SOURCE_H
  30. #define __RB_LASTFM_SOURCE_H
  31. #include "rb-shell.h"
  32. #include "rb-streaming-source.h"
  33. G_BEGIN_DECLS
  34. #define RB_TYPE_LASTFM_SOURCE (rb_lastfm_source_get_type ())
  35. #define RB_LASTFM_SOURCE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), RB_TYPE_LASTFM_SOURCE, RBLastfmSource))
  36. #define RB_LASTFM_SOURCE_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), RB_TYPE_LASTFM_SOURCE, RBLastfmSourceClass))
  37. #define RB_IS_LASTFM_SOURCE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), RB_TYPE_LASTFM_SOURCE))
  38. #define RB_IS_LASTFM_SOURCE_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), RB_TYPE_LASTFM_SOURCE))
  39. #define RB_LASTFM_SOURCE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), RB_TYPE_LASTFM_SOURCE, RBLastfmSourceClass))
  40. typedef struct RBLastfmSourcePrivate RBLastfmSourcePrivate;
  41. typedef struct
  42. {
  43. RBStreamingSource parent;
  44. RBLastfmSourcePrivate *priv;
  45. } RBLastfmSource;
  46. typedef struct
  47. {
  48. RBStreamingSourceClass parent;
  49. } RBLastfmSourceClass;
  50. GType rb_lastfm_source_get_type (void);
  51. GType rb_lastfm_source_register_type (GTypeModule *module);
  52. RBSource * rb_lastfm_source_new (RBPlugin *plugin,
  53. RBShell *shell);
  54. G_END_DECLS
  55. #endif /* __RB_LASTFM_SOURCE_H */