summaryrefslogtreecommitdiff
path: root/src/include/compositor.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/compositor.h')
-rw-r--r--src/include/compositor.h31
1 files changed, 19 insertions, 12 deletions
diff --git a/src/include/compositor.h b/src/include/compositor.h
index ad4411bc..1d1938a4 100644
--- a/src/include/compositor.h
+++ b/src/include/compositor.h
@@ -1,20 +1,19 @@
-/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
-
/*
* Copyright (C) 2008 Iain Holmes
+ * Copyright (C) 2017 Alberts Muktupāvels
*
- * 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 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.
+ * 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/>.
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef META_COMPOSITOR_H
@@ -26,7 +25,15 @@
#include "types.h"
#include "boxes.h"
-MetaCompositor *meta_compositor_new (MetaDisplay *display);
+typedef enum
+{
+ META_COMPOSITOR_TYPE_NONE,
+ META_COMPOSITOR_TYPE_XRENDER
+} MetaCompositorType;
+
+MetaCompositor *meta_compositor_new (MetaCompositorType type,
+ MetaDisplay *display);
+
void meta_compositor_destroy (MetaCompositor *compositor);
void meta_compositor_manage_screen (MetaCompositor *compositor,