~zulcss/samba/server-dailies-3.4

« back to all changes in this revision

Viewing changes to librpc/idl/mgmt.idl

  • Committer: Chuck Short
  • Date: 2010-09-28 20:38:39 UTC
  • Revision ID: zulcss@ubuntu.com-20100928203839-pgjulytsi9ue63x1
Initial version

Show diffs side-by-side

added added

removed removed

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