1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- /******************************************************************************
- Copyright (C) 2019 by Jason Francis <[email protected]>
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 2 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
- ******************************************************************************/
- #pragma once
- #include "util/c99defs.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- enum obs_nix_platform_type {
- OBS_NIX_PLATFORM_X11_GLX,
- OBS_NIX_PLATFORM_X11_EGL,
- #ifdef ENABLE_WAYLAND
- OBS_NIX_PLATFORM_WAYLAND,
- #endif
- };
- /**
- * Sets the Unix platform.
- * @param platform The platform to select.
- */
- EXPORT void obs_set_nix_platform(enum obs_nix_platform_type platform);
- /**
- * Gets the host platform.
- */
- EXPORT enum obs_nix_platform_type obs_get_nix_platform(void);
- /**
- * Sets the host platform's display connection.
- * @param display The host display connection.
- */
- EXPORT void obs_set_nix_platform_display(void *display);
- /**
- * Gets the host platform's display connection.
- */
- EXPORT void *obs_get_nix_platform_display(void);
- #ifdef __cplusplus
- }
- #endif
|