Michael Roth | bc62fa0 | 2012-01-21 16:42:27 -0600 | [diff] [blame] | 1 | /* |
| 2 | * QEMU Guest Agent helpers for win32 service management |
| 3 | * |
| 4 | * Copyright IBM Corp. 2012 |
| 5 | * |
| 6 | * Authors: |
| 7 | * Gal Hammer <ghammer@redhat.com> |
| 8 | * Michael Roth <mdroth@linux.vnet.ibm.com> |
| 9 | * |
| 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. |
| 12 | */ |
Markus Armbruster | 121d071 | 2016-06-29 10:12:57 +0200 | [diff] [blame] | 13 | |
| 14 | #ifndef QGA_SERVICE_WIN32_H |
| 15 | #define QGA_SERVICE_WIN32_H |
Michael Roth | bc62fa0 | 2012-01-21 16:42:27 -0600 | [diff] [blame] | 16 | |
| 17 | #include <windows.h> |
| 18 | |
| 19 | #define QGA_SERVICE_DISPLAY_NAME "QEMU Guest Agent" |
| 20 | #define QGA_SERVICE_NAME "qemu-ga" |
| 21 | #define QGA_SERVICE_DESCRIPTION "Enables integration with QEMU machine emulator and virtualizer." |
| 22 | |
Bishara AbuHattoum | b70d6af | 2018-10-07 14:02:23 +0300 | [diff] [blame] | 23 | static const GUID GUID_VIOSERIAL_PORT = { 0x6fde7521, 0x1b65, 0x48ae, |
| 24 | { 0xb6, 0x28, 0x80, 0xbe, 0x62, 0x1, 0x60, 0x26 } }; |
| 25 | |
Michael Roth | bc62fa0 | 2012-01-21 16:42:27 -0600 | [diff] [blame] | 26 | typedef struct GAService { |
| 27 | SERVICE_STATUS status; |
| 28 | SERVICE_STATUS_HANDLE status_handle; |
Bishara AbuHattoum | b70d6af | 2018-10-07 14:02:23 +0300 | [diff] [blame] | 29 | HDEVNOTIFY device_notification_handle; |
Michael Roth | bc62fa0 | 2012-01-21 16:42:27 -0600 | [diff] [blame] | 30 | } GAService; |
| 31 | |
Laszlo Ersek | a839ee7 | 2013-05-18 06:31:53 +0200 | [diff] [blame] | 32 | int ga_install_service(const char *path, const char *logfile, |
| 33 | const char *state_dir); |
Michael Roth | bc62fa0 | 2012-01-21 16:42:27 -0600 | [diff] [blame] | 34 | int ga_uninstall_service(void); |
| 35 | |
| 36 | #endif |