From: Ralph Boehme Date: Mon, 17 Mar 2025 11:20:02 +0000 (+0100) Subject: s3/librpc: open_files.idl: move flag definition into open_files.idl X-Git-Tag: tevent-0.17.0~362 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=831c0f787410db8ff94603d9431ee76ed3b253eb;p=thirdparty%2Fsamba.git s3/librpc: open_files.idl: move flag definition into open_files.idl Nice to have everything in one place. No change in behaviour. Signed-off-by: Ralph Boehme Reviewed-by: Volker Lendecke --- diff --git a/source3/include/smb.h b/source3/include/smb.h index e269c6a89e8..61c5963a02c 100644 --- a/source3/include/smb.h +++ b/source3/include/smb.h @@ -168,8 +168,6 @@ struct interface { uint32_t options; }; -#define SHARE_ENTRY_FLAG_POSIX_OPEN 0x1 - #include "librpc/gen_ndr/server_id.h" #define NT_HASH_LEN 16 diff --git a/source3/librpc/idl/open_files.idl b/source3/librpc/idl/open_files.idl index 2b5a03589d1..6b4d77e059f 100644 --- a/source3/librpc/idl/open_files.idl +++ b/source3/librpc/idl/open_files.idl @@ -12,6 +12,10 @@ import "misc.idl"; interface open_files { + typedef [public,bitmap16bit] bitmap { + SHARE_ENTRY_FLAG_POSIX_OPEN = 0x0001 + } share_entry_flags; + typedef [enum16bit] enum { SHARE_MODE_ENTRY_OP_TYPE_NONE = 0, SHARE_MODE_ENTRY_OP_TYPE_EXCLUSIVE = 1, @@ -33,7 +37,7 @@ interface open_files timeval time; udlong share_file_id; uint32 uid; - uint16 flags; + share_entry_flags flags; uint32 name_hash; /*