Changeset 499 for trunk/client/src/smbwrp.h
- Timestamp:
- Dec 13, 2010, 5:10:38 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/src/smbwrp.h
r472 r499 125 125 #endif 126 126 127 struct DirectoryCache; 128 127 129 typedef struct _Resource 128 130 { … … 133 135 int easupport; 134 136 int krb5support; 137 struct DirectoryCache *pdc; 135 138 } Resource; 136 139 … … 157 160 void *plist; 158 161 unsigned long ulAttribute; 162 const char *fullpath; 159 163 } filelist_state; 160 164 … … 186 190 int _System smbwrp_dskattr(cli_state * cli, FSALLOCATE *pfsa); 187 191 192 /* Directory cache helpers. */ 193 int dircache_create(struct DirectoryCache **ppdc, unsigned long ulExpirationTime, int cMaxEntries); 194 void dircache_delete(struct DirectoryCache *pdc); 195 196 typedef void FNADDDIRENTRY(const char*, smbwrp_fileinfo *, const char *, void *); 197 typedef FNADDDIRENTRY *PFNADDDIRENTRY; 198 199 /* Note: dircache_list_files or dircache_write_begin construct the directory path 200 * using information in the filelist_state structure. 201 */ 202 int dircache_list_files(PFNADDDIRENTRY fn, 203 filelist_state *state, 204 int *ptotal_received); 205 206 void *dircache_write_begin(filelist_state *state, 207 int cFiles); 208 void dircache_write_entry(void *dircachectx, const smbwrp_fileinfo *finfo); 209 void dircache_write_end(void *dircachectx); 210 211 void dircache_invalidate(const char *path, 212 struct DirectoryCache *pdc, 213 int fParent); 214 215 int dircache_find_path(struct DirectoryCache *pdc, 216 const char *path, 217 smbwrp_fileinfo *finfo, 218 unsigned long *pulAge); 219 220 /* Prototype the debug log helper. */ 221 void debuglocal(int level, const char * fmt, ...); 222 188 223 #endif /* _SMBWRP_H */
Note:
See TracChangeset
for help on using the changeset viewer.