Ignore:
Timestamp:
Aug 19, 2016, 2:24:06 PM (9 years ago)
Author:
Yuri Dario
Message:

Samba code changes for using new dircache API. ticket#274.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/src/smbwrp.h

    r960 r966  
    130130} FSALLOCATE;
    131131#endif
    132 
    133 struct DirectoryCache;
    134132
    135133typedef struct _Resource
     
    203201int _System smbwrp_dskattr(Resource *pRes, cli_state * cli, FSALLOCATE *pfsa);
    204202
    205 /* Directory cache helpers. */
    206 int dircache_create(Resource *pRes);
    207 void dircache_delete(Resource *pRes);
    208 
    209 typedef void FNADDDIRENTRY(const char*, smbwrp_fileinfo *, const char *, void *);
    210 typedef FNADDDIRENTRY *PFNADDDIRENTRY;
    211 
    212 /* Note: dircache_list_files or dircache_write_begin construct the directory path
    213  *       using information in the filelist_state structure.
    214  */
    215 int dircache_list_files(PFNADDDIRENTRY fn,
    216                         filelist_state *state,
    217                         int *ptotal_received);
    218 
    219 void *dircache_write_begin(filelist_state *state,
    220                            int cFiles);
    221 void dircache_write_entry(Resource *pRes, void *dircachectx, const smbwrp_fileinfo *finfo);
    222 void dircache_write_end(Resource *pRes, void *dircachectx);
    223 
    224 void dircache_invalidate(const char *path,
    225                          Resource *pRes,
    226                          int fParent);
    227 
    228 int dircache_find_path(Resource *pRes,
    229                        const char *path,
    230                        smbwrp_fileinfo *finfo,
    231                        unsigned long *pulAge);
    232 
    233203/* Prototype the debug log helper. */
    234204void debuglocal(Resource *pRes, int level, const char * fmt, ...);
Note: See TracChangeset for help on using the changeset viewer.