librpc:ndr: Increase size of ‘libndr_flags’ type to 64 bits
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Sun, 29 Oct 2023 22:08:49 +0000 (11:08 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 1 Nov 2023 20:10:45 +0000 (20:10 +0000)
This gives us thirty‐two new LIBNDR_ flags to play with.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
librpc/ndr/libndr.h
pidl/lib/Parse/Pidl/NDR.pm

index 8cfd05284e4ecd17da7a31eb70021b92af4af4fa..b0596039526f118bed75ec2584b6e94f7f16f1a1 100644 (file)
@@ -52,9 +52,9 @@ struct ndr_compression_state;
  * If you’re considering changing the size of this type, see also
  * $scalar_alignment in pidl/lib/Parse/Pidl/NDR.pm.
  */
-typedef uint32_t libndr_flags;
-#define PRI_LIBNDR_FLAGS PRIx32
-#define PRI_LIBNDR_FLAGS_DECIMAL PRIu32
+typedef uint64_t libndr_flags;
+#define PRI_LIBNDR_FLAGS PRIx64
+#define PRI_LIBNDR_FLAGS_DECIMAL PRIu64
 
 /*
 * If you’re considering changing the size of this type, see also
index 56597df41879169d8cd56ca39f185f91a7162cb2..48fc2cb20c8873988b032c25934d0bc7874c6f64 100644 (file)
@@ -84,7 +84,7 @@ my $scalar_alignment = {
        'dnsp_name' => 1,
        'dnsp_string' => 1,
        'HRESULT' => 4,
-       'libndr_flags' => 4,
+       'libndr_flags' => 8,
        'ndr_flags_type' => 4,
 };