diff options
author | Alexander Larsson <alexl@src.gnome.org> | 2007-09-13 11:01:17 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2007-09-13 11:01:17 +0000 |
commit | eeb02980c8274640d7d312c3ebf89ed3d9b03a68 (patch) | |
tree | 3c6255c93546c8cdc189af6b7c883949b2d9f5f7 /daemon/gvfsbackendsmb.h | |
parent | cfe5ace5edbda403886bfd88f9d8ca5c41de63ea (diff) | |
download | gvfs-eeb02980c8274640d7d312c3ebf89ed3d9b03a68.tar.gz |
Initial fleshing out of smb support
Original git commit by Alexander Larsson <alex@greebo.(none)> at 1169214341 +0100
svn path=/trunk/; revision=256
Diffstat (limited to 'daemon/gvfsbackendsmb.h')
-rw-r--r-- | daemon/gvfsbackendsmb.h | 46 |
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__ */ |