[PATCH libX11] Mark _XNextRequest as hidden

Alan Coopersmith alan.coopersmith at oracle.com
Fri May 1 14:08:38 PDT 2015


On 05/ 1/15 04:50 AM, Julien Cristau wrote:
> It's only used inside XNextRequest(), so doesn't need to be exported.
>
> Signed-off-by: Julien Cristau <jcristau at debian.org>
> ---
>   src/Xxcbint.h | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/src/Xxcbint.h b/src/Xxcbint.h
> index bf41c23..64298d0 100644
> --- a/src/Xxcbint.h
> +++ b/src/Xxcbint.h
> @@ -46,6 +46,7 @@ typedef struct _X11XCBPrivate {
>   int _XConnectXCB(Display *dpy, _Xconst char *display, int *screenp);
>   void _XFreeX11XCBStructure(Display *dpy);
>
> +_X_HIDDEN
>   unsigned long _XNextRequest(Display *dpy);
>
>   #endif /* XXCBINT_H */
>

Makes sense, and since this was just added last year, no one should have
mistakenly tried to depend on it yet (even if they got around it not being
in a public header).

Reviewed-by: Alan Coopersmith <alan.coopersmith at oracle.com>

-- 
	-Alan Coopersmith-              alan.coopersmith at oracle.com
	 Oracle Solaris Engineering - http://blogs.oracle.com/alanc


More information about the xorg-devel mailing list