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 */ 13bc62fa03SMichael Roth #ifndef QGA_SERVICE_H 14bc62fa03SMichael Roth #define QGA_SERVICE_H 15bc62fa03SMichael Roth 16bc62fa03SMichael Roth #include <windows.h> 17bc62fa03SMichael Roth 18bc62fa03SMichael Roth #define QGA_SERVICE_DISPLAY_NAME "QEMU Guest Agent" 19bc62fa03SMichael Roth #define QGA_SERVICE_NAME "qemu-ga" 20bc62fa03SMichael Roth #define QGA_SERVICE_DESCRIPTION "Enables integration with QEMU machine emulator and virtualizer." 21bc62fa03SMichael Roth 22bc62fa03SMichael Roth typedef struct GAService { 23bc62fa03SMichael Roth SERVICE_STATUS status; 24bc62fa03SMichael Roth SERVICE_STATUS_HANDLE status_handle; 25bc62fa03SMichael Roth } GAService; 26bc62fa03SMichael Roth 27*a839ee77SLaszlo Ersek int ga_install_service(const char *path, const char *logfile, 28*a839ee77SLaszlo Ersek const char *state_dir); 29bc62fa03SMichael Roth int ga_uninstall_service(void); 30bc62fa03SMichael Roth 31bc62fa03SMichael Roth #endif 32