r24532: rename struct dcerpc_syntax_id into struct ndr_syntax_id
[kai/samba.git] / source4 / librpc / idl / mgmt.idl
1 /*
2   dcerpc remote management interface
3 */
4
5 [
6   uuid("afa8bd80-7d8a-11c9-bef4-08002b102989"), 
7   version(1.0),
8   pointer_default(unique),
9   helpstring("DCE/RPC Remote Management")
10
11 interface mgmt
12 {
13         typedef struct {
14                 ndr_syntax_id *id;
15         } ndr_syntax_id_p;
16
17         typedef struct {
18                 uint32              count;
19                 [size_is(count)] ndr_syntax_id_p if_id[*];
20         } rpc_if_id_vector_t;
21
22
23         /***********************/
24         /* Function 0x00       */
25         WERROR mgmt_inq_if_ids (
26                 [out]       rpc_if_id_vector_t      **if_id_vector
27                 );
28
29
30
31         /***********************/
32         /* Function 0x01       */
33
34
35         /* these are the array indexes in the statistics array */
36         const int MGMT_STATS_CALLS_IN       = 0;
37         const int MGMT_STATS_CALLS_OUT      = 1;
38         const int MGMT_STATS_PKTS_IN        = 2;
39         const int MGMT_STATS_PKTS_OUT       = 3;
40         const int MGMT_STATS_ARRAY_MAX_SIZE = 4;
41
42         typedef struct {
43                 uint32 count;
44                 [size_is(count)] uint32 statistics[*];
45         } mgmt_statistics;
46
47         WERROR mgmt_inq_stats (
48                 [in]        uint32             max_count,
49                 [in]        uint32             unknown,
50                 [out,ref]   mgmt_statistics    *statistics
51                 );
52
53
54         /***********************/
55         /* Function 0x02       */
56         boolean32 mgmt_is_server_listening (
57                 [out,ref]       error_status_t          *status
58                 );
59
60
61         /***********************/
62         /* Function 0x03       */
63         WERROR mgmt_stop_server_listening ();
64
65
66         /***********************/
67         /* Function 0x04       */
68         WERROR mgmt_inq_princ_name (
69                 [in]        uint32                  authn_proto,
70                 [in]        uint32                  princ_name_size,
71                 [out]       [string,charset(DOS)] uint8 princ_name[]
72                 );
73 }