m4: Fix check for yajl.pc
[libvirt/ericb.git] / src / admin_protocol-structs
bloba6c53807ee9893f79801d72c968a1a7b73007136
1 /* -*- c -*- */
2 enum {
3         VIR_TYPED_PARAM_INT = 1,
4         VIR_TYPED_PARAM_UINT = 2,
5         VIR_TYPED_PARAM_LLONG = 3,
6         VIR_TYPED_PARAM_ULLONG = 4,
7         VIR_TYPED_PARAM_DOUBLE = 5,
8         VIR_TYPED_PARAM_BOOLEAN = 6,
9         VIR_TYPED_PARAM_STRING = 7,
11 struct admin_typed_param_value {
12         int                        type;
13         union {
14                 int                i;
15                 u_int              ui;
16                 int64_t            l;
17                 uint64_t           ul;
18                 double             d;
19                 int                b;
20                 admin_nonnull_string s;
21         } admin_typed_param_value_u;
23 struct admin_typed_param {
24         admin_nonnull_string       field;
25         admin_typed_param_value    value;
27 struct admin_nonnull_server {
28         admin_nonnull_string       name;
30 struct admin_nonnull_client {
31         admin_nonnull_server       srv;
32         uint64_t                   id;
33         int64_t                    timestamp;
34         u_int                      transport;
36 struct admin_connect_open_args {
37         u_int                      flags;
39 struct admin_connect_get_lib_version_ret {
40         uint64_t                   libVer;
42 struct admin_connect_list_servers_args {
43         u_int                      need_results;
44         u_int                      flags;
46 struct admin_connect_list_servers_ret {
47         struct {
48                 u_int              servers_len;
49                 admin_nonnull_server * servers_val;
50         } servers;
51         u_int                      ret;
53 struct admin_connect_lookup_server_args {
54         admin_nonnull_string       name;
55         u_int                      flags;
57 struct admin_connect_lookup_server_ret {
58         admin_nonnull_server       srv;
60 struct admin_server_get_threadpool_parameters_args {
61         admin_nonnull_server       srv;
62         u_int                      flags;
64 struct admin_server_get_threadpool_parameters_ret {
65         struct {
66                 u_int              params_len;
67                 admin_typed_param * params_val;
68         } params;
70 struct admin_server_set_threadpool_parameters_args {
71         admin_nonnull_server       srv;
72         struct {
73                 u_int              params_len;
74                 admin_typed_param * params_val;
75         } params;
76         u_int                      flags;
78 struct admin_server_list_clients_args {
79         admin_nonnull_server       srv;
80         u_int                      need_results;
81         u_int                      flags;
83 struct admin_server_list_clients_ret {
84         struct {
85                 u_int              clients_len;
86                 admin_nonnull_client * clients_val;
87         } clients;
88         u_int                      ret;
90 struct admin_server_lookup_client_args {
91         admin_nonnull_server       srv;
92         uint64_t                   id;
93         u_int                      flags;
95 struct admin_server_lookup_client_ret {
96         admin_nonnull_client       clnt;
98 struct admin_client_get_info_args {
99         admin_nonnull_client       clnt;
100         u_int                      flags;
102 struct admin_client_get_info_ret {
103         struct {
104                 u_int              params_len;
105                 admin_typed_param * params_val;
106         } params;
108 struct admin_client_close_args {
109         admin_nonnull_client       clnt;
110         u_int                      flags;
112 struct admin_server_get_client_limits_args {
113         admin_nonnull_server       srv;
114         u_int                      flags;
116 struct admin_server_get_client_limits_ret {
117         struct {
118                 u_int              params_len;
119                 admin_typed_param * params_val;
120         } params;
122 struct admin_server_set_client_limits_args {
123         admin_nonnull_server       srv;
124         struct {
125                 u_int              params_len;
126                 admin_typed_param * params_val;
127         } params;
128         u_int                      flags;
130 struct admin_connect_get_logging_outputs_args {
131         u_int                      flags;
133 struct admin_connect_get_logging_outputs_ret {
134         admin_nonnull_string       outputs;
135         u_int                      noutputs;
137 struct admin_connect_get_logging_filters_args {
138         u_int                      flags;
140 struct admin_connect_get_logging_filters_ret {
141         admin_string               filters;
142         u_int                      nfilters;
144 struct admin_connect_set_logging_outputs_args {
145         admin_string               outputs;
146         u_int                      flags;
148 struct admin_connect_set_logging_filters_args {
149         admin_string               filters;
150         u_int                      flags;
152 enum admin_procedure {
153         ADMIN_PROC_CONNECT_OPEN = 1,
154         ADMIN_PROC_CONNECT_CLOSE = 2,
155         ADMIN_PROC_CONNECT_GET_LIB_VERSION = 3,
156         ADMIN_PROC_CONNECT_LIST_SERVERS = 4,
157         ADMIN_PROC_CONNECT_LOOKUP_SERVER = 5,
158         ADMIN_PROC_SERVER_GET_THREADPOOL_PARAMETERS = 6,
159         ADMIN_PROC_SERVER_SET_THREADPOOL_PARAMETERS = 7,
160         ADMIN_PROC_SERVER_LIST_CLIENTS = 8,
161         ADMIN_PROC_SERVER_LOOKUP_CLIENT = 9,
162         ADMIN_PROC_CLIENT_GET_INFO = 10,
163         ADMIN_PROC_CLIENT_CLOSE = 11,
164         ADMIN_PROC_SERVER_GET_CLIENT_LIMITS = 12,
165         ADMIN_PROC_SERVER_SET_CLIENT_LIMITS = 13,
166         ADMIN_PROC_CONNECT_GET_LOGGING_OUTPUTS = 14,
167         ADMIN_PROC_CONNECT_GET_LOGGING_FILTERS = 15,
168         ADMIN_PROC_CONNECT_SET_LOGGING_OUTPUTS = 16,
169         ADMIN_PROC_CONNECT_SET_LOGGING_FILTERS = 17,