r5505: make usage of bitmap's :-)
authorStefan Metzmacher <metze@samba.org>
Tue, 22 Feb 2005 12:54:13 +0000 (12:54 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:10:52 +0000 (13:10 -0500)
metze
(This used to be commit bc31e19f38319b098402d1f348bb5f5952fdcf40)

source4/librpc/idl/spoolss.idl

index 9a9495b046eb9c22930a1d2a33a616f984839453..aff4f25664ba3f94b9f60a1bfaf0548c0e14dd07 100644 (file)
                [relative] nstring *port_name;
        } spoolss_PortInfo1;
 
+       typedef bitmap {
+               SPOOLSS_PORT_TYPE_WRITE         = 0x00000001,
+               SPOOLSS_PORT_TYPE_READ          = 0x00000002,
+               SPOOLSS_PORT_TYPE_REDIRECTED    = 0x00000004,
+               SPOOLSS_PORT_TYPE_NET_ATTACHED  = 0x00000008
+       } spoolss_PortType;
+
        typedef struct {
                [relative] nstring *port_name;
                [relative] nstring *monitor_name;
                [relative] nstring *description;
-               uint32 port_type;
+               spoolss_PortType port_type;
                uint32 reserved;
        } spoolss_PortInfo2;