Statistics
| Branch: | Revision:

root / qga / service-win32.h @ dc1c13d9

History | View | Annotate | Download (809 Bytes)

1 bc62fa03 Michael Roth
/*
2 bc62fa03 Michael Roth
 * QEMU Guest Agent helpers for win32 service management
3 bc62fa03 Michael Roth
 *
4 bc62fa03 Michael Roth
 * Copyright IBM Corp. 2012
5 bc62fa03 Michael Roth
 *
6 bc62fa03 Michael Roth
 * Authors:
7 bc62fa03 Michael Roth
 *  Gal Hammer        <ghammer@redhat.com>
8 bc62fa03 Michael Roth
 *  Michael Roth      <mdroth@linux.vnet.ibm.com>
9 bc62fa03 Michael Roth
 *
10 bc62fa03 Michael Roth
 * This work is licensed under the terms of the GNU GPL, version 2 or later.
11 bc62fa03 Michael Roth
 * See the COPYING file in the top-level directory.
12 bc62fa03 Michael Roth
 */
13 bc62fa03 Michael Roth
#ifndef QGA_SERVICE_H
14 bc62fa03 Michael Roth
#define QGA_SERVICE_H
15 bc62fa03 Michael Roth
16 bc62fa03 Michael Roth
#include <windows.h>
17 bc62fa03 Michael Roth
18 bc62fa03 Michael Roth
#define QGA_SERVICE_DISPLAY_NAME "QEMU Guest Agent"
19 bc62fa03 Michael Roth
#define QGA_SERVICE_NAME         "qemu-ga"
20 bc62fa03 Michael Roth
#define QGA_SERVICE_DESCRIPTION  "Enables integration with QEMU machine emulator and virtualizer."
21 bc62fa03 Michael Roth
22 bc62fa03 Michael Roth
typedef struct GAService {
23 bc62fa03 Michael Roth
    SERVICE_STATUS status;
24 bc62fa03 Michael Roth
    SERVICE_STATUS_HANDLE status_handle;
25 bc62fa03 Michael Roth
} GAService;
26 bc62fa03 Michael Roth
27 bc62fa03 Michael Roth
int ga_install_service(const char *path, const char *logfile);
28 bc62fa03 Michael Roth
int ga_uninstall_service(void);
29 bc62fa03 Michael Roth
30 bc62fa03 Michael Roth
#endif