summaryrefslogtreecommitdiff
path: root/src/extutilP.h
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-06-10 15:08:37 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-06-10 15:08:37 -0700
commitf12be5ac59a48249c77b8e61e78bceb9ad782542 (patch)
tree32595b390cb67e3615442ef536c7e319f63c8c34 /src/extutilP.h
parent6844509526a83a20f60a5b62191bfbc1e6f09227 (diff)
downloadxorg-lib-libXext-f12be5ac59a48249c77b8e61e78bceb9ad782542.tar.gz
Add extutilP.h header for xgeExtRegister() prototype
Clears gcc warning: Xge.c:302:11: warning: no previous prototype for ‘xgeExtRegister’ [-Wmissing-prototypes] _X_HIDDEN xgeExtRegister(Display* dpy, int offset, XExtensionHooks* callbacks) ^~~~~~~~~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/extutilP.h')
-rw-r--r--src/extutilP.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/extutilP.h b/src/extutilP.h
new file mode 100644
index 0000000..8abf7fc
--- /dev/null
+++ b/src/extutilP.h
@@ -0,0 +1,46 @@
+/*
+ * Copyright © 2007-2008 Peter Hutterer
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ * Authors: Peter Hutterer, University of South Australia, NICTA
+ */
+
+/*
+ * Private functions internal to libXext
+ */
+
+#ifndef _EXTUTILP_H_
+#define _EXTUTILP_H_
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <X11/Xfuncproto.h>
+#include <X11/extensions/extutil.h>
+
+/*
+ * Extensions need to register callbacks for their events.
+ */
+_X_HIDDEN Bool xgeExtRegister(Display* dpy, int offset,
+ XExtensionHooks* callbacks);
+
+#endif /* _EXTUTILP_H_ */