smbnetfs  0.6.3
About: SMBNetFS is a Linux/FreeBSD filesystem that allow you to use samba/microsoft network in the same manner as the network neighborhood in Microsoft Windows.
  Fossies Dox: smbnetfs-0.6.3.tar.bz2  ("unofficial" and yet experimental doxygen-generated source code documentation)  

Loading...
Searching...
No Matches
smb_conn_proto.h
Go to the documentation of this file.
1#ifndef __SMB_CONN_PROTO_H__
2#define __SMB_CONN_PROTO_H__
3
4#include <sys/types.h>
5#include <sys/stat.h>
6#include <unistd.h>
7
8#define COMM_BUF_SIZE 4096
9#define MAX_FILENAME_LEN 255
10
11typedef void * smb_conn_srv_fd;
12
14 DIE_MSG = -3,
15 MESSAGE = -2,
17 OPEN = 0,
38};
39
41 size_t query_len;
44};
45
47 size_t reply_len;
50};
51
53 unsigned int smbc_type; /* see struct smbc_dirent from libsmbclient.h */
55};
56
57/* ------------------------------- */
58
59/* UNLINK, OPENDIR, RMDIR, STAT, */
61 size_t url_offs;
62};
63
64/* CREAT, CHMOD, MKDIR */
66 size_t url_offs;
67 mode_t mode;
68};
69
70/* OPEN */
72 size_t url_offs;
73 mode_t mode;
74 int flags;
75};
76
77/* RENAME */
81};
82
83/* UTIMES */
85 size_t url_offs;
86 struct timeval tbuf[2];
87};
88
89/* CLOSE, CLOSEDIR, FSTAT */
92};
93
94/* FTRUNCATE */
97 off_t offset;
98};
99
100/* READ, WRITE, READDIR */
103 off_t offset;
104 size_t bufsize;
105};
106
107/* LISTXATTR */
109 size_t url_offs;
110 size_t bufsize;
111};
112
113/* GETXATTR */
115 size_t url_offs;
116 size_t name_offs;
117 size_t bufsize;
118};
119
120/* SETXATTR */
122 size_t url_offs;
123 size_t name_offs;
124 size_t bufsize;
125 int flags;
126};
127
128/* REMOVEXATTR */
130 size_t url_offs;
131 size_t name_offs;
132};
133
134/* PASSWORD */
139};
140
141/* ------------------------------- */
142
143/* CLOSE, FTRUNCATE, UNLINK, RENAME, CLOSEDIR, MKDIR, RMDIR, CHMOD, UTIMES, SETXATTR, REMOVEXATTR */
145};
146
147/* OPEN, CREAT, OPENDIR */
150};
151
152/* READ, WRITE, READDIR, GETXATTR, LISTXATTR */
154 ssize_t bufsize;
155};
156
157/* STAT, FSTAT */
159 struct stat stat;
160};
161
162/* PASSWORD */
166};
167
168/* MESSAGE and DIE_MSG */
170 pid_t pid;
172 size_t msg_offs;
173};
174
175
176/* ------------------------------- */
177
186 const char *local_charset;
187 const char *samba_charset;
188};
189
190
191void smb_conn_srv_listen(struct smb_conn_srv_ctx *ctx);
192
193#endif /* __SMB_CONN_PROTO_H__ */
smb_conn_cmd
@ PASSWORD
@ LISTXATTR
@ OPEN
@ CLOSEDIR
@ FSTAT
@ UNLINK
@ DIE_MSG
@ FTRUNCATE
@ WRITE
@ CLOSE
@ SETXATTR
@ REMOVEXATTR
@ OPENDIR
@ CREAT
@ READDIR
@ MKDIR
@ MESSAGE
@ CHMOD
@ RMDIR
@ READ
@ STAT
@ UTIMES
@ RENAME
@ GETXATTR
void * smb_conn_srv_fd
void smb_conn_srv_listen(struct smb_conn_srv_ctx *ctx)
Definition: smb_conn_srv.c:185
#define MAX_FILENAME_LEN
Definition: smb_conn_proto.h:9
unsigned int smbc_type
smb_conn_srv_fd srv_fd
smb_conn_srv_fd srv_fd
smb_conn_srv_fd srv_fd
enum smb_conn_cmd query_cmd
enum smb_conn_cmd reply_cmd
smb_conn_srv_fd srv_fd
const char * local_charset
const char * samba_charset
struct timeval tbuf[2]