summaryrefslogtreecommitdiff
path: root/daemon/gvfsjobcloseread.h
blob: f7725593ac4eb108a5024ae7b6b399008f1f7f7f (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
#ifndef __G_VFS_JOB_CLOSE_READ_H__
#define __G_VFS_JOB_CLOSE_READ_H__

#include <gvfsjob.h>
#include <gvfsbackend.h>
#include <gvfsreadchannel.h>

G_BEGIN_DECLS

#define G_TYPE_VFS_JOB_CLOSE_READ         (g_vfs_job_close_read_get_type ())
#define G_VFS_JOB_CLOSE_READ(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_VFS_JOB_CLOSE_READ, GVfsJobCloseRead))
#define G_VFS_JOB_CLOSE_READ_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_VFS_JOB_CLOSE_READ, GVfsJobCloseReadClass))
#define G_IS_VFS_JOB_CLOSE_READ(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_VFS_JOB_CLOSE_READ))
#define G_IS_VFS_JOB_CLOSE_READ_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_VFS_JOB_CLOSE_READ))
#define G_VFS_JOB_CLOSE_READ_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_VFS_JOB_CLOSE_READ, GVfsJobCloseReadClass))

typedef struct _GVfsJobCloseReadClass   GVfsJobCloseReadClass;

struct _GVfsJobCloseRead
{
  GVfsJob parent_instance;

  GVfsReadChannel *channel;
  GVfsBackend *backend;
  GVfsBackendHandle handle;
};

struct _GVfsJobCloseReadClass
{
  GVfsJobClass parent_class;
};

GType g_vfs_job_close_read_get_type (void) G_GNUC_CONST;

GVfsJob *g_vfs_job_close_read_new (GVfsReadChannel   *channel,
				   GVfsBackendHandle  handle,
				   GVfsBackend       *backend);

G_END_DECLS

#endif /* __G_VFS_JOB_CLOSE_READ_H__ */