summaryrefslogtreecommitdiff
path: root/daemon/gvfsdaemonutils.h
blob: 16b27bd9f9db47e4c167bc060279ee3e5c9989bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef __G_VFS_DAEMON_UTILS_H__
#define __G_VFS_DAEMON_UTILS_H__

#include <glib-object.h>
#include <dbus/dbus.h>

G_BEGIN_DECLS

DBusMessage *dbus_message_new_error_from_gerror (DBusMessage     *message,
						 GError          *error);
void         dbus_connection_add_fd_send_fd     (DBusConnection  *connection,
						 int              extra_fd);
gboolean     dbus_connection_send_fd            (DBusConnection  *connection,
						 int              fd,
						 int             *fd_id,
						 GError         **error);
char *       g_error_to_daemon_reply            (GError          *error,
						 guint32          seq_nr,
						 gsize           *len_out);
char *       _g_dbus_bus_name_from_mountpoint   (const char      *mountpoint);

G_END_DECLS

#endif /* __G_VFS_DAEMON_UTILS_H__ */