1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 * 3 * Copyright (C) 2007 William Jon McCann <mccann@jhu.edu> 4 * Copyright (C) 2012-2021 MATE Developers 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or 9 * (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 19 * 20 */ 21 22 #ifndef __MSD_XRANDR_MANAGER_H 23 #define __MSD_XRANDR_MANAGER_H 24 25 #include <glib-object.h> 26 27 #ifdef __cplusplus 28 extern "C" { 29 #endif 30 31 #define MSD_TYPE_XRANDR_MANAGER (msd_xrandr_manager_get_type ()) 32 #define MSD_XRANDR_MANAGER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), MSD_TYPE_XRANDR_MANAGER, MsdXrandrManager)) 33 #define MSD_XRANDR_MANAGER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), MSD_TYPE_XRANDR_MANAGER, MsdXrandrManagerClass)) 34 #define MSD_IS_XRANDR_MANAGER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), MSD_TYPE_XRANDR_MANAGER)) 35 #define MSD_IS_XRANDR_MANAGER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), MSD_TYPE_XRANDR_MANAGER)) 36 #define MSD_XRANDR_MANAGER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), MSD_TYPE_XRANDR_MANAGER, MsdXrandrManagerClass)) 37 38 typedef struct MsdXrandrManagerPrivate MsdXrandrManagerPrivate; 39 40 typedef struct 41 { 42 GObject parent; 43 MsdXrandrManagerPrivate *priv; 44 } MsdXrandrManager; 45 46 typedef struct 47 { 48 GObjectClass parent_class; 49 } MsdXrandrManagerClass; 50 51 GType msd_xrandr_manager_get_type (void); 52 53 MsdXrandrManager * msd_xrandr_manager_new (void); 54 gboolean msd_xrandr_manager_start (MsdXrandrManager *manager, 55 GError **error); 56 void msd_xrandr_manager_stop (MsdXrandrManager *manager); 57 58 #ifdef __cplusplus 59 } 60 #endif 61 62 #endif /* __MSD_XRANDR_MANAGER_H */ 63