cleanup: Switch to pragma once

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3157>
This commit is contained in:
Bilal Elmoussaoui
2023-07-21 15:37:20 +02:00
committed by Marge Bot
parent d291d4a733
commit ead9a3024c
721 changed files with 782 additions and 3008 deletions

View File

@ -22,8 +22,7 @@
* Author: Soren Sandmann <sandmann@redhat.com>
*/
#ifndef EDID_H
#define EDID_H
#pragma once
#include <stdint.h>
@ -98,5 +97,3 @@ struct _MetaEdidInfo
META_EXPORT_TEST
MetaEdidInfo *meta_edid_info_new_parse (const uint8_t *edid,
size_t size);
#endif

View File

@ -16,8 +16,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __GSM_INHIBITOR_FLAG_H__
#define __GSM_INHIBITOR_FLAG_H__
#pragma once
#include <glib-object.h>
@ -32,5 +31,3 @@ typedef enum {
} GsmInhibitorFlag;
G_END_DECLS
#endif /* __GSM_INHIBITOR_FLAG_H__ */

View File

@ -22,9 +22,7 @@
* Jasper St. Pierre <jstpierre@mecheye.net>
*/
#ifndef META_BACKEND_PRIVATE_H
#define META_BACKEND_PRIVATE_H
#pragma once
#include <glib-object.h>
#include <xkbcommon/xkbcommon.h>
@ -215,5 +213,3 @@ void meta_backend_update_from_event (MetaBackend *backend,
char * meta_backend_get_vendor_name (MetaBackend *backend,
const char *pnp_id);
#endif /* META_BACKEND_PRIVATE_H */

View File

@ -18,8 +18,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef META_BACKEND_TYPE_H
#define META_BACKEND_TYPE_H
#pragma once
#include <stdint.h>
#include <stddef.h>
@ -97,5 +96,3 @@ typedef struct _MetaInputCaptureSession MetaInputCaptureSession;
typedef struct _MetaEis MetaEis;
typedef struct _MetaEisClient MetaEisClient;
#endif /* META_BACKEND_TYPE_H */

View File

@ -23,8 +23,7 @@
* Jonas Ådahl <jadahl@gmail.com>
*/
#ifndef META_BARRIER_PRIVATE_H
#define META_BARRIER_PRIVATE_H
#pragma once
#include "core/meta-border.h"
#include "meta/barrier.h"
@ -61,5 +60,3 @@ MetaBorder * meta_barrier_get_border (MetaBarrier *barrier);
MetaBarrierFlags meta_barrier_get_flags (MetaBarrier *barrier);
G_END_DECLS
#endif /* META_BARRIER_PRIVATE_H */

View File

@ -15,8 +15,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef META_COLOR_DEVICE_H
#define META_COLOR_DEVICE_H
#pragma once
#include <glib-object.h>
#include <gio/gio.h>
@ -67,5 +66,3 @@ void meta_color_device_update (MetaColorDevice *color_device,
META_EXPORT_TEST
void meta_set_color_efivar_test_path (const char *path);
#endif /* META_COLOR_DEVICE_H */

View File

@ -15,8 +15,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef META_COLOR_MANAGER_PRIVATE_H
#define META_COLOR_MANAGER_PRIVATE_H
#pragma once
#include <colord.h>
#include <lcms2.h>
@ -41,5 +40,3 @@ META_EXPORT_TEST
int meta_color_manager_get_num_color_devices (MetaColorManager *color_manager);
cmsContext meta_color_manager_get_lcms_context (MetaColorManager *color_manager);
#endif /* META_COLOR_MANAGER_PRIVATE_H */

View File

@ -15,8 +15,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef META_COLOR_MANAGER_H
#define META_COLOR_MANAGER_H
#pragma once
#include <glib-object.h>
@ -38,5 +37,3 @@ MetaColorDevice * meta_color_manager_get_color_device (MetaColorManager *color_m
void meta_color_manager_set_brightness (MetaColorManager *color_manager,
int brightness);
#endif /* META_COLOR_MANAGER_H */

View File

@ -15,8 +15,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef META_COLOR_PROFILE_H
#define META_COLOR_PROFILE_H
#pragma once
#include <colord.h>
#include <glib-object.h>
@ -85,5 +84,3 @@ MetaColorCalibration * meta_color_calibration_new (CdIcc *cd_icc,
const CdMat3x3 *adaptation_matrix);
void meta_color_calibration_free (MetaColorCalibration *color_calibration);
#endif /* META_COLOR_PROFILE_H */

View File

@ -15,8 +15,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef META_COLOR_STORE_H
#define META_COLOR_STORE_H
#pragma once
#include <colord.h>
#include <gio/gio.h>
@ -58,5 +57,3 @@ MetaColorProfile * meta_color_store_get_profile (MetaColorStore *color_store,
META_EXPORT_TEST
gboolean meta_color_store_has_pending_profiles (MetaColorStore *color_store);
#endif /* META_COLOR_STORE_H */

View File

@ -17,8 +17,7 @@
* 02111-1307, USA.
*/
#ifndef META_CRTC_MODE_H
#define META_CRTC_MODE_H
#pragma once
#include <glib-object.h>
#include <stdint.h>
@ -90,5 +89,3 @@ const char * meta_crtc_mode_get_name (MetaCrtcMode *crtc_mode);
META_EXPORT_TEST
const MetaCrtcModeInfo * meta_crtc_mode_get_info (MetaCrtcMode *crtc_mode);
#endif /* META_CRTC_MODE_H */

View File

@ -17,8 +17,7 @@
* 02111-1307, USA.
*/
#ifndef META_CRTC_H
#define META_CRTC_H
#pragma once
#include <glib-object.h>
@ -114,4 +113,3 @@ gboolean meta_gamma_lut_equal (const MetaGammaLut *gamma,
G_DEFINE_AUTOPTR_CLEANUP_FUNC (MetaGammaLut, meta_gamma_lut_free)
#endif /* META_CRTC_H */

View File

@ -22,8 +22,7 @@
* Jasper St. Pierre <jstpierre@mecheye.net>
*/
#ifndef META_CURSOR_RENDERER_H
#define META_CURSOR_RENDERER_H
#pragma once
#include <glib-object.h>
@ -80,5 +79,3 @@ void meta_cursor_renderer_update_stage_overlay (MetaCursorRenderer *renderer,
MetaCursorSprite *cursor_sprite);
MetaBackend * meta_cursor_renderer_get_backend (MetaCursorRenderer *renderer);
#endif /* META_CURSOR_RENDERER_H */

View File

@ -16,8 +16,7 @@
*
*/
#ifndef META_CURSOR_SPRITE_XCURSOR_H
#define META_CURSOR_SPRITE_XCURSOR_H
#pragma once
#include <glib-object.h>
#include <X11/Xcursor/Xcursor.h>
@ -41,5 +40,3 @@ XcursorImage * meta_cursor_sprite_xcursor_get_current_image (MetaCursorSpriteXcu
Cursor meta_create_x_cursor (Display *xdisplay,
MetaCursor cursor);
#endif /* META_CURSOR_SPRITE_XCURSOR_H */

View File

@ -19,8 +19,7 @@
* Author: Giovanni Campagna <gcampagn@redhat.com>
*/
#ifndef META_CURSOR_TRACKER_PRIVATE_H
#define META_CURSOR_TRACKER_PRIVATE_H
#pragma once
#include "backends/meta-cursor.h"
#include "backends/meta-cursor-renderer.h"
@ -60,5 +59,3 @@ void meta_cursor_tracker_unregister_cursor_sprite (MetaCursorTracker *tracker,
MetaCursorSprite *sprite);
GList * meta_cursor_tracker_peek_cursor_sprites (MetaCursorTracker *tracker);
#endif

View File

@ -19,8 +19,7 @@
* Author: Giovanni Campagna <gcampagn@redhat.com>
*/
#ifndef META_CURSOR_H
#define META_CURSOR_H
#pragma once
#include "backends/meta-backend-types.h"
#include "meta/common.h"
@ -93,5 +92,3 @@ gboolean meta_cursor_sprite_is_animated (MetaCursorSprite *sprite);
void meta_cursor_sprite_tick_frame (MetaCursorSprite *sprite);
unsigned int meta_cursor_sprite_get_current_frame_time (MetaCursorSprite *sprite);
#endif /* META_CURSOR_H */

View File

@ -18,8 +18,7 @@
*
*/
#ifndef META_DBUS_SERVICE_MANAGER_H
#define META_DBUS_SERVICE_MANAGER_H
#pragma once
#include <gio/gio.h>
#include <glib-object.h>
@ -54,5 +53,3 @@ MetaBackend * meta_dbus_session_manager_get_backend (MetaDbusSessionManager *ses
GDBusConnection * meta_dbus_session_manager_get_connection (MetaDbusSessionManager *session_manager);
GDBusInterfaceSkeleton * meta_dbus_session_manager_get_interface_skeleton (MetaDbusSessionManager *session_manager);
#endif /* META_DBUS_SERVICE_MANAGER_H */

View File

@ -20,8 +20,7 @@
*
*/
#ifndef META_DBUS_SESSION_WATCHER_H
#define META_DBUS_SESSION_WATCHER_H
#pragma once
#include <glib-object.h>
@ -68,5 +67,3 @@ MetaDbusSessionManager * meta_dbus_session_manager (MetaDbusSessionManager *sess
char * meta_dbus_session_get_peer_name (MetaDbusSession *session);
char * meta_dbus_session_get_id (MetaDbusSession *session);
#endif /* META_DBUS_SESSION_WATCHER_H */

View File

@ -24,8 +24,7 @@
There should be no includes in this file.
*/
#ifndef META_DISPLAY_CONFIG_SHARED_H
#define META_DISPLAY_CONFIG_SHARED_H
#pragma once
typedef enum
{
@ -35,5 +34,3 @@ typedef enum
META_POWER_SAVE_SUSPEND,
META_POWER_SAVE_OFF,
} MetaPowerSave;
#endif /* META_DISPLAY_CONFIG_SHARED_H */

View File

@ -17,8 +17,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef META_DND_PRIVATE__H
#define META_DND_PRIVATE__H
#pragma once
#include <glib.h>
@ -45,5 +44,3 @@ void meta_dnd_wayland_handle_end_modal (MetaCompositor *compositor);
void meta_dnd_wayland_maybe_handle_event (MetaDnd *dnd,
const ClutterEvent *event);
#endif
#endif /* META_DND_PRIVATE_H */

View File

@ -24,8 +24,7 @@
* SOFTWARE.
*/
#ifndef META_EGL_EXT_H
#define META_EGL_EXT_H
#pragma once
#include <EGL/egl.h>
#include <EGL/eglext.h>
@ -99,5 +98,3 @@ typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERRELEASEATTRIBNVPROC) (EGLDi
#define EGL_WL_wayland_eglstream 1
#define EGL_WAYLAND_EGLSTREAM_WL 0x334B
#endif /* EGL_WL_wayland_eglstream */
#endif /* META_EGL_EXT_H */

View File

@ -23,8 +23,7 @@
* Jonas Ådahl <jadahl@gmail.com>
*/
#ifndef META_EGL_H
#define META_EGL_H
#pragma once
#include <EGL/egl.h>
#include <EGL/eglext.h>
@ -274,5 +273,3 @@ gboolean meta_egl_query_display_attrib (MetaEgl *egl,
EGLint attribute,
EGLAttrib *value,
GError **error);
#endif /* META_EGL_H */

View File

@ -20,8 +20,7 @@
*
*/
#ifndef META_EIS_CLIENT_H
#define META_EIS_CLIENT_H
#pragma once
#include <glib-object.h>
@ -39,5 +38,3 @@ MetaEisClient *meta_eis_client_new (MetaEis *meta_eis,
gboolean meta_eis_client_process_event (MetaEisClient *meta_eis_client,
struct eis_event *eis_event);
#endif /* META_EIS_H */

View File

@ -20,8 +20,7 @@
*
*/
#ifndef META_EIS_H
#define META_EIS_H
#pragma once
#include <glib-object.h>
@ -36,5 +35,3 @@ MetaEis * meta_eis_new (MetaBackend *backend);
MetaBackend * meta_eis_get_backend (MetaEis *meta_eis);
int meta_eis_add_client_get_fd (MetaEis *meta_eis);
void meta_eis_remove_all_clients (MetaEis *meta_eis);
#endif /* META_EIS_H */

View File

@ -18,8 +18,7 @@
*
*/
#ifndef META_FD_SOURCE_H
#define META_FD_SOURCE_H
#pragma once
#include <glib.h>
@ -29,5 +28,3 @@ GSource * meta_create_fd_source (int fd,
GSourceFunc dispatch,
gpointer user_data,
GDestroyNotify notify);
#endif /* META_FD_SOURCE_H */

View File

@ -20,8 +20,7 @@
*
*/
#ifndef META_GLES3_TABLE_H
#define META_GLES3_TABLE_H
#pragma once
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
@ -32,5 +31,3 @@ typedef struct _MetaGles3Table
void (* glEGLImageTargetTexture2DOES) (GLenum target,
GLeglImageOES image);
} MetaGles3Table;
#endif /* META_GLES3_TABLE */

View File

@ -20,8 +20,7 @@
*
*/
#ifndef META_GLES3_H
#define META_GLES3_H
#pragma once
#include <glib-object.h>
@ -79,5 +78,3 @@ MetaGles3 * meta_gles3_new (MetaEgl *egl);
g_error_free (_error); \
} \
}
#endif /* META_GLES3_H */

View File

@ -19,8 +19,7 @@
* 02111-1307, USA.
*/
#ifndef META_GPU_H
#define META_GPU_H
#pragma once
#include <glib-object.h>
@ -68,5 +67,3 @@ void meta_gpu_take_crtcs (MetaGpu *gpu,
META_EXPORT_TEST
void meta_gpu_take_modes (MetaGpu *gpu,
GList *modes);
#endif /* META_GPU_H */

View File

@ -16,8 +16,7 @@
*
*/
#ifndef META_IDLE_MANAGER_H
#define META_IDLE_MANAGER_H
#pragma once
#include "backends/meta-backend-types.h"
#include "clutter/clutter.h"
@ -35,5 +34,3 @@ void meta_idle_manager_reset_idle_time (MetaIdleManager *idle_manager);
MetaIdleManager * meta_idle_manager_new (MetaBackend *backend);
void meta_idle_manager_free (MetaIdleManager *idle_manager);
#endif /* META_IDLE_MANAGER_H */

View File

@ -20,8 +20,7 @@
* from gnome-desktop/libgnome-desktop/gnome-idle-monitor.c
*/
#ifndef META_IDLE_MONITOR_PRIVATE_H
#define META_IDLE_MONITOR_PRIVATE_H
#pragma once
#include "core/display-private.h"
#include "meta/meta-idle-monitor.h"
@ -49,5 +48,3 @@ MetaIdleManager * meta_idle_monitor_get_manager (MetaIdleMonitor *monitor);
MetaIdleMonitor * meta_idle_monitor_new (MetaIdleManager *idle_manager,
ClutterInputDevice *device);
#endif /* META_IDLE_MONITOR_PRIVATE_H */

View File

@ -18,8 +18,7 @@
*
*/
#ifndef META_INPUT_CAPTURE_PRIVATE_H
#define META_INPUT_CAPTURE_PRIVATE_H
#pragma once
#include "backends/meta-input-capture.h"
@ -28,5 +27,3 @@ void meta_input_capture_activate (MetaInputCapture *input_capture,
void meta_input_capture_deactivate (MetaInputCapture *input_capture,
MetaInputCaptureSession *session);
#endif /* META_INPUT_CAPTURE_PRIVATE_H */

View File

@ -18,8 +18,7 @@
*
*/
#ifndef META_INPUT_CAPTURE_SESSION_H
#define META_INPUT_CAPTURE_SESSION_H
#pragma once
#include <glib-object.h>
@ -44,5 +43,3 @@ gboolean meta_input_capture_session_process_event (MetaInputCaptureSession *sess
const ClutterEvent *event);
void meta_input_capture_session_notify_cancelled (MetaInputCaptureSession *session);
#endif /* META_INPUT_CAPTURE_SESSION_H */

View File

@ -18,8 +18,7 @@
*
*/
#ifndef META_INPUT_CAPTURE_H
#define META_INPUT_CAPTURE_H
#pragma once
#include "backends/meta-dbus-session-manager.h"
#include "backends/meta-viewport-info.h"
@ -48,5 +47,3 @@ void meta_input_capture_notify_cancelled (MetaInputCapture *input_capture);
gboolean meta_input_capture_process_event (MetaInputCapture *input_capture,
const ClutterEvent *event);
#endif /* META_INPUT_CAPTURE_H */

View File

@ -16,8 +16,8 @@
*
* Author: Carlos Garnacho <carlosg@gnome.org>
*/
#ifndef META_INPUT_DEVICE_H
#define META_INPUT_DEVICE_H
#pragma once
#include <glib-object.h>
@ -47,5 +47,3 @@ WacomDevice * meta_input_device_get_wacom_device (MetaInputDevice *input_device)
#endif
MetaBackend * meta_input_device_get_backend (MetaInputDevice *input_device);
#endif /* META_INPUT_DEVICE_H */

View File

@ -19,8 +19,7 @@
* Author: Carlos Garnacho <carlosg@gnome.org>
*/
#ifndef META_INPUT_MAPPER_H
#define META_INPUT_MAPPER_H
#pragma once
#include <clutter/clutter.h>
@ -51,5 +50,3 @@ meta_input_mapper_get_device_logical_monitor (MetaInputMapper *mapper,
GSettings * meta_input_mapper_get_tablet_settings (MetaInputMapper *mapper,
ClutterInputDevice *device);
#endif /* META_INPUT_MAPPER_H */

View File

@ -19,8 +19,7 @@
* Author: Carlos Garnacho <carlosg@gnome.org>
*/
#ifndef META_INPUT_SETTINGS_PRIVATE_H
#define META_INPUT_SETTINGS_PRIVATE_H
#pragma once
#include <gdesktop-enums.h>
@ -185,5 +184,3 @@ void meta_input_settings_notify_kbd_a11y_change (MetaInputSettings *input_se
MetaKeyboardA11yFlags what_changed);
MetaBackend * meta_input_settings_get_backend (MetaInputSettings *input_settings);
#endif /* META_INPUT_SETTINGS_PRIVATE_H */

View File

@ -18,11 +18,8 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef META_KEYMAP_UTILS_H
#define META_KEYMAP_UTILS_H
#pragma once
#include <xkbcommon/xkbcommon.h>
struct xkb_context * meta_create_xkb_context (void);
#endif /* META_KEYMAP_UTILS_H */

View File

@ -19,8 +19,7 @@
* 02111-1307, USA.
*/
#ifndef META_LOGICAL_MONITOR_H
#define META_LOGICAL_MONITOR_H
#pragma once
#include <glib-object.h>
@ -103,5 +102,3 @@ gboolean meta_logical_monitor_has_neighbor (MetaLogicalMonitor *logical_monito
void meta_logical_monitor_foreach_crtc (MetaLogicalMonitor *logical_monitor,
MetaLogicalMonitorCrtcFunc func,
gpointer user_data);
#endif /* META_LOGICAL_MONITOR_H */

View File

@ -19,8 +19,7 @@
* 02111-1307, USA.
*/
#ifndef META_MONITOR_CONFIG_MANAGER_H
#define META_MONITOR_CONFIG_MANAGER_H
#pragma once
#include "backends/meta-monitor.h"
#include "backends/meta-monitor-manager-private.h"
@ -216,5 +215,3 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC (MetaLogicalMonitorConfig,
meta_logical_monitor_config_free)
G_DEFINE_AUTOPTR_CLEANUP_FUNC (MetaMonitorsConfigKey,
meta_monitors_config_key_free)
#endif /* META_MONITOR_CONFIG_MANAGER_H */

View File

@ -19,8 +19,7 @@
* 02111-1307, USA.
*/
#ifndef META_MONITOR_CONFIG_MIGRATION_H
#define META_MONITOR_CONFIG_MIGRATION_H
#pragma once
#include "backends/meta-monitor-manager-private.h"
@ -37,5 +36,3 @@ META_EXPORT_TEST
gboolean meta_finish_monitors_config_migration (MetaMonitorManager *monitor_manager,
MetaMonitorsConfig *config,
GError **error);
#endif /* META_MONITOR_CONFIG_MIGRATION_H */

View File

@ -19,8 +19,7 @@
* 02111-1307, USA.
*/
#ifndef META_MONITOR_CONFIG_STORE_H
#define META_MONITOR_CONFIG_STORE_H
#pragma once
#include <glib-object.h>
@ -77,5 +76,3 @@ void meta_monitor_config_store_reset (MetaMonitorConfigStore *config_store);
META_EXPORT_TEST
const MetaMonitorConfigPolicy * meta_monitor_config_store_get_policy (MetaMonitorConfigStore *config_store);
#endif /* META_MONITOR_CONFIG_STORE_H */

View File

@ -20,8 +20,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef META_MONITOR_MANAGER_DUMMY_H
#define META_MONITOR_MANAGER_DUMMY_H
#pragma once
#include "backends/meta-crtc.h"
#include "backends/meta-gpu.h"
@ -44,5 +43,3 @@ G_DECLARE_FINAL_TYPE (MetaMonitorManagerDummy, meta_monitor_manager_dummy,
#define META_TYPE_GPU_DUMMY (meta_gpu_dummy_get_type ())
G_DECLARE_FINAL_TYPE (MetaGpuDummy, meta_gpu_dummy, META, GPU_DUMMY, MetaGpu)
#endif /* META_MONITOR_MANAGER_DUMMY_H */

View File

@ -21,8 +21,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef META_MONITOR_MANAGER_PRIVATE_H
#define META_MONITOR_MANAGER_PRIVATE_H
#pragma once
#include <cogl/cogl.h>
#include <graphene.h>
@ -435,5 +434,3 @@ MetaViewportInfo * meta_monitor_manager_get_viewports (MetaMonitorManager *manag
GList * meta_monitor_manager_get_virtual_monitors (MetaMonitorManager *manager);
void meta_monitor_manager_maybe_emit_privacy_screen_change (MetaMonitorManager *manager);
#endif /* META_MONITOR_MANAGER_PRIVATE_H */

View File

@ -16,8 +16,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef META_MONITOR_TRANSFORM_H
#define META_MONITOR_TRANSFORM_H
#pragma once
#include <glib-object.h>
@ -74,5 +73,3 @@ void meta_monitor_transform_transform_point (MetaMonitorTransform transform,
void meta_monitor_transform_transform_matrix (MetaMonitorTransform transform,
graphene_matrix_t *matrix);
#endif /* META_MONITOR_TRANSFORM_H */

View File

@ -19,8 +19,7 @@
* 02111-1307, USA.
*/
#ifndef META_MONITOR_H
#define META_MONITOR_H
#pragma once
#include <glib-object.h>
@ -324,5 +323,3 @@ gboolean meta_parse_monitor_mode (const char *string,
int *out_height,
float *out_refresh_rate,
float fallback_refresh_rate);
#endif /* META_MONITOR_H */

View File

@ -19,8 +19,7 @@
* 02111-1307, USA.
*/
#ifndef META_ORIENTATION_MANAGER_H
#define META_ORIENTATION_MANAGER_H
#pragma once
#include <glib-object.h>
@ -47,5 +46,3 @@ MetaOrientation meta_orientation_manager_get_orientation (MetaOrientationManager
META_EXPORT_TEST
gboolean meta_orientation_manager_has_accelerometer (MetaOrientationManager *self);
#endif /* META_ORIENTATION_MANAGER_H */

View File

@ -18,8 +18,7 @@
* 02111-1307, USA.
*/
#ifndef META_OUTPUT_H
#define META_OUTPUT_H
#pragma once
#include <glib-object.h>
@ -293,5 +292,3 @@ void meta_output_update_modes (MetaOutput *output,
MetaCrtcMode *preferred_mode,
MetaCrtcMode **modes,
int n_modes);
#endif /* META_OUTPUT_H */

View File

@ -22,8 +22,7 @@
* Jonas Ådahl <jadahl@gmail.com>
*/
#ifndef META_POINTER_CONSTRAINT_H
#define META_POINTER_CONSTRAINT_H
#pragma once
#include <glib-object.h>
@ -77,5 +76,3 @@ void meta_pointer_constraint_impl_ensure_constrained (MetaPointerConstraintImpl
ClutterInputDevice *device);
G_END_DECLS
#endif /* META_POINTER_CONSTRAINT_H */

View File

@ -18,8 +18,7 @@
*
*/
#ifndef META_REMOTE_ACCESS_CONTROLLER_PRIVATE_H
#define META_REMOTE_ACCESS_CONTROLLER_PRIVATE_H
#pragma once
#include "backends/meta-backend-types.h"
#include "meta/meta-remote-access-controller.h"
@ -36,5 +35,3 @@ void meta_remote_access_handle_notify_stopped (MetaRemoteAccessHandle *handle);
void meta_remote_access_handle_set_disable_animations (MetaRemoteAccessHandle *handle,
gboolean disable_animations);
#endif /* META_REMOTE_ACCESS_CONTROLLER_PRIVATE_H */

View File

@ -20,8 +20,7 @@
*
*/
#ifndef META_REMOTE_DESKTOP_SESSION_H
#define META_REMOTE_DESKTOP_SESSION_H
#pragma once
#include <glib-object.h>
@ -48,5 +47,3 @@ gboolean meta_remote_desktop_session_register_screen_cast (MetaRemoteDesktopSess
void meta_remote_desktop_session_request_transfer (MetaRemoteDesktopSession *session,
const char *mime_type,
GTask *task);
#endif /* META_REMOTE_DESKTOP_SESSION_H */

View File

@ -20,8 +20,7 @@
*
*/
#ifndef META_REMOTE_DESKTOP_H
#define META_REMOTE_DESKTOP_H
#pragma once
#include <glib-object.h>
@ -39,5 +38,3 @@ G_DECLARE_FINAL_TYPE (MetaRemoteDesktop, meta_remote_desktop,
MetaDbusSessionManager)
MetaRemoteDesktop * meta_remote_desktop_new (MetaBackend *backend);
#endif /* META_REMOTE_DESKTOP_H */

View File

@ -15,8 +15,7 @@
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef META_RENDERER_VIEW_H
#define META_RENDERER_VIEW_H
#pragma once
#include "backends/meta-monitor-manager-private.h"
#include "backends/meta-stage-impl-private.h"
@ -37,5 +36,3 @@ MetaMonitorTransform meta_renderer_view_get_transform (MetaRendererView *view);
META_EXPORT_TEST
MetaCrtc *meta_renderer_view_get_crtc (MetaRendererView *view);
#endif /* META_RENDERER_VIEW_H */

View File

@ -22,8 +22,7 @@
* Jonas Ådahl <jadahl@gmail.com>
*/
#ifndef META_RENDERER_H
#define META_RENDERER_H
#pragma once
#include <glib-object.h>
@ -75,5 +74,3 @@ gboolean meta_renderer_is_hardware_accelerated (MetaRenderer *renderer);
void meta_renderer_pause (MetaRenderer *renderer);
void meta_renderer_resume (MetaRenderer *renderer);
#endif /* META_RENDERER_H */

View File

@ -18,8 +18,7 @@
*
*/
#ifndef META_SCREEN_CAST_AREA_STREAM_SRC_H
#define META_SCREEN_CAST_AREA_STREAM_SRC_H
#pragma once
#include "backends/meta-screen-cast-stream-src.h"
@ -33,5 +32,3 @@ G_DECLARE_FINAL_TYPE (MetaScreenCastAreaStreamSrc,
MetaScreenCastAreaStreamSrc * meta_screen_cast_area_stream_src_new (MetaScreenCastAreaStream *area_stream,
GError **error);
#endif /* META_SCREEN_CAST_AREA_STREAM_SRC_H */

View File

@ -18,8 +18,7 @@
*
*/
#ifndef META_SCREEN_CAST_AREA_STREAM_H
#define META_SCREEN_CAST_AREA_STREAM_H
#pragma once
#include <glib-object.h>
@ -45,5 +44,3 @@ ClutterStage * meta_screen_cast_area_stream_get_stage (MetaScreenCastAreaStream
MetaRectangle * meta_screen_cast_area_stream_get_area (MetaScreenCastAreaStream *area_stream);
float meta_screen_cast_area_stream_get_scale (MetaScreenCastAreaStream *area_stream);
#endif /* META_SCREEN_CAST_AREA_STREAM_H */

View File

@ -20,8 +20,7 @@
*
*/
#ifndef META_SCREEN_CAST_MONITOR_STREAM_SRC_H
#define META_SCREEN_CAST_MONITOR_STREAM_SRC_H
#pragma once
#include "backends/meta-monitor-manager-private.h"
#include "backends/meta-screen-cast-stream-src.h"
@ -36,5 +35,3 @@ G_DECLARE_FINAL_TYPE (MetaScreenCastMonitorStreamSrc,
MetaScreenCastMonitorStreamSrc * meta_screen_cast_monitor_stream_src_new (MetaScreenCastMonitorStream *monitor_stream,
GError **error);
#endif /* META_SCREEN_CAST_MONITOR_STREAM_SRC_H */

View File

@ -20,8 +20,7 @@
*
*/
#ifndef META_SCREEN_CAST_MONITOR_STREAM_H
#define META_SCREEN_CAST_MONITOR_STREAM_H
#pragma once
#include <glib-object.h>
@ -46,5 +45,3 @@ MetaScreenCastMonitorStream * meta_screen_cast_monitor_stream_new (MetaScreenCas
ClutterStage * meta_screen_cast_monitor_stream_get_stage (MetaScreenCastMonitorStream *monitor_stream);
MetaMonitor * meta_screen_cast_monitor_stream_get_monitor (MetaScreenCastMonitorStream *monitor_stream);
#endif /* META_SCREEN_CAST_MONITOR_STREAM_H */

View File

@ -20,8 +20,7 @@
*
*/
#ifndef META_SCREEN_CAST_SESSION_H
#define META_SCREEN_CAST_SESSION_H
#pragma once
#include "backends/meta-screen-cast.h"
@ -63,5 +62,3 @@ MetaScreenCast * meta_screen_cast_session_get_screen_cast (MetaScreenCastSession
void meta_screen_cast_session_set_disable_animations (MetaScreenCastSession *session,
gboolean disable_animations);
#endif /* META_SCREEN_CAST_SESSION_H */

View File

@ -20,8 +20,7 @@
*
*/
#ifndef META_SCREEN_CAST_STREAM_SRC_H
#define META_SCREEN_CAST_STREAM_SRC_H
#pragma once
#include <glib-object.h>
#include <spa/param/video/format-utils.h>
@ -133,4 +132,3 @@ void meta_screen_cast_stream_src_set_cursor_sprite_metadata (MetaScreenCastStrea
gboolean meta_screen_cast_stream_src_uses_dma_bufs (MetaScreenCastStreamSrc *src);
#endif /* META_SCREEN_CAST_STREAM_SRC_H */

View File

@ -20,8 +20,7 @@
*
*/
#ifndef META_SCREEN_CAST_STREAM_H
#define META_SCREEN_CAST_STREAM_H
#pragma once
#include <glib-object.h>
@ -71,4 +70,3 @@ MetaScreenCastCursorMode meta_screen_cast_stream_get_cursor_mode (MetaScreenCast
MetaScreenCastFlag meta_screen_cast_stream_get_flags (MetaScreenCastStream *stream);
#endif /* META_SCREEN_CAST_STREAM_H */

View File

@ -18,8 +18,7 @@
*
*/
#ifndef META_SCREEN_CAST_VIRTUAL_STREAM_SRC_H
#define META_SCREEN_CAST_VIRTUAL_STREAM_SRC_H
#pragma once
#include "backends/meta-screen-cast-stream-src.h"
#include "backends/meta-screen-cast-virtual-stream.h"
@ -34,5 +33,3 @@ MetaScreenCastVirtualStreamSrc * meta_screen_cast_virtual_stream_src_new (MetaSc
GError **error);
ClutterStageView * meta_screen_cast_virtual_stream_src_get_view (MetaScreenCastVirtualStreamSrc *virtual_src);
#endif /* META_SCREEN_CAST_VIRTUAL_STREAM_SRC_H */

View File

@ -18,8 +18,7 @@
*
*/
#ifndef META_SCREEN_CAST_VIRTUAL_STREAM_H
#define META_SCREEN_CAST_VIRTUAL_STREAM_H
#pragma once
#include "backends/meta-screen-cast-stream.h"
@ -36,5 +35,3 @@ MetaScreenCastVirtualStream * meta_screen_cast_virtual_stream_new (MetaScreenCas
GError **error);
MetaVirtualMonitor * meta_screen_cast_virtual_stream_get_virtual_monitor (MetaScreenCastVirtualStream *virtual_stream);
#endif /* META_SCREEN_CAST_VIRTUAL_STREAM_H */

View File

@ -18,8 +18,7 @@
*
*/
#ifndef META_SCREEN_CAST_WINDOW_STREAM_SRC_H
#define META_SCREEN_CAST_WINDOW_STREAM_SRC_H
#pragma once
#include "backends/meta-screen-cast-stream-src.h"
@ -33,5 +32,3 @@ G_DECLARE_FINAL_TYPE (MetaScreenCastWindowStreamSrc,
MetaScreenCastWindowStreamSrc * meta_screen_cast_window_stream_src_new (MetaScreenCastWindowStream *window_stream,
GError **error);
#endif /* META_SCREEN_CAST_WINDOW_STREAM_SRC_H */

View File

@ -18,8 +18,7 @@
*
*/
#ifndef META_SCREEN_CAST_WINDOW_STREAM_H
#define META_SCREEN_CAST_WINDOW_STREAM_H
#pragma once
#include <glib-object.h>
@ -42,5 +41,3 @@ MetaScreenCastWindowStream * meta_screen_cast_window_stream_new (MetaScreenCastS
MetaWindow * meta_screen_cast_window_stream_get_window (MetaScreenCastWindowStream *window_stream);
int meta_screen_cast_window_stream_get_width (MetaScreenCastWindowStream *window_stream);
int meta_screen_cast_window_stream_get_height (MetaScreenCastWindowStream *window_stream);
#endif /* META_SCREEN_CAST_WINDOW_STREAM_H */

View File

@ -18,8 +18,7 @@
*
*/
#ifndef META_SCREEN_CAST_WINDOW_H
#define META_SCREEN_CAST_WINDOW_H
#pragma once
#include <stdint.h>
#include <glib-object.h>
@ -97,5 +96,3 @@ void meta_screen_cast_window_inc_usage (MetaScreenCastWindow *screen_cast_window
void meta_screen_cast_window_dec_usage (MetaScreenCastWindow *screen_cast_window);
G_END_DECLS
#endif /* META_SCREEN_CAST_WINDOW_H */

View File

@ -20,8 +20,7 @@
*
*/
#ifndef META_SCREEN_CAST_H
#define META_SCREEN_CAST_H
#pragma once
#include <glib-object.h>
@ -59,5 +58,3 @@ CoglDmaBufHandle * meta_screen_cast_create_dma_buf_handle (MetaScreenCast *scree
int height);
MetaScreenCast * meta_screen_cast_new (MetaBackend *backend);
#endif /* META_SCREEN_CAST_H */

View File

@ -19,8 +19,7 @@
* 02111-1307, USA.
*/
#ifndef META_SETTINGS_PRIVATE_H
#define META_SETTINGS_PRIVATE_H
#pragma once
#include <glib-object.h>
@ -83,5 +82,3 @@ gboolean meta_settings_is_privacy_screen_enabled (MetaSettings *settings);
void meta_settings_set_privacy_screen_enabled (MetaSettings *settings,
gboolean enabled);
#endif /* META_SETTINGS_PRIVATE_H */

View File

@ -23,8 +23,7 @@
*
*/
#ifndef META_STAGE_IMPL_PRIVATE_H
#define META_STAGE_IMPL_PRIVATE_H
#pragma once
#include <cairo.h>
@ -72,5 +71,3 @@ void meta_stage_impl_add_onscreen_frame_info (MetaStageImpl *stage_impl,
ClutterStageView *view);
G_END_DECLS
#endif /* META_STAGE_IMPL_PRIVATE_H */

View File

@ -17,8 +17,7 @@
* 02111-1307, USA.
*/
#ifndef META_STAGE_PRIVATE_H
#define META_STAGE_PRIVATE_H
#pragma once
#include "backends/meta-cursor.h"
#include "core/util-private.h"
@ -77,5 +76,3 @@ void meta_stage_remove_watch (MetaStage *stage,
MetaStageWatch *watch);
G_END_DECLS
#endif /* META_STAGE_PRIVATE_H */

View File

@ -23,8 +23,7 @@
*
*/
#ifndef META_STAGE_VIEW_PRIVATE_H
#define META_STAGE_VIEW_PRIVATE_H
#pragma once
#include <cairo.h>
@ -41,5 +40,3 @@ struct _MetaStageViewClass
ClutterDamageHistory * meta_stage_view_get_damage_history (MetaStageView *view);
void meta_stage_view_perform_fake_swap (MetaStageView *view,
int64_t counter);
#endif /* META_STAGE_VIEW_PRIVATE_H */

View File

@ -15,8 +15,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef META_STAGE_VIEW_H
#define META_STAGE_VIEW_H
#pragma once
#include "clutter/clutter-mutter.h"
@ -29,5 +28,3 @@ G_DECLARE_DERIVABLE_TYPE (MetaStageView,
void meta_stage_view_inhibit_cursor_overlay (MetaStageView *view);
void meta_stage_view_uninhibit_cursor_overlay (MetaStageView *view);
#endif /* META_STAGE_VIEW_H */

View File

@ -20,8 +20,7 @@
* Carlos Garnacho <carlosg@gnome.org>
*/
#ifndef META_VIEWPORT_INFO_H
#define META_VIEWPORT_INFO_H
#pragma once
#include <cairo.h>
#include <glib-object.h>
@ -57,5 +56,3 @@ void meta_viewport_info_get_extents (MetaViewportInfo *info,
float *height);
gboolean meta_viewport_info_is_views_scaled (MetaViewportInfo *info);
#endif /* META_VIEWPORT_INFO_H */

View File

@ -18,8 +18,7 @@
*
*/
#ifndef META_VIRTUAL_MONITOR_H
#define META_VIRTUAL_MONITOR_H
#pragma once
#include <glib-object.h>
@ -84,5 +83,3 @@ void meta_virtual_monitor_set_mode (MetaVirtualMonitor *virtual_monitor,
G_DEFINE_AUTOPTR_CLEANUP_FUNC (MetaVirtualMonitorInfo,
meta_virtual_monitor_info_free)
#endif /* META_VIRTUAL_MONITOR_H */

View File

@ -22,11 +22,8 @@
* Jasper St. Pierre <jstpierre@mecheye.net>
*/
#ifndef DBUS_UTILS_H
#define DBUS_UTILS_H
#pragma once
char *
get_escaped_dbus_path (const char *prefix,
const char *component);
#endif /* DBUS_UTILS_H */

View File

@ -22,8 +22,7 @@
* Jonas Ådahl <jadahl@gmail.com>
*/
#ifndef META_BACKEND_NATIVE_PRIVATE_H
#define META_BACKEND_NATIVE_PRIVATE_H
#pragma once
#include "backends/native/meta-backend-native.h"
#include "backends/native/meta-barrier-native.h"
@ -37,5 +36,3 @@ MetaDevicePool * meta_backend_native_get_device_pool (MetaBackendNative *native)
MetaRenderDevice * meta_backend_native_take_render_device (MetaBackendNative *backend_native,
const char *device_path,
GError **error);
#endif /* META_BACKEND_NATIVE_PRIVATE_H */

View File

@ -18,8 +18,7 @@
*
*/
#ifndef META_BACKEND_NATIVE_TYPES_H
#define META_BACKEND_NATIVE_TYPES_H
#pragma once
typedef struct _MetaBackendNative MetaBackendNative;
typedef struct _MetaSeatNative MetaSeatNative;
@ -46,5 +45,3 @@ typedef enum _MetaBackendNativeMode
META_BACKEND_NATIVE_MODE_HEADLESS,
META_BACKEND_NATIVE_MODE_TEST,
} MetaBackendNativeMode;
#endif /* META_BACKEND_NATIVE_TYPES_H */

View File

@ -22,8 +22,7 @@
* Jasper St. Pierre <jstpierre@mecheye.net>
*/
#ifndef META_BACKEND_NATIVE_H
#define META_BACKEND_NATIVE_H
#pragma once
#include "backends/meta-backend-private.h"
#include "backends/native/meta-clutter-backend-native.h"
@ -55,5 +54,3 @@ META_EXPORT_TEST
MetaKms * meta_backend_native_get_kms (MetaBackendNative *native);
const char * meta_backend_native_get_seat_id (MetaBackendNative *backend_native);
#endif /* META_BACKEND_NATIVE_H */

View File

@ -22,8 +22,7 @@
* Jonas Ådahl <jadahl@gmail.com>
*/
#ifndef META_BARRIER_NATIVE_H
#define META_BARRIER_NATIVE_H
#pragma once
#include "backends/meta-barrier-private.h"
@ -48,5 +47,3 @@ void meta_barrier_manager_native_process_in_impl (MetaBarrierManagerNative *mana
float *y);
G_END_DECLS
#endif /* META_BARRIER_NATIVE_H */

View File

@ -22,8 +22,7 @@
* Jonas Ådahl <jadahl@gmail.com>
*/
#ifndef META_CLUTTER_BACKEND_NATIVE_H
#define META_CLUTTER_BACKEND_NATIVE_H
#pragma once
#include <glib-object.h>
@ -37,5 +36,3 @@ G_DECLARE_FINAL_TYPE (MetaClutterBackendNative, meta_clutter_backend_native,
ClutterBackend)
MetaClutterBackendNative * meta_clutter_backend_native_new (MetaBackend *backend);
#endif /* META_CLUTTER_BACKEND_NATIVE_H */

View File

@ -20,8 +20,7 @@
* 02111-1307, USA.
*/
#ifndef META_CRTC_KMS_H
#define META_CRTC_KMS_H
#pragma once
#include <xf86drm.h>
#include <xf86drmMode.h>
@ -80,5 +79,3 @@ MetaCrtcKms * meta_crtc_kms_from_kms_crtc (MetaKmsCrtc *kms_crtc);
MetaCrtcKms * meta_crtc_kms_new (MetaGpuKms *gpu_kms,
MetaKmsCrtc *kms_crtc);
#endif /* META_CRTC_KMS_H */

View File

@ -17,8 +17,7 @@
* 02111-1307, USA.
*/
#ifndef META_CRTC_MODE_KMS_H
#define META_CRTC_MODE_KMS_H
#pragma once
#include <xf86drm.h>
#include <xf86drmMode.h>
@ -35,5 +34,3 @@ MetaKmsMode * meta_crtc_mode_kms_get_kms_mode (MetaCrtcModeKms *mode_kms);
MetaCrtcModeKms * meta_crtc_mode_kms_new (MetaKmsMode *kms_mode,
uint64_t id);
#endif /* META_CRTC_MODE_KMS_H */

View File

@ -17,8 +17,7 @@
* 02111-1307, USA.
*/
#ifndef META_CRTC_MODE_VIRTUAL_H
#define META_CRTC_MODE_VIRTUAL_H
#pragma once
#include "backends/meta-backend-types.h"
#include "backends/meta-crtc-mode.h"
@ -30,5 +29,3 @@ G_DECLARE_FINAL_TYPE (MetaCrtcModeVirtual, meta_crtc_mode_virtual,
MetaCrtcModeVirtual * meta_crtc_mode_virtual_new (uint64_t id,
const MetaVirtualModeInfo *info);
#endif /* META_CRTC_MODE_VIRTUAL_H */

View File

@ -17,8 +17,7 @@
* 02111-1307, USA.
*/
#ifndef META_CRTC_NATIVE_H
#define META_CRTC_NATIVE_H
#pragma once
#include "backends/meta-crtc.h"
@ -40,5 +39,3 @@ gboolean meta_crtc_native_is_transform_handled (MetaCrtcNative *crtc_nativ
MetaMonitorTransform transform);
gboolean meta_crtc_native_is_hw_cursor_supported (MetaCrtcNative *crtc_native);
#endif /* META_CRTC_NATIVE_H */

View File

@ -17,8 +17,7 @@
* 02111-1307, USA.
*/
#ifndef META_CRTC_VIRTUAL_H
#define META_CRTC_VIRTUAL_H
#pragma once
#include "backends/native/meta-crtc-native.h"
@ -29,5 +28,3 @@ G_DECLARE_FINAL_TYPE (MetaCrtcVirtual, meta_crtc_virtual,
MetaCrtcVirtual * meta_crtc_virtual_new (MetaBackend *backend,
uint64_t id);
#endif /* META_CRTC_VIRTUAL_H */

View File

@ -22,8 +22,7 @@
* Jasper St. Pierre <jstpierre@mecheye.net>
*/
#ifndef META_CURSOR_RENDERER_NATIVE_H
#define META_CURSOR_RENDERER_NATIVE_H
#pragma once
#include "backends/meta-cursor-renderer.h"
#include "backends/native/meta-backend-native-types.h"
@ -40,5 +39,3 @@ void meta_cursor_renderer_native_prepare_frame (MetaCursorRendererNative *cursor
MetaCursorRendererNative * meta_cursor_renderer_native_new (MetaBackend *backend,
ClutterInputDevice *device);
#endif /* META_CURSOR_RENDERER_NATIVE_H */

View File

@ -17,8 +17,7 @@
* 02111-1307, USA.
*/
#ifndef META_DEVICE_POOL_PRIVATE_H
#define META_DEVICE_POOL_PRIVATE_H
#pragma once
#include <glib-object.h>
@ -32,5 +31,3 @@ G_DECLARE_FINAL_TYPE (MetaDevicePool, meta_device_pool,
GObject)
MetaDevicePool * meta_device_pool_new (MetaBackendNative *backend_native);
#endif /* META_DEVICE_POOL_PRIVATE_H */

View File

@ -17,8 +17,7 @@
* 02111-1307, USA.
*/
#ifndef META_DEVICE_POOL_H
#define META_DEVICE_POOL_H
#pragma once
#include <glib-object.h>
#include <stdint.h>
@ -71,5 +70,3 @@ MetaDeviceFile * meta_device_pool_open (MetaDevicePool *pool,
MetaBackend * meta_device_pool_get_backend (MetaDevicePool *pool);
G_DEFINE_AUTOPTR_CLEANUP_FUNC (MetaDeviceFile, meta_device_file_release)
#endif /* META_DEVICE_FILE_POOL_H */

View File

@ -19,8 +19,7 @@
*
*/
#ifndef META_DRM_BUFFER_DUMB_H
#define META_DRM_BUFFER_DUMB_H
#pragma once
#include "backends/native/meta-backend-native-types.h"
#include "backends/native/meta-drm-buffer-private.h"
@ -42,5 +41,3 @@ int meta_drm_buffer_dumb_ensure_dmabuf_fd (MetaDrmBufferDumb *buffer_dumb,
GError **error);
void * meta_drm_buffer_dumb_get_data (MetaDrmBufferDumb *buffer_dumb);
#endif /* META_DRM_BUFFER_DUMB_H */

View File

@ -19,8 +19,7 @@
*
*/
#ifndef META_DRM_BUFFER_GBM_H
#define META_DRM_BUFFER_GBM_H
#pragma once
#include <gbm.h>
@ -45,5 +44,3 @@ MetaDrmBufferGbm * meta_drm_buffer_gbm_new_take (MetaDeviceFile *device_fil
GError **error);
struct gbm_bo * meta_drm_buffer_gbm_get_bo (MetaDrmBufferGbm *buffer_gbm);
#endif /* META_DRM_BUFFER_GBM_H */

View File

@ -20,8 +20,7 @@
*
*/
#ifndef META_DRM_BUFFER_IMPORT_H
#define META_DRM_BUFFER_IMPORT_H
#pragma once
#include <gbm.h>
@ -51,5 +50,3 @@ MetaDrmBufferImport * meta_drm_buffer_import_new (MetaDeviceFile *device_fil
struct gbm_device *gbm_device,
MetaDrmBufferGbm *buffer_gbm,
GError **error);
#endif /* META_DRM_BUFFER_IMPORT_H */

View File

@ -18,8 +18,7 @@
* 02111-1307, USA.
*/
#ifndef META_DRM_BUFFER_PRIVATE_H
#define META_DRM_BUFFER_PRIVATE_H
#pragma once
#include "backends/native/meta-backend-native-types.h"
#include "backends/native/meta-drm-buffer.h"
@ -61,5 +60,3 @@ MetaDeviceFile * meta_drm_buffer_get_device_file (MetaDrmBuffer *buffer);
gboolean meta_drm_buffer_do_ensure_fb_id (MetaDrmBuffer *buffer,
const MetaDrmFbArgs *fb_args,
GError **error);
#endif /* META_DRM_BUFFER_PRIVATE_H */

View File

@ -20,8 +20,7 @@
* Author: Daniel van Vugt <daniel.van.vugt@canonical.com>
*/
#ifndef META_DRM_BUFFER_H
#define META_DRM_BUFFER_H
#pragma once
#include <glib-object.h>
#include <stdint.h>
@ -67,5 +66,3 @@ int meta_drm_buffer_get_offset (MetaDrmBuffer *buffer,
int plane);
uint64_t meta_drm_buffer_get_modifier (MetaDrmBuffer *buffer);
#endif /* META_DRM_BUFFER_H */

View File

@ -17,8 +17,7 @@
* 02111-1307, USA.
*/
#ifndef META_FRAME_NATIVE_H
#define META_FRAME_NATIVE_H
#pragma once
#include "backends/native/meta-kms-types.h"
#include "clutter/clutter.h"
@ -45,5 +44,3 @@ gboolean meta_frame_native_has_kms_update (MetaFrameNative *frame_native);
META_EXPORT_TEST
gboolean meta_frame_native_had_kms_update (MetaFrameNative *frame_native);
#endif /* META_FRAME_NATIVE_H */

View File

@ -20,8 +20,7 @@
* 02111-1307, USA.
*/
#ifndef META_GPU_KMS_H
#define META_GPU_KMS_H
#pragma once
#include <glib-object.h>
#include <xf86drm.h>
@ -66,5 +65,3 @@ MetaGpuKmsFlipClosureContainer * meta_gpu_kms_wrap_flip_closure (MetaGpuKms *gpu
GClosure *flip_closure);
void meta_gpu_kms_flip_closure_container_free (MetaGpuKmsFlipClosureContainer *closure_container);
#endif /* META_GPU_KMS_H */

View File

@ -23,8 +23,7 @@
* Author: Jonas Ådahl <jadahl@gmail.com>
*/
#ifndef META_INPUT_DEVICE_NATIVE_H
#define META_INPUT_DEVICE_NATIVE_H
#pragma once
#ifndef META_INPUT_THREAD_H_INSIDE
#error "This header cannot be included directly. Use "backends/native/meta-input-thread.h""
@ -173,5 +172,3 @@ void meta_input_device_native_get_coords_in_impl (MetaInputD
gboolean meta_input_device_native_process_kbd_a11y_event_in_impl (ClutterInputDevice *device,
ClutterEvent *event);
void meta_input_device_native_detach_libinput_in_impl (MetaInputDeviceNative *device_native);
#endif /* META_INPUT_DEVICE_NATIVE_H */

View File

@ -17,8 +17,7 @@
* Author: Carlos Garnacho <carlosg@gnome.org>
*/
#ifndef META_INPUT_DEVICE_NATIVE_TOOL_H
#define META_INPUT_DEVICE_NATIVE_TOOL_H
#pragma once
#ifndef META_INPUT_THREAD_H_INSIDE
#error "This header cannot be included directly. Use "backends/native/meta-input-thread.h""
@ -86,5 +85,3 @@ void meta_input_device_tool_native_set_button_code_in_impl (
uint32_t evcode);
G_END_DECLS
#endif /* META_INPUT_DEVICE_NATIVE_TOOL_H */

View File

@ -19,8 +19,7 @@
* Author: Carlos Garnacho <carlosg@gnome.org>
*/
#ifndef META_INPUT_SETTINGS_NATIVE_H
#define META_INPUT_SETTINGS_NATIVE_H
#pragma once
#ifndef META_INPUT_THREAD_H_INSIDE
#error "This header cannot be included directly. Use "backends/native/meta-input-thread.h""
@ -52,5 +51,3 @@ struct _MetaInputSettingsNativeClass
GType meta_input_settings_native_get_type (void) G_GNUC_CONST;
MetaInputSettings * meta_input_settings_native_new_in_impl (MetaSeatImpl *seat_impl);
#endif /* META_INPUT_SETTINGS_NATIVE_H */

View File

@ -17,8 +17,7 @@
* Author: Carlos Garnacho <carlosg@gnome.org>
*/
#ifndef META_INPUT_THREAD_H
#define META_INPUT_THREAD_H
#pragma once
#define META_INPUT_THREAD_H_INSIDE
@ -29,5 +28,3 @@
#include "src/backends/native/meta-seat-impl.h"
#undef META_INPUT_THREAD_H_INSIDE
#endif /* META_INPUT_THREAD_H */

View File

@ -18,8 +18,8 @@
*
* Author: Carlos Garnacho <carlosg@gnome.org>
*/
#ifndef META_KEYMAP_NATIVE_H
#define META_KEYMAP_NATIVE_H
#pragma once
#ifndef META_INPUT_THREAD_H_INSIDE
#error "This header cannot be included directly. Use "backends/native/meta-input-thread.h""
@ -40,4 +40,3 @@ void meta_keymap_native_update_in_impl (MetaKeymapNative *keymap,
MetaSeatImpl *seat_impl,
struct xkb_state *xkb_state);
#endif /* META_KEYMAP_NATIVE_H */

View File

@ -17,8 +17,7 @@
* 02111-1307, USA.
*/
#ifndef META_KMS_CONNECTOR_PRIVATE_H
#define META_KMS_CONNECTOR_PRIVATE_H
#pragma once
#include "backends/native/meta-kms-connector.h"
@ -155,5 +154,3 @@ gboolean set_output_hdr_metadata (struct hdr_output_metadata *drm_metadata,
META_EXPORT_TEST
gboolean hdr_metadata_equal (MetaOutputHdrMetadata *metadata,
MetaOutputHdrMetadata *other_metadata);
#endif /* META_KMS_CONNECTOR_PRIVATE_H */

Some files were not shown because too many files have changed in this diff Show More