SMB_STRUCT_STAT is defined in includes.h. This way including file_id.h
is possible without including includes.h
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
id->extid |= ((uint64_t)IVAL(buf,20))<<32;
}
-uint64_t make_file_id_from_itime(SMB_STRUCT_STAT *st)
+uint64_t make_file_id_from_itime(const struct stat_ex *st)
{
struct timespec itime = st->st_ex_itime;
ino_t ino = st->st_ex_ino;
/*
* Make a SMB File-ID from itime
*/
-uint64_t make_file_id_from_itime(SMB_STRUCT_STAT *st);
+struct stat_ex;
+uint64_t make_file_id_from_itime(const struct stat_ex *st);
#endif