Registry server LDB backend: Don't make copies of the same type
[tprouty/samba.git] / source3 / librpc / idl / initshutdown.idl
1 #include "idl_types.h"
2
3 /*
4   initshutdown interface definition
5 */
6
7
8   uuid("894de0c0-0d55-11d3-a322-00c04fa321a1"),
9   version(1.0),
10   endpoint("ncacn_np:[\\pipe\\InitShutdown]"),
11   pointer_default(unique),
12   helpstring("Init shutdown service")
13 ] interface initshutdown
14 {
15         typedef struct {
16                 [value(strlen_m_term(name))] uint32 name_size;
17                 [flag(STR_LEN4|STR_NOTERM)] string name;
18         } initshutdown_String_sub;
19
20         typedef [public] struct {
21                 [value(strlen_m(name->name)*2)] uint16 name_len;
22                 [value(strlen_m_term(name->name)*2)] uint16 name_size;
23                 initshutdown_String_sub *name;
24         } initshutdown_String;
25
26         WERROR initshutdown_Init(
27                 [in,unique] uint16 *hostname,
28                 [in,unique] initshutdown_String *message,
29                 [in] uint32 timeout,
30                 [in] uint8 force_apps,
31                 [in] uint8 do_reboot
32         );
33
34         WERROR initshutdown_Abort(
35                 [in,unique] uint16 *server
36         );
37
38         WERROR initshutdown_InitEx(
39                 [in,unique] uint16 *hostname,
40                 [in,unique] initshutdown_String *message,
41                 [in] uint32 timeout,
42                 [in] uint8 force_apps,
43                 [in] uint8 do_reboot,
44                 [in] uint32 reason
45         );
46 }