1 /*
2  *  Copyright (C) 2006 Jonathan Matthew <jonathan@kaolin.hn.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 /*
29  * Common definitions and functions for out-of-process metadata reader.
30  */
31 
32 #ifndef __RB_METADATA_DBUS_H
33 #define __RB_METADATA_DBUS_H
34 
35 G_BEGIN_DECLS
36 
37 #define RB_METADATA_DBUS_NAME		"org.gnome.Rhythmbox3.Metadata"
38 #define RB_METADATA_DBUS_OBJECT_PATH	"/org/gnome/Rhythmbox3/MetadataService"
39 #define RB_METADATA_DBUS_INTERFACE	"org.gnome.Rhythmbox3.Metadata"
40 
41 /* Timeouts in milliseconds.  If a metadata operation takes longer than this,
42  * the metadata process will be killed and the operation will fail.  We use a
43  * longer timeout for save operations because they involve reading and writing
44  * the entire file being modified, which can take some time on slow devices.
45  */
46 #define RB_METADATA_DBUS_TIMEOUT	(15000)
47 #define RB_METADATA_SAVE_DBUS_TIMEOUT	(120000)
48 
49 extern const char *rb_metadata_iface_xml;
50 
51 GVariantBuilder *rb_metadata_dbus_get_variant_builder (RBMetaData *md);
52 
53 G_END_DECLS
54 
55 #endif /* __RB_METADATA_DBUS_H */
56