2 * virt-agent - host/guest RPC client functions
4 * Copyright IBM Corp. 2010
7 * Adam Litke <aglitke@linux.vnet.ibm.com>
8 * Michael Roth <mdroth@linux.vnet.ibm.com>
10 * This work is licensed under the terms of the GNU GPL, version 2 or later.
11 * See the COPYING file in the top-level directory.
19 #include "virtagent-common.h"
21 #define GUEST_AGENT_PATH_CLIENT "/tmp/virtagent-guest-client.sock"
22 #define HOST_AGENT_PATH_CLIENT "/tmp/virtagent-host-client.sock"
23 #define VA_MAX_CHUNK_SIZE 4096 /* max bytes at a time for get/send file */
25 int va_client_init(VPDriver
*vp_drv
, bool is_host
);
26 int va_client_init_capabilities(void);
27 void do_agent_viewfile_print(Monitor
*mon
, const QObject
*qobject
);
28 int do_agent_viewfile(Monitor
*mon
, const QDict
*mon_params
,
29 MonitorCompletion cb
, void *opaque
);
30 void do_agent_viewdmesg_print(Monitor
*mon
, const QObject
*qobject
);
31 int do_agent_viewdmesg(Monitor
*mon
, const QDict
*mon_params
,
32 MonitorCompletion cb
, void *opaque
);
33 int do_agent_shutdown(Monitor
*mon
, const QDict
*mon_params
,
34 MonitorCompletion cb
, void *opaque
);
35 void do_agent_ping_print(Monitor
*mon
, const QObject
*qobject
);
36 int do_agent_ping(Monitor
*mon
, const QDict
*mon_params
,
37 MonitorCompletion cb
, void *opaque
);
38 void do_agent_capabilities_print(Monitor
*mon
, const QObject
*qobject
);
39 int do_agent_capabilities(Monitor
*mon
, const QDict
*mon_params
,
40 MonitorCompletion cb
, void *opaque
);
41 int va_send_hello(void);
43 #endif /* VIRTAGENT_H */