2010-04-17 02:09:25 +00:00
|
|
|
/* -*- c -*-
|
|
|
|
* qemu_protocol.x: private protocol for communicating between
|
|
|
|
* remote_internal driver and libvirtd. This protocol is
|
|
|
|
* internal and may change at any time.
|
|
|
|
*
|
2011-07-08 16:56:15 +00:00
|
|
|
* Copyright (C) 2010-2011 Red Hat, Inc.
|
2010-04-17 02:09:25 +00:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*
|
|
|
|
* Author: Chris Lalancette <clalance@redhat.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
%#include "internal.h"
|
|
|
|
%#include "remote_protocol.h"
|
|
|
|
%#include <arpa/inet.h>
|
|
|
|
|
|
|
|
/*----- Protocol. -----*/
|
|
|
|
struct qemu_monitor_command_args {
|
2011-04-22 13:40:31 +00:00
|
|
|
remote_nonnull_domain dom;
|
2010-04-17 02:09:25 +00:00
|
|
|
remote_nonnull_string cmd;
|
2011-07-08 16:56:15 +00:00
|
|
|
unsigned int flags;
|
2010-04-17 02:09:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct qemu_monitor_command_ret {
|
|
|
|
remote_nonnull_string result;
|
|
|
|
};
|
|
|
|
|
2011-05-05 16:31:58 +00:00
|
|
|
|
|
|
|
struct qemu_domain_attach_args {
|
|
|
|
unsigned int pid;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct qemu_domain_attach_ret {
|
|
|
|
remote_nonnull_domain dom;
|
|
|
|
};
|
|
|
|
|
2010-04-17 02:09:25 +00:00
|
|
|
/* Define the program number, protocol version and procedure numbers here. */
|
|
|
|
const QEMU_PROGRAM = 0x20008087;
|
|
|
|
const QEMU_PROTOCOL_VERSION = 1;
|
|
|
|
|
|
|
|
enum qemu_procedure {
|
2011-05-11 19:28:39 +00:00
|
|
|
/* Each function must have a two-word comment. The first word is
|
2011-07-17 04:41:39 +00:00
|
|
|
* whether gendispatch.pl handles daemon, the second whether
|
2011-05-11 19:28:39 +00:00
|
|
|
* it handles src/remote. */
|
2011-05-05 16:31:58 +00:00
|
|
|
QEMU_PROC_MONITOR_COMMAND = 1, /* skipgen skipgen */
|
|
|
|
QEMU_PROC_DOMAIN_ATTACH = 2 /* autogen autogen */
|
2010-04-17 02:09:25 +00:00
|
|
|
};
|