RSS

(root)/calliope : /src/base/musicsource-private.h (revision 451)

Line Revision Contents
1 451 /*  Calliope Music Player
2  *  Copyright 2005-09 Sam Thursfield <ssssam gmail.com>
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 3 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, see <http://www.gnu.org/licenses/>.
16  */
17
18 #ifndef _MUSIC_SOURCE_PRIVATE_H
19 #define _MUSIC_SOURCE_PRIVATE_H
20
21 // Methods
22 //
23
24 int _music_source_find_entry (MusicSource *self, Entry *entry, Entry *caller);
25
26 void _music_source_touch_entry (MusicSource *self, Entry *entry, gboolean delete,
27                                 gboolean will_be_unreffed);
28
29 // Functions
30 //
31 Entry *_music_source_add_entry_recursive      (MusicSource *self, Entry *entry,
32                                                gboolean try_to_merge, Entry *caller);
33 void   _music_source_checkout_entry_recursive (MusicSource *self, Entry *entry);
34 Entry *_music_source_checkin_entry_recursive  (MusicSource *self, Entry *entry, GSList **p_jetsam,
35                                                Entry *caller);
36
37 void      _music_source_emit         (MusicSource *self, MusicSourceSignal signal_id, GQuark detail,
38                                      ...);
39 void      _music_source_notify       (MusicSource *self, Entry *old_entry, Entry *current_entry);
40 void      _music_source_queue_notify (MusicSource *self, Entry *old_entry, Entry *entry);
41
42 gboolean  _music_source_inside_notify             (MusicSource *self);
43 gboolean  _music_source_emit_queued_notifications (MusicSource *self, Entry *caller);
44
45 gboolean  _music_source_entry_is_checked_out     (MusicSource *self, EntryType type, int id);
46 GSList   *_music_source_list_checked_out_entries (MusicSource *self);
47 void      _music_source_unref_checkout_copies    (MusicSource *self, EntryType type, int id);
48
49 int _music_source_count_checkout_duplicate_references (MusicSource *self, Entry *entry);
50
51 #define _CHECKOUT_STORE_OWNER_ID "musicsource checkout entry duplicate"
52
53 void _music_source_set_name (MusicSource *self, const char *name, gboolean notify);
54
55 void _music_source_dump (MusicSource *self, gboolean detailed);
56
57 #endif

Loggerhead is a web-based interface for Bazaar branches