This is the naming convention for private headers.
#include "gdkresources.h"
#include "gdkconstructor.h"
-#include "gdkdebug.h"
+#include "gdkdebugprivate.h"
#include "gdkdisplay.h"
#include "gdkglcontextprivate.h"
#include "gdkintl.h"
+++ /dev/null
-/* GDK - The GIMP Drawing Kit
- * Copyright (C) 2020 Red Hat, Inc.
- *
- * 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/>.
- */
-
-#ifndef __GDK_DEBUG_H__
-#define __GDK_DEBUG_H__
-
-#include <glib.h>
-
-#include "gdktypes.h"
-#include <glib/gstdio.h>
-
-G_BEGIN_DECLS
-
-typedef enum {
- GDK_DEBUG_MISC = 1 << 0,
- GDK_DEBUG_EVENTS = 1 << 1,
- GDK_DEBUG_DND = 1 << 2,
- GDK_DEBUG_INPUT = 1 << 3,
- GDK_DEBUG_EVENTLOOP = 1 << 4,
- GDK_DEBUG_FRAMES = 1 << 5,
- GDK_DEBUG_SETTINGS = 1 << 6,
- GDK_DEBUG_OPENGL = 1 << 7,
- GDK_DEBUG_VULKAN = 1 << 8,
- GDK_DEBUG_SELECTION = 1 << 9,
- GDK_DEBUG_CLIPBOARD = 1 << 10,
- /* flags below are influencing behavior */
- GDK_DEBUG_NOGRABS = 1 << 11,
- GDK_DEBUG_PORTALS = 1 << 12,
- GDK_DEBUG_GL_DISABLE = 1 << 13,
- GDK_DEBUG_GL_LEGACY = 1 << 16,
- GDK_DEBUG_GL_GLES = 1 << 17,
- GDK_DEBUG_GL_DEBUG = 1 << 18,
- GDK_DEBUG_GL_EGL = 1 << 19,
- GDK_DEBUG_GL_GLX = 1 << 20,
- GDK_DEBUG_GL_WGL = 1 << 21,
- GDK_DEBUG_VULKAN_DISABLE = 1 << 22,
- GDK_DEBUG_VULKAN_VALIDATE = 1 << 23,
- GDK_DEBUG_DEFAULT_SETTINGS= 1 << 24,
- GDK_DEBUG_HIGH_DEPTH = 1 << 25,
-} GdkDebugFlags;
-
-extern guint _gdk_debug_flags;
-
-GdkDebugFlags gdk_display_get_debug_flags (GdkDisplay *display);
-void gdk_display_set_debug_flags (GdkDisplay *display,
- GdkDebugFlags flags);
-
-#define gdk_debug_message(format, ...) g_fprintf (stderr, format "\n", ##__VA_ARGS__)
-
-#ifdef G_ENABLE_DEBUG
-
-#define GDK_DISPLAY_DEBUG_CHECK(display,type) \
- G_UNLIKELY (gdk_display_get_debug_flags (display) & GDK_DEBUG_##type)
-
-#define GDK_DISPLAY_DEBUG(display,type,...) \
- G_STMT_START { \
- if (GDK_DISPLAY_DEBUG_CHECK (display,type)) \
- gdk_debug_message (__VA_ARGS__); \
- } G_STMT_END
-
-#else /* !G_ENABLE_DEBUG */
-
-#define GDK_DISPLAY_DEBUG_CHECK(display,type) 0
-#define GDK_DISPLAY_DEBUG(display,type,...)
-
-#endif /* G_ENABLE_DEBUG */
-
-#define GDK_DEBUG_CHECK(type) GDK_DISPLAY_DEBUG_CHECK (NULL,type)
-#define GDK_DEBUG(type,...) GDK_DISPLAY_DEBUG (NULL,type,__VA_ARGS__)
-
-#endif
--- /dev/null
+/* GDK - The GIMP Drawing Kit
+ * Copyright (C) 2020 Red Hat, Inc.
+ *
+ * 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/>.
+ */
+
+#ifndef __GDK_DEBUG_H__
+#define __GDK_DEBUG_H__
+
+#include <glib.h>
+
+#include "gdktypes.h"
+#include <glib/gstdio.h>
+
+G_BEGIN_DECLS
+
+typedef enum {
+ GDK_DEBUG_MISC = 1 << 0,
+ GDK_DEBUG_EVENTS = 1 << 1,
+ GDK_DEBUG_DND = 1 << 2,
+ GDK_DEBUG_INPUT = 1 << 3,
+ GDK_DEBUG_EVENTLOOP = 1 << 4,
+ GDK_DEBUG_FRAMES = 1 << 5,
+ GDK_DEBUG_SETTINGS = 1 << 6,
+ GDK_DEBUG_OPENGL = 1 << 7,
+ GDK_DEBUG_VULKAN = 1 << 8,
+ GDK_DEBUG_SELECTION = 1 << 9,
+ GDK_DEBUG_CLIPBOARD = 1 << 10,
+ /* flags below are influencing behavior */
+ GDK_DEBUG_NOGRABS = 1 << 11,
+ GDK_DEBUG_PORTALS = 1 << 12,
+ GDK_DEBUG_GL_DISABLE = 1 << 13,
+ GDK_DEBUG_GL_LEGACY = 1 << 16,
+ GDK_DEBUG_GL_GLES = 1 << 17,
+ GDK_DEBUG_GL_DEBUG = 1 << 18,
+ GDK_DEBUG_GL_EGL = 1 << 19,
+ GDK_DEBUG_GL_GLX = 1 << 20,
+ GDK_DEBUG_GL_WGL = 1 << 21,
+ GDK_DEBUG_VULKAN_DISABLE = 1 << 22,
+ GDK_DEBUG_VULKAN_VALIDATE = 1 << 23,
+ GDK_DEBUG_DEFAULT_SETTINGS= 1 << 24,
+ GDK_DEBUG_HIGH_DEPTH = 1 << 25,
+} GdkDebugFlags;
+
+extern guint _gdk_debug_flags;
+
+GdkDebugFlags gdk_display_get_debug_flags (GdkDisplay *display);
+void gdk_display_set_debug_flags (GdkDisplay *display,
+ GdkDebugFlags flags);
+
+#define gdk_debug_message(format, ...) g_fprintf (stderr, format "\n", ##__VA_ARGS__)
+
+#ifdef G_ENABLE_DEBUG
+
+#define GDK_DISPLAY_DEBUG_CHECK(display,type) \
+ G_UNLIKELY (gdk_display_get_debug_flags (display) & GDK_DEBUG_##type)
+
+#define GDK_DISPLAY_DEBUG(display,type,...) \
+ G_STMT_START { \
+ if (GDK_DISPLAY_DEBUG_CHECK (display,type)) \
+ gdk_debug_message (__VA_ARGS__); \
+ } G_STMT_END
+
+#else /* !G_ENABLE_DEBUG */
+
+#define GDK_DISPLAY_DEBUG_CHECK(display,type) 0
+#define GDK_DISPLAY_DEBUG(display,type,...)
+
+#endif /* G_ENABLE_DEBUG */
+
+#define GDK_DEBUG_CHECK(type) GDK_DISPLAY_DEBUG_CHECK (NULL,type)
+#define GDK_DEBUG(type,...) GDK_DISPLAY_DEBUG (NULL,type,__VA_ARGS__)
+
+#endif
#include "gdksurface.h"
#include "gdkcursor.h"
#include "gdkmonitor.h"
-#include "gdkdebug.h"
+#include "gdkdebugprivate.h"
#include "gdksurfaceprivate.h"
#include "gdkkeysprivate.h"
#include "gdkdeviceprivate.h"
#include "gdkdrawcontextprivate.h"
-#include "gdkdebug.h"
+#include "gdkdebugprivate.h"
#include "gdkintl.h"
#include "gdkprofilerprivate.h"
#include "gdksurfaceprivate.h"
#include "gdkframeclockidleprivate.h"
-#include "gdkdebug.h"
+#include "gdkdebugprivate.h"
#include "gdkframeclockprivate.h"
#include "gdk-private.h"
#include "gdkprofilerprivate.h"
#include "gdkglcontextprivate.h"
-#include "gdkdebug.h"
+#include "gdkdebugprivate.h"
#include "gdkdisplayprivate.h"
#include "gdkintl.h"
#include "gdkmemoryformatprivate.h"
#include "gdkvulkancontext.h"
-#include "gdkdebug.h"
+#include "gdkdebugprivate.h"
#include "gdkdrawcontextprivate.h"
#include "gdkenums.h"
#include "gdkmacosdisplay-private.h"
#include "gdkmacossurface-private.h"
-#include "gdkdebug.h"
+#include "gdkdebugprivate.h"
@implementation GdkMacosBaseView
#include "gdkdisplaylinksource.h"
-#include "gdkdebug.h"
+#include "gdkdebugprivate.h"
#include "gdkmacoseventsource-private.h"
#include "gdkmacosmonitor-private.h"
#include "gdk-private.h"
#include "gdkmacossurface-private.h"
-#include "gdkdebug.h"
+#include "gdkdebugprivate.h"
#include "gdkdeviceprivate.h"
#include "gdkdisplay.h"
#include "gdkeventsprivate.h"
#include "gdkclipboardprivate.h"
#include "gdkclipboard-win32.h"
-#include "gdkdebug.h"
+#include "gdkdebugprivate.h"
#include "gdkintl.h"
#include "gdkprivate-win32.h"
#include "gdkhdataoutputstream-win32.h"
/* for CIDA */
#include <shlobj.h>
-#include "gdkdebug.h"
+#include "gdkdebugprivate.h"
#include "gdkdisplay.h"
#include "gdkprivate-win32.h"
#include "gdkclipboardprivate.h"
#include "gdkwin32dnd-private.h"
#include "gdkwin32.h"
-#include "gdk/gdkdebug.h"
+#include "gdk/gdkdebugprivate.h"
#include "gdk/gdkdragprivate.h"
#include "gdk/gdkintl.h"
#include "gdk/gdk-private.h"
#include "gdk.h"
#include "gdkprivate-win32.h"
-#include "gdkdebug.h"
+#include "gdkdebugprivate.h"
#include "gdkdisplayprivate.h"
#include "gdkkeysyms.h"
#include "gdkkeysprivate.h"
#include <io.h>
#include "gdk.h"
-#include "gdkdebug.h"
+#include "gdkdebugprivate.h"
#include "gdkkeysyms.h"
#include "gdkintl.h"
#include "gdkprivate-win32.h"
#define __GDK_PRIVATE_WIN32_H__
#include <gdk/gdkcursorprivate.h>
-#include <gdk/gdkdebug.h>
+#include <gdk/gdkdebugprivate.h>
#include <gdk/win32/gdksurface-win32.h>
#include <gdk/win32/gdkwin32display.h>
#include <gdk/win32/gdkwin32screen.h>
#include <gdkscreen-x11.h>
#include <gdkprivate-x11.h>
-#include "gdkdebug.h"
+#include "gdkdebugprivate.h"
static int
parse_boolean (char *v)
#define __GSK_DEBUG_PRIVATE_H__
#include <glib.h>
-#include "gdk/gdkdebug.h"
+#include "gdk/gdkdebugprivate.h"
G_BEGIN_DECLS
#include <glib-object.h>
#include <gdk/gdk.h>
#include <gdk/gdk-private.h>
-#include <gdk/gdkdebug.h>
+#include <gdk/gdkdebugprivate.h>
#include "gtkcsstypesprivate.h"
#include "gtktexthandleprivate.h"
#include "gtkmediafileprivate.h"
#include "gtkimmoduleprivate.h"
-#include "gdk/gdkdebug.h"
+#include "gdk/gdkdebugprivate.h"
#ifdef GDK_WINDOWING_X11
#include "x11/gdkx.h"
#include "gskrendererprivate.h"
#include "gtkboxlayout.h"
-#include "gdk/gdkdebug.h"
+#include "gdk/gdkdebugprivate.h"
struct _GtkInspectorLogs
{
#include "broadway/gdkbroadway.h"
#endif
-#include "gdk/gdkdebug.h"
+#include "gdk/gdkdebugprivate.h"
#define EPSILON 1e-10
#include "general.h"
#include "logs.h"
-#include "gdkdebug.h"
+#include "gdkdebugprivate.h"
#include "gdkmarshalers.h"
#include "gskrendererprivate.h"
#include "gtkbutton.h"