]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/librpc: open_files.idl: move flag definition into open_files.idl
authorRalph Boehme <slow@samba.org>
Mon, 17 Mar 2025 11:20:02 +0000 (12:20 +0100)
committerVolker Lendecke <vl@samba.org>
Wed, 9 Apr 2025 13:40:36 +0000 (13:40 +0000)
Nice to have everything in one place. No change in behaviour.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/include/smb.h
source3/librpc/idl/open_files.idl

index e269c6a89e8c17477961cbb4090fbc10c648822d..61c5963a02c8703b78e5f6e484f4c0b5a5c1dede 100644 (file)
@@ -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
index 2b5a03589d1ef3c2c5944f7936121a5958465c76..6b4d77e059fc91140207c57f81db19d4f7adc258 100644 (file)
@@ -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;
 
                /*