1 /* 2 * Copyright (C) 2017-2020 Red Hat 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License as 6 * published by the Free Software Foundation; either version 2 of the 7 * License, or (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, but 10 * WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 17 * 02111-1307, USA. 18 */ 19 20 #ifndef META_CRTC_MODE_KMS_H 21 #define META_CRTC_MODE_KMS_H 22 23 #include <xf86drm.h> 24 #include <xf86drmMode.h> 25 26 #include "backends/meta-crtc-mode.h" 27 #include "backends/native/meta-kms-types.h" 28 29 #define META_TYPE_CRTC_MODE_KMS (meta_crtc_mode_kms_get_type ()) 30 G_DECLARE_FINAL_TYPE (MetaCrtcModeKms, meta_crtc_mode_kms, 31 META, CRTC_MODE_KMS, 32 MetaCrtcMode) 33 34 MetaKmsMode * meta_crtc_mode_kms_get_kms_mode (MetaCrtcModeKms *mode_kms); 35 36 MetaCrtcModeKms * meta_crtc_mode_kms_new (MetaKmsMode *kms_mode, 37 uint64_t id); 38 39 #endif /* META_CRTC_MODE_KMS_H */ 40