[55401] | 1 | /* $Id: Helper.h 98103 2023-01-17 14:15:46Z vboxsync $ */
|
---|
[1] | 2 | /** @file
|
---|
| 3 | *
|
---|
| 4 | * VBox frontends: VBoxSDL (simple frontend based on SDL):
|
---|
| 5 | * Miscellaneous helpers header
|
---|
| 6 | */
|
---|
| 7 |
|
---|
| 8 | /*
|
---|
[98103] | 9 | * Copyright (C) 2006-2023 Oracle and/or its affiliates.
|
---|
[1] | 10 | *
|
---|
[96407] | 11 | * This file is part of VirtualBox base platform packages, as
|
---|
| 12 | * available from https://www.virtualbox.org.
|
---|
| 13 | *
|
---|
| 14 | * This program is free software; you can redistribute it and/or
|
---|
| 15 | * modify it under the terms of the GNU General Public License
|
---|
| 16 | * as published by the Free Software Foundation, in version 3 of the
|
---|
| 17 | * License.
|
---|
| 18 | *
|
---|
| 19 | * This program is distributed in the hope that it will be useful, but
|
---|
| 20 | * WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
| 22 | * General Public License for more details.
|
---|
| 23 | *
|
---|
| 24 | * You should have received a copy of the GNU General Public License
|
---|
| 25 | * along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
| 26 | *
|
---|
| 27 | * SPDX-License-Identifier: GPL-3.0-only
|
---|
[1] | 28 | */
|
---|
| 29 |
|
---|
[76582] | 30 | #ifndef VBOX_INCLUDED_SRC_VBoxSDL_Helper_h
|
---|
| 31 | #define VBOX_INCLUDED_SRC_VBoxSDL_Helper_h
|
---|
[76532] | 32 | #ifndef RT_WITHOUT_PRAGMA_ONCE
|
---|
| 33 | # pragma once
|
---|
| 34 | #endif
|
---|
[1] | 35 |
|
---|
[3669] | 36 | #if defined(VBOX_WITH_XPCOM) && !defined(RT_OS_DARWIN) && !defined(RT_OS_OS2)
|
---|
[1] | 37 |
|
---|
[967] | 38 | /** Indicates that the XPCOM queue thread is needed for this platform. */
|
---|
| 39 | # define USE_XPCOM_QUEUE_THREAD 1
|
---|
| 40 |
|
---|
[1] | 41 | /**
|
---|
| 42 | * Creates the XPCOM event thread
|
---|
| 43 | *
|
---|
| 44 | * @returns VBOX status code
|
---|
| 45 | * @param eqFD XPCOM event queue file descriptor
|
---|
| 46 | */
|
---|
| 47 | int startXPCOMEventQueueThread(int eqFD);
|
---|
| 48 |
|
---|
[3289] | 49 | /*
|
---|
| 50 | * Notify the XPCOM thread that we consumed an XPCOM event
|
---|
| 51 | */
|
---|
| 52 | void consumedXPCOMUserEvent(void);
|
---|
| 53 |
|
---|
[1] | 54 | /**
|
---|
| 55 | * Signal to the XPCOM even queue thread that it should select for more events.
|
---|
| 56 | */
|
---|
| 57 | void signalXPCOMEventQueueThread(void);
|
---|
| 58 |
|
---|
| 59 | /**
|
---|
| 60 | * Indicates to the XPCOM thread that it should terminate now.
|
---|
| 61 | */
|
---|
| 62 | void terminateXPCOMQueueThread(void);
|
---|
| 63 |
|
---|
[3669] | 64 | #endif /* defined(VBOX_WITH_XPCOM) && !defined(RT_OS_DARWIN) && !defined(RT_OS_OS2) */
|
---|
[1] | 65 |
|
---|
[76582] | 66 | #endif /* !VBOX_INCLUDED_SRC_VBoxSDL_Helper_h */
|
---|
[1] | 67 |
|
---|