summaryrefslogtreecommitdiff
path: root/daemon/gvfsdaemon.h
blob: f43d42245bd430da3bb7de5866f286966f49678a (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef __G_VFS_DAEMON_H__
#define __G_VFS_DAEMON_H__

#include <glib-object.h>
#include <gvfsreadrequest.h>

G_BEGIN_DECLS

#define G_TYPE_VFS_DAEMON         (g_vfs_daemon_get_type ())
#define G_VFS_DAEMON(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_VFS_DAEMON, GVfsDaemon))
#define G_VFS_DAEMON_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_VFS_DAEMON, GVfsDaemonClass))
#define G_IS_VFS_DAEMON(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_VFS_DAEMON))
#define G_IS_VFS_DAEMON_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_VFS_DAEMON))
#define G_VFS_DAEMON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_VFS_DAEMON, GVfsDaemonClass))

typedef struct _GVfsDaemon        GVfsDaemon;
typedef struct _GVfsDaemonClass   GVfsDaemonClass;
typedef struct _GVfsDaemonPrivate GVfsDaemonPrivate;

struct _GVfsDaemon
{
  GObject parent_instance;

  GVfsDaemonPrivate *priv;
};

struct _GVfsDaemonClass
{
  GObjectClass parent_class;

  /* vtable */
  
  GVfsReadRequest * (*read_file) (GVfsDaemon *daemon,
				  const char *path,
				  GError **error);
};

GType g_vfs_daemon_get_type (void) G_GNUC_CONST;

gboolean g_vfs_daemon_is_active (GVfsDaemon *daemon);

G_END_DECLS

#endif /* __G_VFS_DAEMON_H__ */