summaryrefslogtreecommitdiff
path: root/daemon/gvfsbackendsmb.h
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/gvfsbackendsmb.h')
-rw-r--r--daemon/gvfsbackendsmb.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/daemon/gvfsbackendsmb.h b/daemon/gvfsbackendsmb.h
new file mode 100644
index 00000000..99a967e3
--- /dev/null
+++ b/daemon/gvfsbackendsmb.h
@@ -0,0 +1,46 @@
+#ifndef __G_VFS_BACKEND_SMB_H__
+#define __G_VFS_BACKEND_SMB_H__
+
+#include <gvfsbackend.h>
+
+#include <libsmbclient.h>
+
+G_BEGIN_DECLS
+
+#define G_TYPE_VFS_BACKEND_SMB (g_vfs_backend_smb_get_type ())
+#define G_VFS_BACKEND_SMB(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_VFS_BACKEND_SMB, GVfsBackendSmb))
+#define G_VFS_BACKEND_SMB_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_VFS_BACKEND_SMB, GVfsBackendSmbClass))
+#define G_IS_VFS_BACKEND_SMB(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_VFS_BACKEND_SMB))
+#define G_IS_VFS_BACKEND_SMB_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_VFS_BACKEND_SMB))
+#define G_VFS_BACKEND_SMB_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_VFS_BACKEND_SMB, GVfsBackendSmbClass))
+
+typedef struct _GVfsBackendSmb GVfsBackendSmb;
+typedef struct _GVfsBackendSmbClass GVfsBackendSmbClass;
+
+struct _GVfsBackendSmb
+{
+ GVfsBackend parent_instance;
+
+ SMBCCTX *smb_context;
+
+ /* Cache */
+ char *server_name;
+ char *share_name;
+ char *domain;
+ char *username;
+ SMBCSRV *server;
+};
+
+struct _GVfsBackendSmbClass
+{
+ GVfsBackendClass parent_class;
+};
+
+GType g_vfs_backend_smb_get_type (void) G_GNUC_CONST;
+
+GVfsBackendSmb *g_vfs_backend_smb_new (const char *server,
+ const char *share);
+
+G_END_DECLS
+
+#endif /* __G_VFS_BACKEND_SMB_H__ */