2015-04-15 16:13:22 +02:00
|
|
|
/* -*- c -*- */
|
2016-01-25 16:30:27 +01:00
|
|
|
enum {
|
|
|
|
VIR_TYPED_PARAM_INT = 1,
|
|
|
|
VIR_TYPED_PARAM_UINT = 2,
|
|
|
|
VIR_TYPED_PARAM_LLONG = 3,
|
|
|
|
VIR_TYPED_PARAM_ULLONG = 4,
|
|
|
|
VIR_TYPED_PARAM_DOUBLE = 5,
|
|
|
|
VIR_TYPED_PARAM_BOOLEAN = 6,
|
|
|
|
VIR_TYPED_PARAM_STRING = 7,
|
|
|
|
};
|
|
|
|
struct admin_typed_param_value {
|
|
|
|
int type;
|
|
|
|
union {
|
|
|
|
int i;
|
|
|
|
u_int ui;
|
|
|
|
int64_t l;
|
|
|
|
uint64_t ul;
|
|
|
|
double d;
|
|
|
|
int b;
|
|
|
|
admin_nonnull_string s;
|
|
|
|
} admin_typed_param_value_u;
|
|
|
|
};
|
|
|
|
struct admin_typed_param {
|
|
|
|
admin_nonnull_string field;
|
|
|
|
admin_typed_param_value value;
|
|
|
|
};
|
2015-08-13 16:20:27 +02:00
|
|
|
struct admin_nonnull_server {
|
|
|
|
admin_nonnull_string name;
|
|
|
|
};
|
2015-12-10 13:46:45 +01:00
|
|
|
struct admin_connect_open_args {
|
2015-04-15 16:13:22 +02:00
|
|
|
u_int flags;
|
|
|
|
};
|
2015-12-10 13:46:45 +01:00
|
|
|
struct admin_connect_get_lib_version_ret {
|
2015-10-05 17:17:51 +02:00
|
|
|
uint64_t libVer;
|
|
|
|
};
|
2015-08-14 09:17:01 +02:00
|
|
|
struct admin_connect_list_servers_args {
|
|
|
|
u_int need_results;
|
|
|
|
u_int flags;
|
|
|
|
};
|
|
|
|
struct admin_connect_list_servers_ret {
|
|
|
|
struct {
|
|
|
|
u_int servers_len;
|
|
|
|
admin_nonnull_server * servers_val;
|
|
|
|
} servers;
|
|
|
|
u_int ret;
|
|
|
|
};
|
2016-03-01 17:33:37 +01:00
|
|
|
struct admin_connect_lookup_server_args {
|
|
|
|
admin_nonnull_string name;
|
|
|
|
u_int flags;
|
|
|
|
};
|
|
|
|
struct admin_connect_lookup_server_ret {
|
|
|
|
admin_nonnull_server srv;
|
|
|
|
};
|
2015-04-15 16:13:22 +02:00
|
|
|
enum admin_procedure {
|
2015-12-10 13:46:45 +01:00
|
|
|
ADMIN_PROC_CONNECT_OPEN = 1,
|
|
|
|
ADMIN_PROC_CONNECT_CLOSE = 2,
|
|
|
|
ADMIN_PROC_CONNECT_GET_LIB_VERSION = 3,
|
2015-08-14 09:17:01 +02:00
|
|
|
ADMIN_PROC_CONNECT_LIST_SERVERS = 4,
|
2016-03-01 17:33:37 +01:00
|
|
|
ADMIN_PROC_CONNECT_LOOKUP_SERVER = 5,
|
2015-04-15 16:13:22 +02:00
|
|
|
};
|