diff options
author | Puran Chand <pchand@vmware.com> | 2018-04-06 14:08:03 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2018-05-05 01:39:40 +0200 |
commit | bf13fe0f2226844123cfb090e0ab82c8ce24e09b (patch) | |
tree | bd9ea9177a4825199ee8fbcdb6d6b8b4632eaafb /source3/include/libsmbclient.h | |
parent | abb80ce44c41759306be3ff1cca6bea532bdf45f (diff) | |
download | samba-bf13fe0f2226844123cfb090e0ab82c8ce24e09b.tar.gz |
s3: libsmbclient: Add internal/external structures needed for readdirplus.
Not yet used.
Signed-off-by: Puran Chand <pchand@vmware.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
Diffstat (limited to 'source3/include/libsmbclient.h')
-rw-r--r-- | source3/include/libsmbclient.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/source3/include/libsmbclient.h b/source3/include/libsmbclient.h index 7a2067915af..65aa7db21d3 100644 --- a/source3/include/libsmbclient.h +++ b/source3/include/libsmbclient.h @@ -129,6 +129,55 @@ struct smbc_dirent char name[1]; }; +/**@ingroup structure + * Structure that represents all attributes of a directory entry. + * + */ +struct libsmb_file_info +{ + /** + * Size of file + */ + uint64_t size; + /** + * DOS attributes of file + */ + uint16_t attrs; + /** + * User ID of file + */ + uid_t uid; + /** + * Group ID of file + */ + gid_t gid; + /** + * Birth/Create time of file (if supported by system) + * Otherwise the value will be 0 + */ + struct timespec btime_ts; + /** + * Modified time for the file + */ + struct timespec mtime_ts; + /** + * Access time for the file + */ + struct timespec atime_ts; + /** + * Change time for the file + */ + struct timespec ctime_ts; + /** + * Name of file + */ + char *name; + /** + * Short name of file + */ + char *short_name; +}; + /* * Logging callback function */ |