diff options
author | Jeremy Allison <jra@samba.org> | 2009-05-05 20:59:22 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-05-05 20:59:22 -0700 |
commit | 4cbd0c77e42627c76dda88af5326ef91415a652d (patch) | |
tree | 85fa13b4907088ada28d7b96a466d86f08f52dc9 /source3/include | |
parent | 1db0b20d8a26fb60299d0ed7553d7a4847aee84f (diff) | |
download | samba-4cbd0c77e42627c76dda88af5326ef91415a652d.tar.gz samba-4cbd0c77e42627c76dda88af5326ef91415a652d.tar.bz2 samba-4cbd0c77e42627c76dda88af5326ef91415a652d.zip |
Make cli_getatr() async.
Jeremy.
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/proto.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index 30c11a50ee..194d74db5e 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -1018,6 +1018,7 @@ struct timespec get_ctimespec(const SMB_STRUCT_STAT *pst); void set_ctimespec(SMB_STRUCT_STAT *pst, struct timespec ts); void dos_filetime_timespec(struct timespec *tsp); time_t make_unix_date2(const void *date_ptr, int zone_offset); +time_t make_unix_date3(const void *date_ptr, int zone_offset); time_t srv_make_unix_date(const void *date_ptr); time_t srv_make_unix_date2(const void *date_ptr); time_t srv_make_unix_date3(const void *date_ptr); @@ -2459,12 +2460,23 @@ NTSTATUS cli_getattrE(struct cli_state *cli, time_t *change_time, time_t *access_time, time_t *write_time); -bool cli_getatr(struct cli_state *cli, const char *fname, - uint16_t *attr, SMB_OFF_T *size, time_t *write_time); bool cli_setattrE(struct cli_state *cli, int fd, time_t change_time, time_t access_time, time_t write_time); +struct tevent_req *cli_getatr_send(TALLOC_CTX *mem_ctx, + struct event_context *ev, + struct cli_state *cli, + const char *fname); +NTSTATUS cli_getatr_recv(struct tevent_req *req, + uint16_t *attr, + SMB_OFF_T *size, + time_t *write_time); +NTSTATUS cli_getatr(struct cli_state *cli, + const char *fname, + uint16_t *attr, + SMB_OFF_T *size, + time_t *write_time); bool cli_setatr(struct cli_state *cli, const char *fname, uint16_t attr, time_t t); struct tevent_req *cli_chkpath_send(TALLOC_CTX *mem_ctx, struct event_context *ev, |