~snaggen/rhythmbox/bpm

« back to all changes in this revision

Viewing changes to plugins/generic-player/rb-generic-player-playlist-source.h

  • Committer: James Livingston
  • Author(s): James Livingston
  • Date: 2007-11-25 07:24:57 UTC
  • Revision ID: git-v1:b15d7482ba708af8778d80e83ec24fc7eb5c503b
fix some memory leaks. patch partially by John Daiker.

2007-11-25  James Livingston  <doclivingston@gmail.com>

        * bindings/python/rb.defs:
        * metadata/rb-metadata-dbus-service.c: (main):
        * plugins/rb-plugins-engine.c: (rb_plugins_engine_load),
        (rb_plugins_engine_load_cb):
        * plugins/sample-vala/rb-sample-vala-plugin.vala:
        * plugins/visualizer/rb-visualizer-plugin.c: (get_vis_plugin_list):
        * shell/rb-shell.c: (rb_shell_finalize), (construct_widgets):
        * shell/rb-tray-icon.c: (rb_tray_icon_init):
        * tools/massif.sh:
        * widgets/rb-entry-view.c: (rb_entry_view_get_sorting_type):
        * widgets/rb-entry-view.h: fix some memory leaks. patch partially by
        John Daiker.

svn path=/trunk/; revision=5456

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  Copyright (C) 2007 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
 *  This program is distributed in the hope that it will be useful,
 
10
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
 *  GNU General Public License for more details.
 
13
 *
 
14
 *  You should have received a copy of the GNU General Public License
 
15
 *  along with this program; if not, write to the Free Software
 
16
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA.
 
17
 *
 
18
 */
 
19
 
 
20
#ifndef __RB_GENERIC_PLAYER_PLAYLIST_SOURCE_H
 
21
#define __RB_GENERIC_PLAYER_PLAYLIST_SOURCE_H
 
22
 
 
23
#include "rb-static-playlist-source.h"
 
24
#include "rb-generic-player-source.h"
 
25
 
 
26
G_BEGIN_DECLS
 
27
 
 
28
#define RB_TYPE_GENERIC_PLAYER_PLAYLIST_SOURCE         (rb_generic_player_playlist_source_get_type ())
 
29
#define RB_GENERIC_PLAYER_PLAYLIST_SOURCE(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), RB_TYPE_GENERIC_PLAYER_PLAYLIST_SOURCE, RBGenericPlayerPlaylistSource))
 
30
#define RB_GENERIC_PLAYER_PLAYLIST_SOURCE_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), RB_TYPE_GENERIC_PLAYER_PLAYLIST_SOURCE, RBGenericPlayerPlaylistSourceClass))
 
31
#define RB_IS_GENERIC_PLAYER_PLAYLIST_SOURCE(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), RB_TYPE_GENERIC_PLAYER_PLAYLIST_SOURCE))
 
32
#define RB_IS_GENERIC_PLAYER_PLAYLIST_SOURCE_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), RB_TYPE_GENERIC_PLAYER_PLAYLIST_SOURCE))
 
33
#define RB_GENERIC_PLAYER_PLAYLIST_SOURCE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), RB_TYPE_GENERIC_PLAYER_PLAYLIST_SOURCE, RBGenericPlayerPlaylistSourceClass))
 
34
 
 
35
typedef struct
 
36
{
 
37
        RBStaticPlaylistSource parent;
 
38
} RBGenericPlayerPlaylistSource;
 
39
 
 
40
typedef struct
 
41
{
 
42
        RBStaticPlaylistSourceClass parent;
 
43
} RBGenericPlayerPlaylistSourceClass;
 
44
 
 
45
GType           rb_generic_player_playlist_source_get_type      (void);
 
46
GType           rb_generic_player_playlist_source_register_type (GTypeModule *module);
 
47
 
 
48
RBSource *      rb_generic_player_playlist_source_new (RBShell *shell,
 
49
                                                       RBGenericPlayerSource *source,
 
50
                                                       const char *playlist_file,
 
51
                                                       RhythmDBEntryType entry_type);
 
52
void            rb_generic_player_playlist_delete_from_player (RBGenericPlayerPlaylistSource *source);
 
53
 
 
54
G_END_DECLS
 
55
 
 
56
#endif  /* __RB_GENERIC_PLAYER_PLAYLIST_SOURCE_H */