diff options
author | James Peach <jpeach@samba.org> | 2006-05-05 07:15:45 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:16:47 -0500 |
commit | 4d55a81958a67d5da3227d7af79a5c630f678424 (patch) | |
tree | 7f442d39615b6a1893423355ec71184abe58384b /source3/include/includes.h | |
parent | ea069fcf0193cb359cec7e69548d08d069d641da (diff) | |
download | samba-4d55a81958a67d5da3227d7af79a5c630f678424.tar.gz samba-4d55a81958a67d5da3227d7af79a5c630f678424.tar.bz2 samba-4d55a81958a67d5da3227d7af79a5c630f678424.zip |
r15450: Change profiling data macros to use stack variables rather than
globals. This catches mismatched start/end calls and removes
the need for special nested profiling calls.
(This used to be commit ee750498812190edd3ec52ca3c750258f3b8a97a)
Diffstat (limited to 'source3/include/includes.h')
-rw-r--r-- | source3/include/includes.h | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h index 0eb2ba83aa..3aec0f602a 100644 --- a/source3/include/includes.h +++ b/source3/include/includes.h @@ -943,8 +943,6 @@ extern int errno; #include "msdfs.h" -#include "smbprofile.h" - #include "rap.h" #include "md5.h" @@ -1059,11 +1057,30 @@ struct smb_ldap_privates; #include "smb_ldap.h" +/* + * Reasons for cache flush. + */ + +enum flush_reason_enum { + SEEK_FLUSH, + READ_FLUSH, + WRITE_FLUSH, + READRAW_FLUSH, + OPLOCK_RELEASE_FLUSH, + CLOSE_FLUSH, + SYNC_FLUSH, + SIZECHANGE_FLUSH, + /* NUM_FLUSH_REASONS must remain the last value in the enumeration. */ + NUM_FLUSH_REASONS}; + /***** automatically generated prototypes *****/ #ifndef NO_PROTO_H #include "proto.h" #endif +/* We need this after proto.h to reference GetTimeOfDay(). */ +#include "smbprofile.h" + /* String routines */ #include "srvstr.h" |