diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-06-10 15:08:37 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-06-10 15:08:37 -0700 |
commit | f12be5ac59a48249c77b8e61e78bceb9ad782542 (patch) | |
tree | 32595b390cb67e3615442ef536c7e319f63c8c34 | |
parent | 6844509526a83a20f60a5b62191bfbc1e6f09227 (diff) | |
download | xorg-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>
-rw-r--r-- | src/Makefile.am | 1 | ||||
-rw-r--r-- | src/Xge.c | 2 | ||||
-rw-r--r-- | src/extutil.c | 4 | ||||
-rw-r--r-- | src/extutilP.h | 46 |
4 files changed, 50 insertions, 3 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index e236c33..2178f3e 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -27,6 +27,7 @@ libXext_la_SOURCES = \ Xdbe.c \ Xge.c \ extutil.c \ + extutilP.h \ globals.c libXextincludedir = $(includedir)/X11/extensions @@ -39,6 +39,8 @@ #include <X11/extensions/extutil.h> #include <X11/extensions/Xge.h> +#include "extutilP.h" + /***********************************************************************/ /* internal data structures */ /***********************************************************************/ diff --git a/src/extutil.c b/src/extutil.c index 93cab73..e9d293f 100644 --- a/src/extutil.c +++ b/src/extutil.c @@ -54,9 +54,7 @@ in this Software without prior written authorization from The Open Group. #include <X11/extensions/extutil.h> #include <X11/extensions/ge.h> -/* defined in Xge.c */ -extern _X_HIDDEN Bool -xgeExtRegister(Display* dpy, int extension, XExtensionHooks* callbacks); +#include "extutilP.h" /* * XextCreateExtension - return an extension descriptor containing context 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_ */ |