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