From 3fbd841f45620bddc7fca05c7ed48f3ad2722ed9 Mon Sep 17 00:00:00 2001 From: Paulo Cesar Pereira de Andrade Date: Fri, 29 Feb 2008 18:48:51 -0300 Subject: [PATCH] Add prototypes before function definitions. This is a similar problem to the missing libXext prototypes, i.e. these are functions that should be publicized in /usr/include/X11, but they don't have documentation. So this patch only tries to show the potential problem, but doesn't add the prototypes to "official" header files. --- src/Xinerama.c | 30 ++++++++++++++++++++++++++++++ 1 files changed, 30 insertions(+), 0 deletions(-) diff --git a/src/Xinerama.c b/src/Xinerama.c index eff7633..3d7f855 100644 --- a/src/Xinerama.c +++ b/src/Xinerama.c @@ -35,6 +35,36 @@ Equipment Corporation. #include #include +extern Bool XPanoramiXQueryExtension ( + Display * /* dpy */, + int * /* event_basep */, + int * /* error_basep */ +); + +extern Status XPanoramiXQueryVersion( + Display * /* dpy */, + int * /* major_versionp */, + int * /* minor_versionp */ +); + +extern Status XPanoramiXGetState ( + Display * /* dpy */, + Drawable /* drawable */, + XPanoramiXInfo * /* panoramiX_info */ +); + +Status XPanoramiXGetScreenCount ( + Display * /* dpy */, + Drawable /* drawable */, + XPanoramiXInfo * /* panoramiX_info */ +); + +Status XPanoramiXGetScreenSize ( + Display * /* dpy */, + Drawable /* drawable */, + int /* screen_num */, + XPanoramiXInfo * /* panoramiX_info */ +); static XExtensionInfo _panoramiX_ext_info_data; static XExtensionInfo *panoramiX_ext_info = &_panoramiX_ext_info_data; -- 1.5.4.3