6bda46095a
We currently have a bit of a disaster area wrt X11 error handling, with all of Cogl/Clutter/Mutter offering implementations with different expectations and different degrees of integration with other error handlers. It makes more sense to have a single X11 error handling implementation that is used in all those places. Mtk seems like the reasonable place to have this kind of general API, so adopt the more advanced code at src/x11. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3230>
30 lines
874 B
C
30 lines
874 B
C
/*
|
|
* Mtk
|
|
*
|
|
* A low-level base library.
|
|
*
|
|
* Copyright (C) 2023 Red Hat
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* This library 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
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#define __MTK_H_INSIDE__
|
|
|
|
#include "mtk/mtk-macros.h"
|
|
#include "mtk/mtk-x11-errors.h"
|
|
|
|
#undef __MTK_H_INSIDE__
|