1 /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
2 /* gvfs - extensions for gio
3  *
4  * Copyright (C) 2006-2008 Red Hat, Inc.
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General
17  * Public License along with this library; if not, write to the
18  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  * Boston, MA 02110-1301, USA.
20  *
21  * Author: David Zeuthen <davidz@redhat.com>
22  */
23 
24 #ifndef __G_PROXY_SHADOW_MOUNT_H__
25 #define __G_PROXY_SHADOW_MOUNT_H__
26 
27 #include <glib-object.h>
28 #include <gio/gio.h>
29 
30 #include "gproxyvolumemonitor.h"
31 
32 G_BEGIN_DECLS
33 
34 #define G_TYPE_PROXY_SHADOW_MOUNT        (g_proxy_shadow_mount_get_type ())
35 #define G_PROXY_SHADOW_MOUNT(o)          (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_PROXY_SHADOW_MOUNT, GProxyShadowMount))
36 #define G_PROXY_SHADOW_MOUNT_CLASS(k)    (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_PROXY_SHADOW_MOUNT, GProxyShadowMountClass))
37 #define G_IS_PROXY_SHADOW_MOUNT(o)       (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_PROXY_SHADOW_MOUNT))
38 #define G_IS_PROXY_SHADOW_MOUNT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_PROXY_SHADOW_MOUNT))
39 
40 typedef struct _GProxyShadowMountClass GProxyShadowMountClass;
41 
42 struct _GProxyShadowMountClass {
43    GObjectClass parent_class;
44 };
45 
46 GType              g_proxy_shadow_mount_get_type            (void) G_GNUC_CONST;
47 void               g_proxy_shadow_mount_register            (GIOModule           *module);
48 GProxyShadowMount *g_proxy_shadow_mount_new                 (GProxyVolumeMonitor *volume_monitor,
49                                                              GProxyVolume        *volume,
50                                                              GMount              *real_mount);
51 GMount            *g_proxy_shadow_mount_get_real_mount      (GProxyShadowMount   *mount);
52 GFile             *g_proxy_shadow_mount_get_activation_root (GProxyShadowMount   *mount);
53 gboolean           g_proxy_shadow_mount_has_mount_path      (GProxyShadowMount   *mount,
54                                                              const char          *mount_path);
55 void               g_proxy_shadow_mount_remove              (GProxyShadowMount   *mount);
56 
57 G_END_DECLS
58 
59 #endif /* __G_PROXY_SHADOW_MOUNT_H__ */
60