~ubuntu-branches/ubuntu/vivid/samba/vivid

« back to all changes in this revision

Viewing changes to librpc/gen_ndr/initshutdown.h

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2011-12-21 13:18:04 UTC
  • mfrom: (0.39.21 sid)
  • Revision ID: package-import@ubuntu.com-20111221131804-xtlr39wx6njehxxr
Tags: 2:3.6.1-3ubuntu1
* Merge from Debian testing.  Remaining changes:
  + debian/patches/VERSION.patch:
    - set SAMBA_VERSION_SUFFIX to Ubuntu.
  + debian/patches/error-trans.fix-276472:
    - Add the translation of Unix Error code -ENOTSUP to NT Error Code
    - NT_STATUS_NOT_SUPPORTED to prevent the Permission denied error.
  + debian/smb.conf:
    - add "(Samba, Ubuntu)" to server string.
    - comment out the default [homes] share, and add a comment about
      "valid users = %S" to show users how to restrict access to
      \\server\username to only username.
    - Set 'usershare allow guests', so that usershare admins are 
      allowed to create public shares in addition to authenticated
      ones.
    - add map to guest = Bad user, maps bad username to guest access.
  + debian/samba-common.config:
    - Do not change priority to high if dhclient3 is installed.
    - Use priority medium instead of high for the workgroup question.
  + debian/control:
    - Don't build against or suggest ctdb.
    - Add dependency on samba-common-bin to samba.
  + Add ufw integration:
    - Created debian/samba.ufw.profile
    - debian/rules, debian/samba.dirs, debian/samba.files: install
      profile
    - debian/control: have samba suggest ufw
  + Add apport hook:
    - Created debian/source_samba.py.
    - debian/rules, debian/samba.dirs, debian/samba-common-bin.files: install
  + Switch to upstart:
    - Add debian/samba.{nmbd,smbd}.upstart.
  + debian/samba.logrotate, debian/samba-common.dhcp, debian/samba.if-up:
    - Make them upstart compatible
  + debian/samba.postinst: 
    - Avoid scary pdbedit warnings on first import.
  + debian/samba-common.postinst: Add more informative error message for
    the case where smb.conf was manually deleted
  + debian/patches/fix-debuglevel-name-conflict.patch: don't use 'debug_level'
    as a global variable name in an NSS module 
  + Dropped:
    - debian/patches/error-trans.fix-276472
    - debian/patches/fix-debuglevel-name-conflict.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* header auto-generated by pidl */
2
 
 
3
 
#include <stdint.h>
4
 
 
5
 
#include "libcli/util/ntstatus.h"
6
 
 
7
 
#include "librpc/gen_ndr/lsa.h"
8
 
#ifndef _HEADER_initshutdown
9
 
#define _HEADER_initshutdown
10
 
 
11
 
enum initshutdown_ReasonMajor
12
 
#ifndef USE_UINT_ENUMS
13
 
 {
14
 
        SHTDN_REASON_MAJOR_OTHER=(int)(0x00000000),
15
 
        SHTDN_REASON_MAJOR_HARDWARE=(int)(0x00010000),
16
 
        SHTDN_REASON_MAJOR_OPERATINGSYSTEM=(int)(0x00020000),
17
 
        SHTDN_REASON_MAJOR_SOFTWARE=(int)(0x00030000),
18
 
        SHTDN_REASON_MAJOR_APPLICATION=(int)(0x00040000),
19
 
        SHTDN_REASON_MAJOR_SYSTEM=(int)(0x00050000),
20
 
        SHTDN_REASON_MAJOR_POWER=(int)(0x00060000),
21
 
        SHTDN_REASON_MAJOR_LEGACY_API=(int)(0x00070000)
22
 
}
23
 
#else
24
 
 { __donnot_use_enum_initshutdown_ReasonMajor=0x7FFFFFFF}
25
 
#define SHTDN_REASON_MAJOR_OTHER ( 0x00000000 )
26
 
#define SHTDN_REASON_MAJOR_HARDWARE ( 0x00010000 )
27
 
#define SHTDN_REASON_MAJOR_OPERATINGSYSTEM ( 0x00020000 )
28
 
#define SHTDN_REASON_MAJOR_SOFTWARE ( 0x00030000 )
29
 
#define SHTDN_REASON_MAJOR_APPLICATION ( 0x00040000 )
30
 
#define SHTDN_REASON_MAJOR_SYSTEM ( 0x00050000 )
31
 
#define SHTDN_REASON_MAJOR_POWER ( 0x00060000 )
32
 
#define SHTDN_REASON_MAJOR_LEGACY_API ( 0x00070000 )
33
 
#endif
34
 
;
35
 
 
36
 
enum initshutdown_ReasonMinor
37
 
#ifndef USE_UINT_ENUMS
38
 
 {
39
 
        SHTDN_REASON_MINOR_OTHER=(int)(0x00000000),
40
 
        SHTDN_REASON_MINOR_MAINTENANCE=(int)(0x00000001),
41
 
        SHTDN_REASON_MINOR_INSTALLATION=(int)(0x00000002),
42
 
        SHTDN_REASON_MINOR_UPGRADE=(int)(0x00000003),
43
 
        SHTDN_REASON_MINOR_RECONFIG=(int)(0x00000004),
44
 
        SHTDN_REASON_MINOR_HUNG=(int)(0x00000005),
45
 
        SHTDN_REASON_MINOR_UNSTABLE=(int)(0x00000006),
46
 
        SHTDN_REASON_MINOR_DISK=(int)(0x00000007),
47
 
        SHTDN_REASON_MINOR_PROCESSOR=(int)(0x00000008),
48
 
        SHTDN_REASON_MINOR_NETWORKCARD=(int)(0x00000009),
49
 
        SHTDN_REASON_MINOR_POWER_SUPPLY=(int)(0x0000000a),
50
 
        SHTDN_REASON_MINOR_CORDUNPLUGGED=(int)(0x0000000b),
51
 
        SHTDN_REASON_MINOR_ENVIRONMENT=(int)(0x0000000c),
52
 
        SHTDN_REASON_MINOR_HARDWARE_DRIVER=(int)(0x0000000d),
53
 
        SHTDN_REASON_MINOR_OTHERDRIVER=(int)(0x0000000e),
54
 
        SHTDN_REASON_MINOR_BLUESCREEN=(int)(0x0000000f),
55
 
        SHTDN_REASON_MINOR_SERVICEPACK=(int)(0x00000010),
56
 
        SHTDN_REASON_MINOR_HOTFIX=(int)(0x00000011),
57
 
        SHTDN_REASON_MINOR_SECURITYFIX=(int)(0x00000012),
58
 
        SHTDN_REASON_MINOR_SECURITY=(int)(0x00000013),
59
 
        SHTDN_REASON_MINOR_NETWORK_CONNECTIVITY=(int)(0x00000014),
60
 
        SHTDN_REASON_MINOR_WMI=(int)(0x00000015),
61
 
        SHTDN_REASON_MINOR_SERVICEPACK_UNINSTALL=(int)(0x00000016),
62
 
        SHTDN_REASON_MINOR_HOTFIX_UNINSTALL=(int)(0x00000017),
63
 
        SHTDN_REASON_MINOR_SECURITYFIX_UNINSTALL=(int)(0x00000018),
64
 
        SHTDN_REASON_MINOR_MMC=(int)(0x00000019),
65
 
        SHTDN_REASON_MINOR_TERMSRV=(int)(0x00000020)
66
 
}
67
 
#else
68
 
 { __donnot_use_enum_initshutdown_ReasonMinor=0x7FFFFFFF}
69
 
#define SHTDN_REASON_MINOR_OTHER ( 0x00000000 )
70
 
#define SHTDN_REASON_MINOR_MAINTENANCE ( 0x00000001 )
71
 
#define SHTDN_REASON_MINOR_INSTALLATION ( 0x00000002 )
72
 
#define SHTDN_REASON_MINOR_UPGRADE ( 0x00000003 )
73
 
#define SHTDN_REASON_MINOR_RECONFIG ( 0x00000004 )
74
 
#define SHTDN_REASON_MINOR_HUNG ( 0x00000005 )
75
 
#define SHTDN_REASON_MINOR_UNSTABLE ( 0x00000006 )
76
 
#define SHTDN_REASON_MINOR_DISK ( 0x00000007 )
77
 
#define SHTDN_REASON_MINOR_PROCESSOR ( 0x00000008 )
78
 
#define SHTDN_REASON_MINOR_NETWORKCARD ( 0x00000009 )
79
 
#define SHTDN_REASON_MINOR_POWER_SUPPLY ( 0x0000000a )
80
 
#define SHTDN_REASON_MINOR_CORDUNPLUGGED ( 0x0000000b )
81
 
#define SHTDN_REASON_MINOR_ENVIRONMENT ( 0x0000000c )
82
 
#define SHTDN_REASON_MINOR_HARDWARE_DRIVER ( 0x0000000d )
83
 
#define SHTDN_REASON_MINOR_OTHERDRIVER ( 0x0000000e )
84
 
#define SHTDN_REASON_MINOR_BLUESCREEN ( 0x0000000f )
85
 
#define SHTDN_REASON_MINOR_SERVICEPACK ( 0x00000010 )
86
 
#define SHTDN_REASON_MINOR_HOTFIX ( 0x00000011 )
87
 
#define SHTDN_REASON_MINOR_SECURITYFIX ( 0x00000012 )
88
 
#define SHTDN_REASON_MINOR_SECURITY ( 0x00000013 )
89
 
#define SHTDN_REASON_MINOR_NETWORK_CONNECTIVITY ( 0x00000014 )
90
 
#define SHTDN_REASON_MINOR_WMI ( 0x00000015 )
91
 
#define SHTDN_REASON_MINOR_SERVICEPACK_UNINSTALL ( 0x00000016 )
92
 
#define SHTDN_REASON_MINOR_HOTFIX_UNINSTALL ( 0x00000017 )
93
 
#define SHTDN_REASON_MINOR_SECURITYFIX_UNINSTALL ( 0x00000018 )
94
 
#define SHTDN_REASON_MINOR_MMC ( 0x00000019 )
95
 
#define SHTDN_REASON_MINOR_TERMSRV ( 0x00000020 )
96
 
#endif
97
 
;
98
 
 
99
 
/* bitmap initshutdown_ReasonFlags */
100
 
#define SHTDN_REASON_FLAG_USER_DEFINED ( 0x40000000 )
101
 
#define SHTDN_REASON_FLAG_PLANNED ( 0x80000000 )
102
 
 
103
 
 
104
 
struct initshutdown_Init {
105
 
        struct {
106
 
                uint16_t *hostname;/* [unique] */
107
 
                struct lsa_StringLarge *message;/* [unique] */
108
 
                uint32_t timeout;
109
 
                uint8_t force_apps;
110
 
                uint8_t do_reboot;
111
 
        } in;
112
 
 
113
 
        struct {
114
 
                WERROR result;
115
 
        } out;
116
 
 
117
 
};
118
 
 
119
 
 
120
 
struct initshutdown_Abort {
121
 
        struct {
122
 
                uint16_t *server;/* [unique] */
123
 
        } in;
124
 
 
125
 
        struct {
126
 
                WERROR result;
127
 
        } out;
128
 
 
129
 
};
130
 
 
131
 
 
132
 
struct initshutdown_InitEx {
133
 
        struct {
134
 
                uint16_t *hostname;/* [unique] */
135
 
                struct lsa_StringLarge *message;/* [unique] */
136
 
                uint32_t timeout;
137
 
                uint8_t force_apps;
138
 
                uint8_t do_reboot;
139
 
                uint32_t reason;
140
 
        } in;
141
 
 
142
 
        struct {
143
 
                WERROR result;
144
 
        } out;
145
 
 
146
 
};
147
 
 
148
 
#endif /* _HEADER_initshutdown */