Updated Finnish translation
[rhythmbox.git] / metadata / rb-metadata-dbus.h
blob43e473141895bf45f33830bac65a35829fe91fbb
1 /*
2 * Copyright (C) 2006 Jonathan Matthew <jonathan@kaolin.hn.org>
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.
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.
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.
21 * Common definitions and functions for out-of-process metadata reader.
24 #ifndef __RB_METADATA_DBUS_H
25 #define __RB_METADATA_DBUS_H
27 #include <dbus/dbus.h>
29 G_BEGIN_DECLS
31 #define RB_METADATA_DBUS_NAME "org.gnome.rhythmbox.Metadata"
32 #define RB_METADATA_DBUS_OBJECT_PATH "/org/gnome/rhythmbox/MetadataService"
33 #define RB_METADATA_DBUS_INTERFACE "org.gnome.rhythmbox.Metadata"
35 /* Timeout in milliseconds. If a metadata operation takes longer than this,
36 * the metadata process will be killed and the operation will fail.
38 #define RB_METADATA_DBUS_TIMEOUT (15000)
40 gboolean rb_metadata_dbus_get_boolean (DBusMessageIter *iter,
41 gboolean *value);
42 gboolean rb_metadata_dbus_get_uint32 (DBusMessageIter *iter,
43 guint32 *value);
44 gboolean rb_metadata_dbus_get_string (DBusMessageIter *iter,
45 gchar **value);
47 gboolean rb_metadata_dbus_add_to_message (RBMetaData *md,
48 DBusMessageIter *iter);
49 gboolean rb_metadata_dbus_read_from_message (RBMetaData *md,
50 GHashTable *metadata,
51 DBusMessageIter *iter);
53 G_END_DECLS
55 #endif /* __RB_METADATA_DBUS_H */