Fix coverity CID-602. Possible use of uninitialized var.
[Samba.git] / source / librpc / idl / misc.idl
blob132a81f138399b4c010fc0cdd5d60596f958120c
1 /*
2 miscellaneous IDL structures
3 */
7 pointer_default(unique)
9 interface misc
11 typedef [public,noprint,gensize,noejs] struct {
12 uint32 time_low;
13 uint16 time_mid;
14 uint16 time_hi_and_version;
15 uint8 clock_seq[2];
16 uint8 node[6];
17 } GUID;
19 typedef [public] struct {
20 GUID uuid;
21 uint32 if_version;
22 } ndr_syntax_id;
24 typedef [public] struct {
25 uint32 handle_type;
26 GUID uuid;
27 } policy_handle;
29 /* secure channel types */
30 /* Only SEC_CHAN_WKSTA can forward requests to other domains. */
32 typedef [public] enum {
33 SEC_CHAN_WKSTA = 2,
34 SEC_CHAN_DOMAIN = 4,
35 SEC_CHAN_BDC = 6
36 } netr_SchannelType;
38 /* SAM database types */
39 typedef [public,v1_enum] enum {
40 SAM_DATABASE_DOMAIN = 0, /* Domain users and groups */
41 SAM_DATABASE_BUILTIN = 1, /* BUILTIN users and groups */
42 SAM_DATABASE_PRIVS = 2 /* Privileges */
43 } netr_SamDatabaseID;
45 typedef [public,v1_enum] enum {
46 SAMR_REJECT_OTHER = 0,
47 SAMR_REJECT_TOO_SHORT = 1,
48 SAMR_REJECT_IN_HISTORY = 2,
49 SAMR_REJECT_COMPLEXITY = 5
50 } samr_RejectReason;