Changeset 959 for trunk/client/src/smbwrp.h
- Timestamp:
- Aug 16, 2016, 5:35:07 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/src/smbwrp.h
r957 r959 74 74 typedef struct smbwrp_server 75 75 { 76 77 78 79 80 81 82 83 76 char server_name[256]; 77 char share_name[256]; 78 char workgroup[256]; 79 char username[256]; 80 char password[256]; 81 char master[256]; 82 int ifmastergroup; 83 int no_pathinfo2; 84 84 } smbwrp_server; 85 85 86 86 typedef struct smbwrp_file 87 87 { 88 89 90 91 92 93 94 95 96 97 98 99 100 88 int fd; 89 unsigned long long offset; 90 int openmode; 91 int openattr; 92 int denymode; 93 unsigned long mtime; 94 unsigned long ctime; 95 int updatetime; 96 // 0 = time is not updated upon file close 97 // 1 = modified time is updated to current time 98 // 2 = create and modified time are updated according local file 99 char fullname[261]; 100 char fname[261]; 101 101 } smbwrp_file; 102 102 103 103 typedef struct smbwrp_fileinfo 104 104 { 105 106 107 108 109 110 111 105 unsigned long long size; 106 unsigned long attr; 107 unsigned long ctime; 108 unsigned long mtime; 109 unsigned long atime; 110 int easize; 111 char fname[261]; 112 112 } smbwrp_fileinfo; 113 113 114 114 typedef struct smbwrp_fileseek 115 115 { 116 117 118 116 int whence; 117 long offset; 118 unsigned long result; 119 119 } smbwrp_fileseek; 120 120 … … 123 123 typedef struct _FSALLOCATE /* fsalloc */ 124 124 { 125 126 127 128 129 125 unsigned long idFileSystem; 126 unsigned long cSectorUnit; 127 unsigned long cUnit; 128 unsigned long cUnitAvail; 129 unsigned short cbSector; 130 130 } FSALLOCATE; 131 131 #endif … … 135 135 typedef struct _Resource 136 136 { 137 int rootlevel; 138 smbwrp_server srv; 139 char logfile[_MAX_PATH + 1]; 140 char loglevel; 141 int easupport; 142 int krb5support; 137 int rootlevel; 138 smbwrp_server srv; 139 int easupport; 140 int krb5support; 143 141 int cachetimeout; 144 142 int cachedepth; 145 struct DirectoryCache *pdc; 143 int loglevel; 144 struct DirectoryCache *pdc; 146 145 } Resource; 147 146 148 147 typedef struct _Connection 149 148 { 150 151 152 149 Resource *pRes; 150 cli_state* cli; 151 smbwrp_file file; 153 152 } Connection; 154 153 … … 156 155 typedef struct filelist_state 157 156 { 158 159 160 161 162 163 164 165 166 167 168 169 170 157 unsigned long pipe; 158 char * data; 159 int datalen; 160 int bufferlen; 161 void ( * _System add_dir_entry)(void * st); 162 char mask[ _MAX_PATH]; 163 char dir[ _MAX_PATH]; 164 char dir_mask[ _MAX_PATH]; 165 smbwrp_fileinfo finfo; 166 Connection* pConn; 167 void *plist; 168 unsigned long ulAttribute; 169 const char *fullpath; 171 170 } filelist_state; 172 171
Note:
See TracChangeset
for help on using the changeset viewer.